Ejemplo n.º 1
0
        public static ErrorHolder Decode(ClientMessage message)
        {
            var iterator = message.GetIterator();

            return(ErrorHolderCodec.Decode(iterator));
        }
 public static ClientMessage CreateForEncode(IClientProtocolBuffer buffer, int offset)
 {
     var clientMessage = new ClientMessage();
     clientMessage.WrapForEncode(buffer, offset);
     return clientMessage;
 }
 public void Merge(ClientMessage fragment)
 {
     // ignore the first frame of the fragment since first frame marks the fragment
     LastFrame.next = fragment.FirstFrame.next;
     LastFrame      = fragment.LastFrame;
 }
 public static ClientMessage Create()
 {
     var clientMessage = new ClientMessage();
     clientMessage.Wrap(new SafeBuffer(new byte[InitialBufferSize]), 0);
     return clientMessage;
 }
 public static void Encode(Address address, ClientMessage clientMessage)
 {
     clientMessage.Set(address.GetHost()).Set(address.GetPort());
 }