MCPcopy Create free account
hub / github.com/claroty/access_parser / parse_data_page_header

Function parse_data_page_header

access_parser/parsing_primitives.py:240–247  ·  view source on GitHub ↗
(buffer, version=3)

Source from the content-addressed store, hash-verified

238
239
240def parse_data_page_header(buffer, version=3):
241 return Struct(
242 Const(b"\x01\x01"),
243 "data_free_space" / Int16ul,
244 "owner" / Int32ul,
245 "ver4_unknown_dat1" / If(lambda x: version > 3, Int32ul),
246 "record_count" / Int16ul,
247 "record_offsets" / Array(lambda x: x.record_count, Int16ul)).parse(buffer)
248
249
250# buffer should be the record data in reverse

Callers 3

_link_tables_to_dataMethod · 0.85
parseMethod · 0.85
_get_overflow_recordMethod · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected