CBS_get_optional_asn1_uint64 function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<Uint64>, CBS_ASN1_TAG, Uint64)>(ffi.Pointer<CBS>, ffi.Pointer<ffi.Uint64>, CBS_ASN1_TAG, ffi.Uint64)>(symbol: 'bssl_dart_CBS_get_optional_asn1_uint64')
int CBS_get_optional_asn1_uint64(
  1. Pointer<CBS> cbs,
  2. Pointer<Uint64> out,
  3. int tag,
  4. int default_value,
)

CBS_get_optional_asn1_uint64 gets an optional explicitly-tagged INTEGER from cbs. If present, it sets *out to the value. Otherwise, it sets *out to default_value. It returns one on success, whether or not the element was present, and zero on decode failure.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<CBS>,
    ffi.Pointer<ffi.Uint64>,
    CBS_ASN1_TAG,
    ffi.Uint64,
  )
>(symbol: 'bssl_dart_CBS_get_optional_asn1_uint64')
external int CBS_get_optional_asn1_uint64(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<ffi.Uint64> out,
  int tag,
  int default_value,
);