CBB_add_u16_length_prefixed function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBB>, Pointer<CBB>)>(ffi.Pointer<CBB>, ffi.Pointer<CBB>)>(symbol: 'bssl_dart_CBB_add_u16_length_prefixed')
int CBB_add_u16_length_prefixed(
  1. Pointer<CBB> cbb,
  2. Pointer<CBB> out_contents
)

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,
);