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

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