Documentation ¶
Overview ¶
Package filler can fill objects based on a provided data source.
Index ¶
- type Filler
- func (f *Filler) BigInt16() *big.Int
- func (f *Filler) BigInt256() *big.Int
- func (f *Filler) BigInt32() *big.Int
- func (f *Filler) BigInt64() *big.Int
- func (f *Filler) Bool() bool
- func (f *Filler) Byte() byte
- func (f *Filler) ByteSlice(items int) []byte
- func (f *Filler) ByteSlice256() []byte
- func (f *Filler) GasInt() *big.Int
- func (f *Filler) MemInt() *big.Int
- func (f *Filler) Read(b []byte) (n int, err error)
- func (f *Filler) Reset()
- func (f *Filler) Uint16() uint16
- func (f *Filler) Uint32() uint32
- func (f *Filler) Uint64() uint64
- func (f *Filler) UsedUp() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filler ¶
type Filler struct {
// contains filtered or unexported fields
}
Filler can be used to fill objects from a data source.
func (*Filler) ByteSlice256 ¶
ByteSlice256 returns a byteslice with 0..255 values.
func (*Filler) GasInt ¶
GasInt returns a new big int to be used as a gas value. With probability 254/255 its in [0, 20.000.000]. With probability 1/255 its in [0, 2^32].
func (*Filler) MemInt ¶
MemInt returns a new big int to be used as a memory or offset value. With probability 252/255 its in [0, 256]. With probability 1/255 its in [0, 2^32]. With probability 1/255 its in [0, 2^64]. With probability 1/255 its in [0, 2^256].
Click to show internal directories.
Click to hide internal directories.