public byte[] encodeMethodCall(MethodCall call) { WriteBuffer buffer = new WriteBuffer(); messageCodec.writeValue(buffer, call.method); messageCodec.writeValue(buffer, call.arguments); return(buffer.done()); }
public byte[] encodeMessage(object message) { if (message == null) { return(null); } WriteBuffer buffer = new WriteBuffer(); writeValue(buffer, message); return(buffer.done()); }