public void unmarshal(ByteBuf inBuf) { this.salt = inBuf.readInt(); this.ts = inBuf.readInt(); this.messages = inBuf.readIntMap(); }
public static void unpack(byte[] data, IPackable packableEx) { ByteBuf buffer = new ByteBuf(data); packableEx.unmarshal(buffer); }
public ByteBuf marshal(ByteBuf outBuf) { return(outBuf.put(salt).put(ts).putIntMap(messages)); }