encode method

  1. @override
void encode(
  1. String data,
  2. LengthTrackingByteSink buffer
)
override

Writes data into the buffer.

Implementation

@override
void encode(String data, LengthTrackingByteSink buffer) {
  const DynamicBytes().encode(uint8ListFromList(utf8.encode(data)), buffer);
}