def getExtentsLeaf(el_binary): el_buf = memoryview(el_binary) nd = getNodeDescriptor(el_binary) leafRecList = [] el_buf = el_buf[14:] for i in range(nd.numRecords): lr = getExtentsLeafRec(el_buf) leafRecList.append(lr) el_buf = el_buf[len(lr):] return ss.LeafNode(nd, leafRecList)
def getAttributesLeaf(al_binary): al_buf = memoryview(al_binary) nd = getNodeDescriptor(al_binary) leafRecList = [] al_buf = al_buf[14:] for i in range(nd.numRecords): lr = getAttributesLeafRec(al_buf) leafRecList.append(lr) al_buf = al_buf[len(lr):] return ss.LeafNode(nd, leafRecList)
def getCatalogLeaf(cl_binary): cl_buf = memoryview(cl_binary) nd = getNodeDescriptor(cl_binary) leafRecList = [] cl_buf = cl_buf[14:] for i in range(nd.numRecords): lr = getCatalogLeafRec(cl_buf) leafRecList.append(lr) cl_buf = cl_buf[len(lr):] return ss.LeafNode(nd, leafRecList)