encodeSuccessEnvelope method Null safety
- Object? result
override
Encodes a successful result
into a binary envelope.
Implementation
@override
ByteData encodeSuccessEnvelope(Object? result) {
final WriteBuffer buffer = WriteBuffer(startCapacity: _writeBufferStartCapacity);
buffer.putUint8(0);
messageCodec.writeValue(buffer, result);
return buffer.done();
}