Skip to main content

encode_ctx_signed_to_sink

Function encode_ctx_signed_to_sink 

Source
pub fn encode_ctx_signed_to_sink<S: EncodeSink + ?Sized>(
    sink: &mut S,
    tag: u8,
    value: i32,
) -> Result<usize, SinkFull>
Expand description

Append a context-tagged Signed with its minimum-width contents.

Stages the whole value for one write, with the scalar sink contract. The tag number keeps its existing unvalidated input behavior.