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 ¶
- type BitReader
- func (r *BitReader) Pool() error
- func (r *BitReader) ReadFloat() float32
- func (r *BitReader) ReadSignedVarInt32() int32
- func (r *BitReader) ReadSignedVarInt64() int64
- func (r *BitReader) ReadString() string
- func (r *BitReader) ReadUBitInt() uint
- func (r *BitReader) ReadVarInt32() uint32
- func (r *BitReader) ReadVarInt64() uint64
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 ¶
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) ReadSignedVarInt64 ¶
ReadSignedVarInt64 reads a variable size signed int (max 64-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).
func (*BitReader) ReadVarInt64 ¶
ReadVarInt64 reads a variable size unsigned int (max 64-bit).