Esempio n. 1
0
    public byte[] encodeMethodCall(MethodCall call)
    {
        WriteBuffer buffer = new WriteBuffer();

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

        writeValue(buffer, message);
        return(buffer.done());
    }