Documentation ¶
Index ¶
- type Decoder
- func (dec *Decoder) As90k(bitcount uint) float64
- func (dec *Decoder) Ascii(bitcount uint) string
- func (dec *Decoder) Bool() bool
- func (dec *Decoder) Bytes(bitcount uint) []byte
- func (dec *Decoder) Chunk(bitcount uint) *big.Int
- func (dec *Decoder) Flag() bool
- func (dec *Decoder) Float(bitcount uint) float64
- func (dec *Decoder) Forward(bitcount uint)
- func (dec *Decoder) Hex(bitcount uint) string
- func (dec *Decoder) Load(bites []byte)
- func (dec *Decoder) UInt16(bitcount uint) uint16
- func (dec *Decoder) UInt32(bitcount uint) uint32
- func (dec *Decoder) UInt64(bitcount uint) uint64
- func (dec *Decoder) UInt8(bitcount uint) uint8
- type Encoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder converts bytes to a list of bits.
type Encoder ¶
Encoder packs data as bits for encoding.
func (*Encoder) Add ¶
Add left shifts Encoder.Bites by nbits and add val interface{} as bits. Supports val as bool, float64, int, uint8, uint16, uint32,or uint64.
Click to show internal directories.
Click to hide internal directories.