encodeMethodCall method

  1. @override
ByteData encodeMethodCall (MethodCall call)
override

Encodes the specified methodCall into binary.

Implementation

@override
ByteData encodeMethodCall(MethodCall call) {
  final WriteBuffer buffer = WriteBuffer();
  messageCodec.writeValue(buffer, call.method);
  messageCodec.writeValue(buffer, call.arguments);
  return buffer.done();
}