Skip to main content

OUTPUT_BUFFER_SIZE

Constant OUTPUT_BUFFER_SIZE 

Source
pub const OUTPUT_BUFFER_SIZE: usize = _; // 2_048usize
Expand description

Size of the buffer in u128 elements that holds the memory of the outputs that a payload declares.

This constant is helpful for transaction generation to check whether a created transaction doesn’t exceed this limit.

This defines how big the outputs that a payload declares could be together. Each of them starts at the next multiple of 16 bytes (Alignment::MAX) after the previous one.

Overflow will result in an error before any method is called.