コンテンツにスキップ

ArrayHelpers

ArrayHelpers ⚓︎

symbolchain.ArrayHelpers.ArrayHelpers

align_up(size, alignment) staticmethod ⚓︎

get_bytes(view, size) staticmethod ⚓︎

symbolchain.ArrayHelpers.ArrayHelpers.get_bytes

Returns first size bytes of view.

read_array(view, factory_class, accessor=None) staticmethod ⚓︎

read_array_count(view, factory_class, count, accessor=None) staticmethod ⚓︎

symbolchain.ArrayHelpers.ArrayHelpers.read_array_count

Reads array of deterministic number of objects.

read_variable_size_elements(view, factory_class, alignment, skip_last_element_padding=False) staticmethod ⚓︎

size(elements, alignment=0, skip_last_element_padding=False) staticmethod ⚓︎

symbolchain.ArrayHelpers.ArrayHelpers.size

Calculates size of variable size objects.

write_array(elements, accessor=None) staticmethod ⚓︎

write_array_count(elements, count, accessor=None) staticmethod ⚓︎

symbolchain.ArrayHelpers.ArrayHelpers.write_array_count

Writes array of deterministic number of objects.

write_variable_size_elements(elements, alignment, skip_last_element_padding=False) staticmethod ⚓︎