Documentation ¶
Index ¶
- func HasPrefix(x, p Source) bool
- type Buffer
- func (b *Buffer) Append(x bool)
- func (b *Buffer) AppendAll(x Source)
- func (b *Buffer) AppendByteLSB(x byte)
- func (b *Buffer) AppendByteMSB(x byte)
- func (b *Buffer) AsBytesLSB() ([]byte, int)
- func (b *Buffer) AsBytesMSB() ([]byte, int)
- func (b *Buffer) At(i int) bool
- func (b *Buffer) BitString() String
- func (b *Buffer) Len() int
- func (b *Buffer) Reset()
- func (b *Buffer) Set(i int, x bool)
- func (b *Buffer) Truncate(n int)
- type BytesLSB
- type BytesMSB
- type Slice
- type Source
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is a mutable resizable bit string.
func (*Buffer) AppendByteLSB ¶
AppendByteLSB appends all the bits in x, with the LSB first.
func (*Buffer) AppendByteMSB ¶
AppendByteMSB appends all the bits in x, with the MSB first.
func (*Buffer) AsBytesLSB ¶
func (*Buffer) AsBytesMSB ¶
type BytesLSB ¶
BytesLSB is a source of bits, backed by a []byte The LSB is considered the first bit in a byte.
type BytesMSB ¶
BytesMSB is a source of bits, backed by a []byte The MSB is considered the first bit in a byte.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is an immutable string of bits
func (String) AsBytesLSB ¶
func (String) AsBytesMSB ¶
Click to show internal directories.
Click to hide internal directories.