OpenRA.StreamExts.Peek C# (CSharp) 메소드

Peek() 공개 정적인 메소드

public static Peek ( this s ) : int
s this
리턴 int
        public static int Peek(this Stream s)
        {
            var b = s.ReadByte();
            if (b == -1)
                return -1;
            s.Seek(-1, SeekOrigin.Current);
            return (byte)b;
        }