packValue method

  1. @override
void packValue(
  1. BsonBinary buffer
)
override

Implementation

@override
void packValue(BsonBinary buffer) {
  buffer.writeInt(utfData.length + 1);
  buffer.byteList
      .setRange(buffer.offset, buffer.offset + utfData.length, utfData);
  buffer.offset += utfData.length;
  buffer.writeByte(0);
}