Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uint64OrHash ¶
type Uint64OrHash struct {
// contains filtered or unexported fields
}
Uint64OrHash represents an optional interface type (int,hash).
func NewUint64OrHash ¶
func NewUint64OrHash(value interface{}) (*Uint64OrHash, error)
NewUint64OrHash returns a new variadic.Uint64OrHash given an int, uint64, or Hash
func NewUint64OrHashFromBytes ¶
func NewUint64OrHashFromBytes(data []byte) *Uint64OrHash
NewUint64OrHashFromBytes returns a new variadic.Uint64OrHash from an encoded variadic uint64 or hash
func (*Uint64OrHash) Decode ¶
func (x *Uint64OrHash) Decode(r io.Reader) error
Decode will decode the Uint64OrHash into a hash or uint64
func (*Uint64OrHash) Encode ¶
func (x *Uint64OrHash) Encode() ([]byte, error)
Encode will encode a uint64 or hash into the SCALE spec
func (*Uint64OrHash) Value ¶
func (x *Uint64OrHash) Value() interface{}
Value returns the interface value.
Click to show internal directories.
Click to hide internal directories.