Documentation
¶
Index ¶
- type BitStream
- func (bs *BitStream) ConsumeBits(bitCount int64) bool
- func (bs *BitStream) ConsumeBytes(byteCount int64) bool
- func (bs *BitStream) PeekBits(bitCount byte) (uint64, bool)
- func (bs *BitStream) ReadBits(bitCount byte) (uint64, bool)
- func (bs *BitStream) ReadExponentialGolomb() (uint64, bool)
- func (bs *BitStream) ReadSignedExponentialGolomb() (int64, bool)
- func (bs *BitStream) ReadUint16(bo binary.ByteOrder) (uint16, bool)
- func (bs *BitStream) ReadUint32(bo binary.ByteOrder) (uint32, bool)
- func (bs *BitStream) ReadUint64(bo binary.ByteOrder) (uint64, bool)
- func (bs *BitStream) ReadUint8() (uint8, bool)
- func (bs *BitStream) RemainingBits(bitCount int64) bool
- func (bs *BitStream) ResetPos()
- func (bs *BitStream) RestorePos(pw PosWrapper)
- func (bs *BitStream) SavePos() PosWrapper
- func (bs *BitStream) Seek(byteOffset int64, bitOffset byte) bool
- func (bs *BitStream) WriteBits(val uint64, bitCount byte) bool
- func (bs *BitStream) WriteExponentialGolomb(val uint64) bool
- func (bs *BitStream) WriteSignedExponentialGolomb(val int64) bool
- func (bs *BitStream) WriteUint16(val uint16, bo binary.ByteOrder) bool
- func (bs *BitStream) WriteUint32(val uint32, bo binary.ByteOrder) bool
- func (bs *BitStream) WriteUint64(val uint64, bo binary.ByteOrder) bool
- func (bs *BitStream) WriteUint8(val uint8) bool
- type ByteAccessor
- type IOByteAccessor
- type PosWrapper
- type SliceByteAccessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitStream ¶
type BitStream struct {
// contains filtered or unexported fields
}
func NewBitStream ¶
func NewBitStream(ba ByteAccessor) *BitStream
func (*BitStream) ConsumeBits ¶
func (*BitStream) ConsumeBytes ¶
func (*BitStream) ReadExponentialGolomb ¶
func (*BitStream) ReadSignedExponentialGolomb ¶
func (*BitStream) RemainingBits ¶
func (*BitStream) RestorePos ¶
func (bs *BitStream) RestorePos(pw PosWrapper)
func (*BitStream) SavePos ¶
func (bs *BitStream) SavePos() PosWrapper
func (*BitStream) WriteExponentialGolomb ¶
func (*BitStream) WriteSignedExponentialGolomb ¶
func (*BitStream) WriteUint16 ¶
func (*BitStream) WriteUint32 ¶
func (*BitStream) WriteUint64 ¶
func (*BitStream) WriteUint8 ¶
type ByteAccessor ¶
type IOByteAccessor ¶
type IOByteAccessor struct {
// contains filtered or unexported fields
}
func NewIOByteAccessor ¶
func NewIOByteAccessor(rwseeker io.ReadWriteSeeker) *IOByteAccessor
func (*IOByteAccessor) Length ¶
func (ba *IOByteAccessor) Length() int64
func (*IOByteAccessor) Reset ¶
func (ba *IOByteAccessor) Reset()
func (*IOByteAccessor) Slice ¶
func (ba *IOByteAccessor) Slice(byteOffset, length int64) []byte
type PosWrapper ¶
type PosWrapper struct {
// contains filtered or unexported fields
}
type SliceByteAccessor ¶
type SliceByteAccessor struct {
// contains filtered or unexported fields
}
func NewSliceByteAccessor ¶
func NewSliceByteAccessor(bytes []byte) *SliceByteAccessor
func (*SliceByteAccessor) Length ¶
func (ba *SliceByteAccessor) Length() int64
func (*SliceByteAccessor) Put ¶
func (ba *SliceByteAccessor) Put(bytes []byte, byteOffset int64) bool
func (*SliceByteAccessor) Slice ¶
func (ba *SliceByteAccessor) Slice(byteOffset, length int64) []byte
Click to show internal directories.
Click to hide internal directories.