Documentation
¶
Index ¶
Constants ¶
View Source
const ALLOC_FUNC = "zk_alloc"
View Source
const FREE_FUNC = "zk_free"
View Source
const MEMORY_PAGE_LIMIT = 256
Variables ¶
This section is empty.
Functions ¶
func InvokeStatus ¶
InvokeStatus is invoke for exports that return only a status code.
Types ¶
type Bytes ¶
type Bytes []byte
Bytes marshals an already-serialized buffer. MarshalBinary copies, so the scrub after the guest write cannot reach the caller's slice.
func (Bytes) MarshalBinary ¶
type Scalar ¶
type Scalar uint64
Scalar is an integer passed directly as a wasm argument, and the decoded form of an 8-byte little-endian result. Use U64s for a u64 sequence that crosses as a buffer.
func (Scalar) MarshalBinary ¶
MarshalBinary makes Scalar an Arg. A Scalar is never marshaled: it is passed as an integer argument, so reaching here is a misuse.
func (*Scalar) UnmarshalBinary ¶
type Slice ¶
type Slice[E encoding.BinaryMarshaler] []E
Slice marshals as the concatenation of its elements' marshalings.
func (Slice[E]) MarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.