encodeMethodCall method
- MethodCall methodCall
override
Encodes the specified methodCall
into binary.
Implementation
@override
ByteData encodeMethodCall(MethodCall methodCall) {
final WriteBuffer buffer = WriteBuffer(startCapacity: _writeBufferStartCapacity);
messageCodec.writeValue(buffer, methodCall.method);
messageCodec.writeValue(buffer, methodCall.arguments);
return buffer.done();
}