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 ¶ added in v1.1.0
type Iterator struct {
// contains filtered or unexported fields
}
Iterator represents an object capable of iterating sequentially and safely through a slice of bytes
func NewIterator ¶ added in v1.1.0
NewIterator creates a new iterator
func (*Iterator) FastForward ¶ added in v1.1.0
FastForward increments the iterator's offset
func (*Iterator) HasBytesLeft ¶ added in v1.1.0
HasBytesLeft checks whether the slice has some bytes left
Click to show internal directories.
Click to hide internal directories.