Constructs a new buffer reader instance.
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.
Value read
Reads a double (64 bit float) as a number.
Value read
Reads fixed 32 bits as an unsigned 32 bit integer.
Value read
Reads fixed 64 bits.
Value read
Reads a float (32 bit) as a number.
Value read
Reads a varint as a signed 32 bit value.
Value read
Reads a varint as a signed 64 bit value.
Value read
Reads fixed 32 bits as a signed 32 bit integer.
Value read
Reads zig-zag encoded fixed 64 bits.
Value read
Reads a zig-zag encoded varint as a signed 32 bit value.
Value read
Reads a zig-zag encoded varint as a signed 64 bit value.
Value read
Skips the specified number of bytes if specified, otherwise skips a varint.
this
Skips the next element of the specified wire type.
Wire type received
this
Reads a string preceeded by its byte length as a varint.
Value read
Reads a varint as an unsigned 32 bit value.
Value read
Reads a varint as an unsigned 64 bit value.
Value read
Creates a new reader using the specified buffer.
Buffer to read from
A BufferReader if buffer
is a Buffer, otherwise a Reader
Generated using TypeDoc
Wire format reader using node buffers.