Exemplo n.º 1
0
 public void unmarshal(ByteBuf inBuf)
 {
     this.salt     = inBuf.readInt();
     this.ts       = inBuf.readInt();
     this.messages = inBuf.readIntMap();
 }
Exemplo n.º 2
0
        public static void unpack(byte[] data, IPackable packableEx)
        {
            ByteBuf buffer = new ByteBuf(data);

            packableEx.unmarshal(buffer);
        }
Exemplo n.º 3
0
 public ByteBuf marshal(ByteBuf outBuf)
 {
     return(outBuf.put(salt).put(ts).putIntMap(messages));
 }