Documentation
¶
Index ¶
- type BytesIter
- func (iter *BytesIter) BytesLeft() int
- func (iter *BytesIter) IsEmpty() bool
- func (iter *BytesIter) NextByte() (byte, error)
- func (iter *BytesIter) NextBytes(n int) ([]byte, error)
- func (iter *BytesIter) NextString(n int) (string, error)
- func (iter *BytesIter) NextUint16() (*big.Int, error)
- func (iter *BytesIter) NextUint160() (*big.Int, error)
- func (iter *BytesIter) NextUint24() (uint32, error)
- func (iter *BytesIter) NextUint256() (*big.Int, error)
- func (iter *BytesIter) NextUint32() (*big.Int, error)
- func (iter *BytesIter) Rest() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesIter ¶
type BytesIter struct {
// contains filtered or unexported fields
}
BytesIter facilitates sequential reading of bytes from a byte slice.
func (*BytesIter) NextString ¶
NextString reads the next n bytes and returns them as a string.
func (*BytesIter) NextUint16 ¶
NextUint16 reads the next 2 bytes and returns them as a *big.Int.
func (*BytesIter) NextUint160 ¶
NextUint160 reads the next 20 bytes and returns them as a *big.Int.
func (*BytesIter) NextUint24 ¶
NextUint24 reads the next 3 bytes and returns them as a uint32.
func (*BytesIter) NextUint256 ¶
NextUint256 reads the next 32 bytes and returns them as a *big.Int.
func (*BytesIter) NextUint32 ¶
NextUint32 reads the next 4 bytes and returns them as a *big.Int.
Click to show internal directories.
Click to hide internal directories.