Creates a bit stream over the given buffer.
Chunk payload bytes.
Drawing version string. Defaults to 'AC1015'.
Single-byte text encoding. Defaults to 'cp1252'.
ReadonlydxfversionDrawing version string used to gate version-specific fields.
Example: 'AC1015', 'AC1024'.
ReadonlyencodingCharacter encoding used when reading embedded single-byte text.
Example: 'cp1252', 'utf-8'.
Indicates whether unread bits remain in the buffer.
Reads count whole bytes from the stream, aligning the bit cursor first
when currently mid-byte.
Number of bytes to read.
A subarray view over the consumed bytes.
AcDbProxyGraphicEndOfBufferError When the read would pass the end of the buffer.
Reads a single bit from the stream.
1 when the bit is set, otherwise 0.
AcDbProxyGraphicEndOfBufferError When no byte is available.
Reads one or more DWG default bit-double values.
When the prefix indicates "default", defaultValue is returned unchanged.
Otherwise a partial or full double is reconstructed from the stream.
Number of values to read. Defaults to 1.
Fallback double used for default-encoded values.
A single value or an array of values.
Reads the next count bits as an unsigned integer, MSB first within the
field.
Number of bits to read.
The assembled unsigned value.
AcDbProxyGraphicEndOfBufferError When the read would pass the end of the buffer.
Reads one or more DWG bit-short values.
The 2-bit prefix selects between a full short, a single byte, zero, or the
sentinel value 256.
Number of values to read. Defaults to 1.
A single value or an array of values.
DWG-style bit-stream reader for compact proxy-graphic payloads.
Implements the AutoCAD bit-packing scheme used by lightweight polyline and other compressed proxy-graphic records, including optional default-value doubles and version-dependent fields.