CBS_get_any_asn1 function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<CBS>, Pointer<CBS_ASN1_TAG>)>(ffi.Pointer<CBS>, ffi.Pointer<CBS>, ffi.Pointer<CBS_ASN1_TAG>)>(symbol: 'bssl_dart_CBS_get_any_asn1')
int CBS_get_any_asn1(
  1. Pointer<CBS> cbs,
  2. Pointer<CBS> out,
  3. Pointer<CBS_ASN1_TAG> out_tag
)

CBS_get_any_asn1 sets |*out| to contain the next ASN.1 element from |*cbs| (not including tag and length bytes), sets |*out_tag| to the tag number, and advances |*cbs|. It returns one on success and zero on error. Either of |out| and |out_tag| may be NULL to ignore the value.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<CBS>,
    ffi.Pointer<CBS>,
    ffi.Pointer<CBS_ASN1_TAG>,
  )
>(symbol: 'bssl_dart_CBS_get_any_asn1')
external int CBS_get_any_asn1(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<CBS> out,
  ffi.Pointer<CBS_ASN1_TAG> out_tag,
);