Alexandria.Engines.Sciagi.Resources.PictureInstruction.PeekByte C# (CSharp) Méthode

PeekByte() protected static méthode

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