BIO_read function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<BIO>, Pointer<Void>, Int)>(ffi.Pointer<BIO>, ffi.Pointer<ffi.Void>, ffi.Int)>(symbol: 'bssl_dart_BIO_read')
int BIO_read(
  1. Pointer<BIO> bio,
  2. Pointer<Void> data,
  3. int len
)

BIO_read attempts to read |len| bytes into |data|. It returns the number of bytes read, zero on EOF, or a negative number on error.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<BIO>, ffi.Pointer<ffi.Void>, ffi.Int)>(
  symbol: 'bssl_dart_BIO_read',
)
external int BIO_read(
  ffi.Pointer<BIO> bio,
  ffi.Pointer<ffi.Void> data,
  int len,
);