OpenRA.StreamExts.ReadUInt8 C# (CSharp) Method

ReadUInt8() public static method

public static ReadUInt8 ( this s ) : byte
s this
return byte
        public static byte ReadUInt8(this Stream s)
        {
            var b = s.ReadByte();
            if (b == -1)
                throw new EndOfStreamException();
            return (byte)b;
        }