ASN1Set.fromBytes constructor

ASN1Set.fromBytes(
  1. Uint8List bytes
)

Create a set from the bytes

Note that bytes could be longer than the actual sequence - in which case we would ignore any remaining bytes

Implementation

ASN1Set.fromBytes(super.bytes) : super.fromBytes() {
  if (!isSet(tag)) {
    throw ASN1Exception('The tag $tag does not look like a set type');
  }
  _decodeSet();
}