Exemplo n.º 1
0
        /// <summary>
        /// Reads a signed byte.
        /// </summary>
        /// <returns></returns>
        public sbyte ReadSByte()
        {
            IntermediateByte ib = new IntermediateByte();

            ib.U = (byte)_stream.ReadByte();
            return(ib.S);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Reads a signed byte.
        /// </summary>
        /// <returns></returns>
        public sbyte ReadSByte()
        {
            var ib = new IntermediateByte();

            ib.U = (byte)BaseStream.ReadByte();
            return(ib.S);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Reads a signed byte.
        /// </summary>
        /// <param name="value">The value that was read.</param>
        /// <returns></returns>
        public EasyReader ReadSByte(out sbyte value)
        {
            IntermediateByte ib = new IntermediateByte();

            ib.U  = (byte)_stream.ReadByte();
            value = ib.S;
            return(this);
        }