serialize method

Uint8List serialize()

Implementation

Uint8List serialize() {
  var buffer = BytesBuffer(serializeBufferLength);
  writeTo(buffer);
  return buffer.asUint8List();
}