MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / get_chunk_length

Method get_chunk_length

png.py:120–121  ·  view source on GitHub ↗
(image_bytes:bytes, chunk_starting_index:int)

Source from the content-addressed store, hash-verified

118
119
120 def get_chunk_length(image_bytes:bytes, chunk_starting_index:int) -> int:
121 return int.from_bytes(image_bytes[chunk_starting_index:chunk_starting_index+4], byteorder="big")
122
123
124 def decode(self, image_path) -> None:

Callers 3

check_crcMethod · 0.80
get_paletteMethod · 0.80
get_all_idat_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected