Ejemplo n.º 1
0
        private void UnPackProperty(ByteBuffer buf)
        {
            if (buf.ReadableBytes() < 2)
            {
                return;
            }
            int index = buf.ReadUshort();

            if (index == MESSAGE_OVER_MASK)
            {
                return;
            }

            if (index < 0 || index >= properties.Count)
            {
                throw new Exception("proto index is invalid->" + index);
            }
            PropertyBase pb = properties[index];

            pb.UnPack(buf);

            UnPackProperty(buf);
        }