def getHeaderNode(ch_binary): ch_buf = memoryview(ch_binary) nd = getNodeDescriptor(ch_buf) hr = getBTHeaderRec(ch_buf[14:]) ch_buf = ch_buf[120:] udr = ch_buf[:128] mr = ch_buf[128:-8] return ss.HeaderNode(nd, hr, udr, mr)
def getHeaderNode(ch_binary): ch_buf = memoryview(ch_binary) nd = getNodeDescriptor(ch_buf) hr = getBTHeaderRec(ch_buf[14:]) ch_buf = ch_buf[120:] udr = Binary(ch_buf[:128], "userDataRecord") mr = Binary(ch_buf[128:-8], "mapRecord") return ss.HeaderNode(nd, hr, udr, mr)