Documentation ¶
Index ¶
- func ForEachUnpack(t abi.Type, output []byte, start, size int) (interface{}, error)
- func LengthPrefixPointsTo(cursor int, output []byte) (start int, length int, err error)
- func LocateMethod(abiInst *abi.ABI, methodID []byte) (*abi.Method, error)
- func ReadBool(word []byte) (bool, error)
- func ReadFixedBytes(t abi.Type, word []byte) (interface{}, error)
- func ReadFunctionType(t abi.Type, word []byte) (funcTy [24]byte, err error)
- func ReadInteger(kind reflect.Kind, b []byte) interface{}
- func RequireLengthPrefix(t *abi.Type) bool
- func ToGoSlice(i int, t abi.Type, output []byte) (interface{}, error)
- func ToGoType(index int, t abi.Type, data []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachUnpack ¶
iteratively unpack elements
func LengthPrefixPointsTo ¶
// interprets a 32 byte slice as an offset and then determines which indice to look to decode the type.
func ReadFixedBytes ¶
through reflection, creates a fixed array to be read from
func ReadFunctionType ¶
A function type is simply the address with the function selection signature at the end. This enforces that standard by always presenting it as a 24-array (address + sig = 24 bytes)
func ReadInteger ¶
reads the integer based on its kind
func RequireLengthPrefix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.