CBS_stow function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<Pointer<Uint8>>, Pointer<Size>)>(ffi.Pointer<CBS>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Pointer<ffi.Size>)>(symbol: 'bssl_dart_CBS_stow')
int CBS_stow(
  1. Pointer<CBS> cbs,
  2. Pointer<Pointer<Uint8>> out_ptr,
  3. Pointer<Size> out_len
)

CBS_stow copies the current contents of |cbs| into |*out_ptr| and |*out_len|. If |*out_ptr| is not NULL, the contents are freed with OPENSSL_free. It returns one on success and zero on allocation failure. On success, |*out_ptr| should be freed with OPENSSL_free. If |cbs| is empty, |*out_ptr| will be NULL.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<CBS>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Pointer<ffi.Size>,
  )
>(symbol: 'bssl_dart_CBS_stow')
external int CBS_stow(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> out_ptr,
  ffi.Pointer<ffi.Size> out_len,
);