Wire format reader using Uint8Array if available, otherwise Array.
Uint8Array
Array
Constructs a new reader instance using the specified buffer.
Buffer to read from
Read buffer.
Read buffer length.
Read buffer position.
Reads a varint as a boolean.
Value read
Reads a sequence of bytes preceeded by its length as a varint.
Reads a double (64 bit float) as a number.
Reads fixed 32 bits as an unsigned 32 bit integer.
Reads fixed 64 bits.
Reads a float (32 bit) as a number.
Reads a varint as a signed 32 bit value.
Reads a varint as a signed 64 bit value.
Reads fixed 32 bits as a signed 32 bit integer.
Reads zig-zag encoded fixed 64 bits.
Reads a zig-zag encoded varint as a signed 32 bit value.
Reads a zig-zag encoded varint as a signed 64 bit value.
Skips the specified number of bytes if specified, otherwise skips a varint.
Optional
Length if known, otherwise a varint is assumed
this
Skips the next element of the specified wire type.
Wire type received
Reads a string preceeded by its byte length as a varint.
Reads a varint as an unsigned 32 bit value.
Reads a varint as an unsigned 64 bit value.
Static
Creates a new reader using the specified buffer.
A BufferReader if buffer is a Buffer, otherwise a Reader
buffer
If buffer is not a valid buffer
Wire format reader using
Uint8Array
if available, otherwiseArray
.