def getExtentsPointerRec(epr_binary): extKey = getExtentsKey(epr_binary[:12]) nodeNum = unpack_from(">I", epr_binary[12:])[0] return ss.BTRecord(extKey, ss.BTPointer(nodeNum))
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.BTRecord(attKey, ss.BTPointer(nodeNum))
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.BTRecord(catalKey, ss.BTPointer(nodeNum))