encodeSuccessEnvelope method

  1. @override
ByteData encodeSuccessEnvelope (dynamic result)
override

Encodes a successful result into a binary envelope.

Implementation

@override
ByteData encodeSuccessEnvelope(dynamic result) {
  final WriteBuffer buffer = WriteBuffer();
  buffer.putUint8(0);
  messageCodec.writeValue(buffer, result);
  return buffer.done();
}