Пример #1
0
        private TagNode ReadByte()
        {
            int gzByte = _stream.ReadByte();

            if (gzByte == -1)
            {
                throw new NBTException(NBTException.MSG_GZIP_ENDOFSTREAM);
            }

            TagNodeByte val = new TagNodeByte((byte)gzByte);

            return(val);
        }
Пример #2
0
 private void WriteByte(TagNodeByte val)
 {
     _stream.WriteByte(val.Data);
 }