OPENSSL_memdup function

  1. @RecordUse.new()
  2. @Native<Pointer<Void> Function(Pointer<Void>, Size)>(ffi.Pointer<ffi.Void>, ffi.Size)>(symbol: 'bssl_dart_OPENSSL_memdup')
Pointer<Void> OPENSSL_memdup(
  1. Pointer<Void> data,
  2. int size
)

OPENSSL_memdup returns an allocated, duplicate of |size| bytes from |data| or NULL on allocation failure. The memory allocated must be freed with |OPENSSL_free|.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Pointer<ffi.Void> Function(ffi.Pointer<ffi.Void>, ffi.Size)>(
  symbol: 'bssl_dart_OPENSSL_memdup',
)
external ffi.Pointer<ffi.Void> OPENSSL_memdup(
  ffi.Pointer<ffi.Void> data,
  int size,
);