CBS_asn1_bitstring_has_bit function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, UnsignedInt)>(ffi.Pointer<CBS>, ffi.UnsignedInt)>(symbol: 'bssl_dart_CBS_asn1_bitstring_has_bit')
int CBS_asn1_bitstring_has_bit(
  1. Pointer<CBS> cbs,
  2. int bit
)

CBS_asn1_bitstring_has_bit returns one if |cbs| is a valid ASN.1 BIT STRING body and the specified bit is present and set. Otherwise, it returns zero. |bit| is indexed starting from zero.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<CBS>, ffi.UnsignedInt)>(
  symbol: 'bssl_dart_CBS_asn1_bitstring_has_bit',
)
external int CBS_asn1_bitstring_has_bit(
  ffi.Pointer<CBS> cbs,
  int bit,
);