Exemplo n.º 1
0
def getExtentsPointerRec(epr_binary):
    extKey = getExtentsKey(epr_binary[:12])
    nodeNum = unpack_from(">I", epr_binary[12:])[0]
    return ss.BTPointerRec(extKey, nodeNum)
Exemplo n.º 2
0
def getAttributesPointerRec(apr_binary):
    keyLen = unpack_from(">H", apr_binary)[0]
    attKey = getAttributesKey(apr_binary[:2 + keyLen])
    nodeNum = unpack_from(">I", apr_binary[2 + keyLen:])[0]
    return ss.BTPointerRec(attKey, nodeNum)
Exemplo n.º 3
0
def getCatalogPointerRec(cpr_binary):
    keyLen = unpack_from(">H", cpr_binary)[0]
    catalKey = getCatalogKey(cpr_binary[:2 + keyLen])
    nodeNum = unpack_from(">I", cpr_binary[2 + keyLen:])[0]
    return ss.BTPointerRec(catalKey, nodeNum)