Skip to main content

Calldata

Type Alias Calldata 

Source
pub type Calldata = ScratchBuf;
Expand description

The calldata buffer — the SDK’s single ScratchBuf. With the alloc feature this is a heap Vec sized exactly to the calldata (any length); without it, a fixed SCRATCH_MAX-byte buffer.

Distinct from the write scratch: the decoded args borrow from this buffer (ReadXDR<'b>) for the whole frame, so it stays pinned and cannot be reused for outbound encoding.

Aliased Type§

pub struct Calldata { /* private fields */ }