Documentation ¶
Overview ¶
Package bitread provides a wrapper for github.com/markus-wa/gobitread with CS:GO demo parsing specific helpers.
Intended for internal use only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitReader ¶
BitReader wraps github.com/markus-wa/gobitread.BitReader and provides additional functionality specific to CS:GO demos.
func NewLargeBitReader ¶
NewLargeBitReader returns a BitReader with a large buffer, suitable for long streams (main demo file).
func NewSmallBitReader ¶
NewSmallBitReader returns a BitReader with a small buffer, suitable for short streams.
func (*BitReader) Pool ¶
func (r *BitReader) Pool()
Pool puts the BitReader into a pool for future use. Pooling BitReaders improves performance by minimizing the amount newly allocated readers.
func (*BitReader) ReadSignedVarInt32 ¶
ReadSignedVarInt32 reads a variable size signed int (max 32-bit).
func (*BitReader) ReadString ¶
ReadString reads a variable length string.
func (*BitReader) ReadUBitInt ¶
ReadUBitInt reads some kind of variable size uint. Honestly, not quite sure how it works.
func (*BitReader) ReadVarInt32 ¶
ReadVarInt32 reads a variable size unsigned int (max 32-bit).