c2i_ASN1_BIT_STRING function

  1. @RecordUse.new()
  2. @Native<Pointer<ASN1_OCTET_STRING> Function(Pointer<Pointer<ASN1_OCTET_STRING>>, Pointer<Pointer<Uint8>>, Long)>(ffi.Pointer<ffi.Pointer<ASN1_BIT_STRING>>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Long)>(symbol: 'bssl_dart_c2i_ASN1_BIT_STRING')
Pointer<ASN1_OCTET_STRING> c2i_ASN1_BIT_STRING(
  1. Pointer<Pointer<ASN1_OCTET_STRING>> out,
  2. Pointer<Pointer<Uint8>> inp,
  3. int len
)

c2i_ASN1_BIT_STRING decodes len bytes from *inp as the contents of a DER-encoded BIT STRING, excluding the tag and length. It behaves like d2i_SAMPLE except, on success, it always consumes all len bytes.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ASN1_BIT_STRING> Function(
    ffi.Pointer<ffi.Pointer<ASN1_BIT_STRING>>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Long,
  )
>(symbol: 'bssl_dart_c2i_ASN1_BIT_STRING')
external ffi.Pointer<ASN1_BIT_STRING> c2i_ASN1_BIT_STRING(
  ffi.Pointer<ffi.Pointer<ASN1_BIT_STRING>> out,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> inp,
  int len,
);