Documentation ¶
Index ¶
- type Reader
- func (r *Reader) Left() []byte
- func (r *Reader) Pos() (int, byte)
- func (r *Reader) ReadBit() byte
- func (r *Reader) ReadBits(n byte) (res uint32)
- func (r *Reader) ReadBits16(n byte) (res uint16)
- func (r *Reader) ReadBits64(n byte) (res uint64)
- func (r *Reader) ReadBits8(n byte) (res uint8)
- func (r *Reader) ReadByte() byte
- func (r *Reader) ReadBytes(n int) (b []byte)
- func (r *Reader) ReadSEGolomb() int32
- func (r *Reader) ReadUEGolomb() uint32
- func (r *Reader) ReadUint16() uint16
- func (r *Reader) ReadUint24() uint32
- func (r *Reader) ReadUint32() uint32
- type Writer
- func (w *Writer) Bytes() []byte
- func (w *Writer) Len() int
- func (w *Writer) Reset()
- func (w *Writer) WriteAllBits(bit, n byte)
- func (w *Writer) WriteBit(b byte)
- func (w *Writer) WriteBits(v uint32, n byte)
- func (w *Writer) WriteBits16(v uint16, n byte)
- func (w *Writer) WriteBits8(v, n byte)
- func (w *Writer) WriteBool(b bool)
- func (w *Writer) WriteByte(b byte)
- func (w *Writer) WriteBytes(bytes ...byte)
- func (w *Writer) WriteUint16(v uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { EOF bool // if end of buffer raised during reading // contains filtered or unexported fields }
func (*Reader) ReadBits16 ¶
func (*Reader) ReadBits64 ¶
func (*Reader) ReadSEGolomb ¶
ReadSEGolomb - ReadSignedExponentialGolomb
func (*Reader) ReadUEGolomb ¶
ReadUEGolomb - ReadExponentialGolomb (unsigned)
func (*Reader) ReadUint16 ¶
func (*Reader) ReadUint24 ¶
func (*Reader) ReadUint32 ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteAllBits ¶
func (*Writer) WriteBits16 ¶
func (*Writer) WriteBits8 ¶
func (*Writer) WriteBytes ¶
func (*Writer) WriteUint16 ¶
Click to show internal directories.
Click to hide internal directories.