Alexandria.Engines.Sciagi.Resources.PictureInstruction.PeekByte C# (CSharp) 메소드

PeekByte() 보호된 정적인 메소드

Peek at a byte without reading it.
protected static PeekByte ( Stream stream ) : byte
stream Stream
리턴 byte
        protected static byte PeekByte(Stream stream)
        {
            int value = stream.ReadByte();
            if (value < 0)
                return 0xFF;
            stream.Seek(-1, SeekOrigin.Current);
            return (byte)value;
        }