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

            packableEx.unmarshal(buffer);
        }
Пример #3
0
 public ByteBuf marshal(ByteBuf outBuf)
 {
     return(outBuf.put(salt).put(ts).putIntMap(messages));
 }