Exemple #1
0
        public static PAIGOW_ROOM decode(byte[] data)
        {
            PAIGOW_ROOM proto = newBuilder();

            proto.build(data);
            return(proto);
        }
        public void build(byte[] data)
        {
            ByteBuffer buf = ByteBuffer.wrap(data);

            for (int i = 0; i < this.__flag.Length; i++)
            {
                this.__flag[i] = buf.get();
            }

            if (this.hasPaigowRoom())
            {
                byte[] bytes = new byte[buf.getInt()];
                buf.get(ref bytes, 0, bytes.Length);
                this.paigow_room = PAIGOW_ROOM.decode(bytes);
            }
        }