encode method

  1. @override
Uint8List encode()
override

Implementation

@override
Uint8List encode() {
  Uint8List content = bigIntToBytes(value,
      outLen: value.isNegative
          ? null
          : value.bitLength % 8 == 0
              ? ((value.bitLength + 7) >> 3) + 1
              : null);
  return ASN1Object.pack(tag, content);
}