CBB_add_space function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBB>, Pointer<Pointer<Uint8>>, Size)>(ffi.Pointer<CBB>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Size)>(symbol: 'bssl_dart_CBB_add_space')
int CBB_add_space(
  1. Pointer<CBB> cbb,
  2. Pointer<Pointer<Uint8>> out_data,
  3. int len
)

CBB_add_space appends len bytes to cbb and sets *out_data to point to the beginning of that space. The caller must then write len bytes of actual contents to *out_data. It returns one on success and zero otherwise.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<CBB>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Size,
  )
>(symbol: 'bssl_dart_CBB_add_space')
external int CBB_add_space(
  ffi.Pointer<CBB> cbb,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> out_data,
  int len,
);