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