write method

  1. @override
void write(
  1. Encoder encoder,
  2. ByteBuffer value
)
override

Implementation

@override
void write(cbor.Encoder encoder, ByteBuffer value) {
  final valBuff = Uint8Buffer();
  valBuff.addAll(value.asUint8List());
  encoder.writeBytes(valBuff);
}