Types
DracoStream = object data*: string pos*: int bitstreamVersion*: int
- Source Edit
Procs
proc advance(stream: var DracoStream; count: int) {....raises: [DracoError], tags: [], forbids: [].}
- Advances the byte cursor. Source Edit
proc endBits(stream: var DracoStream) {....raises: [], tags: [], forbids: [].}
- Ends bit decoding and advances to the next unread byte. Source Edit
proc initDracoStream(data: string): DracoStream {....raises: [], tags: [], forbids: [].}
- Creates a decoder stream over a byte string. Source Edit
proc readBits(stream: var DracoStream; count: int): uint32 {. ...raises: [DracoError], tags: [], forbids: [].}
- Reads up to 32 bits in least-significant-bit order. Source Edit
proc readBytes(stream: var DracoStream; count: int): string {. ...raises: [DracoError], tags: [], forbids: [].}
- Reads a fixed number of raw bytes. Source Edit
proc readFloat32(stream: var DracoStream): float32 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a little-endian float32. Source Edit
proc readInt8(stream: var DracoStream): int8 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a signed byte. Source Edit
proc readInt16(stream: var DracoStream): int16 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a signed little-endian 16-bit integer. Source Edit
proc readInt32(stream: var DracoStream): int32 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a signed little-endian 32-bit integer. Source Edit
proc readSignedVarint(stream: var DracoStream): int32 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a zig-zag encoded signed Draco varint value. Source Edit
proc readString(stream: var DracoStream; count: int): string {. ...raises: [DracoError], tags: [], forbids: [].}
- Reads a fixed number of bytes as a string. Source Edit
proc readUint8(stream: var DracoStream): uint8 {....raises: [DracoError], tags: [], forbids: [].}
- Reads an unsigned byte. Source Edit
proc readUint16(stream: var DracoStream): uint16 {....raises: [DracoError], tags: [], forbids: [].}
- Reads an unsigned little-endian 16-bit integer. Source Edit
proc readUint32(stream: var DracoStream): uint32 {....raises: [DracoError], tags: [], forbids: [].}
- Reads an unsigned little-endian 32-bit integer. Source Edit
proc readVarint(stream: var DracoStream): uint32 {....raises: [DracoError], tags: [], forbids: [].}
- Reads a Draco varint value. Source Edit
proc remaining(stream: DracoStream): int {....raises: [], tags: [], forbids: [].}
- Returns the unread byte count. Source Edit
proc startBits(stream: var DracoStream; decodeSize: bool): uint32 {. ...raises: [DracoError], tags: [], forbids: [].}
- Starts LSB-first bit decoding at the current byte position. Source Edit
proc substream(stream: DracoStream): DracoStream {....raises: [], tags: [], forbids: [].}
- Creates a stream from the unread bytes of another stream. Source Edit