Documentation
¶
Index ¶
- func PadLeft(i []byte, rpl byte, length int) []byte
- func PadRight(i []byte, rpl byte, length int) []byte
- func ToLength(i []byte, rpl byte, length int) []byte
- type Iterator
- func (i *Iterator) Dump() (bs []byte)
- func (i *Iterator) FastForward(delta int)
- func (i *Iterator) HasBytesLeft() bool
- func (i *Iterator) Len() int
- func (i *Iterator) NextByte() (b byte, err error)
- func (i *Iterator) NextBytes(n int) (bs []byte, err error)
- func (i *Iterator) Offset() int
- func (i *Iterator) Seek(offset int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator represents an object capable of iterating sequentially and safely through a slice of bytes
func (*Iterator) FastForward ¶
FastForward increments the iterator's offset
func (*Iterator) HasBytesLeft ¶
HasBytesLeft checks whether the slice has some bytes left
Click to show internal directories.
Click to hide internal directories.