Skip to main content

Module bytes

Module bytes 

Source
Expand description

Mixed-endianness byte primitives for the Esri Shapefile format.

Shapefiles use big-endian for management fields (file/record lengths, record numbers, byte-counts) and little-endian for data (shape type codes, coordinates, counts). The cursor exposes both flavors so callers never silently mis-read a field.

Lengths are stored in 16-bit words (i.e. bytes / 2). Helpers convert.

Structs§

Cursor

Functions§

words_to_bytes
Convert a Shapefile 16-bit-word count to bytes.