CBB_add_u16_length_prefixed function
CBB_add_u16_length_prefixed sets |*out_contents| to a new child of |cbb|. The data written to |*out_contents| will be prefixed in |cbb| with a 16-bit, big-endian length. It returns one on success or zero on error.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<CBB>, ffi.Pointer<CBB>)>(
symbol: 'bssl_dart_CBB_add_u16_length_prefixed',
)
external int CBB_add_u16_length_prefixed(
ffi.Pointer<CBB> cbb,
ffi.Pointer<CBB> out_contents,
);