示例#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);
 }