initCborSerializerNoHead function

SelfDescribeEncoder initCborSerializerNoHead()

Implementation

SelfDescribeEncoder initCborSerializerNoHead() {
  cbor.init();
  final output = cbor.OutputStandard();
  const principalEncoder = PrincipalEncoder();
  const bigIntEncoder = BigIntEncoder();
  const bufferEncoder = BufferEncoder();
  const byteBufferEncoder = ByteBufferEncoder();

  return SelfDescribeEncoder.noHead(output)
    ..addEncoder(principalEncoder)
    ..addEncoder(bigIntEncoder)
    ..addEncoder(bufferEncoder)
    ..addEncoder(byteBufferEncoder);
}