Image.Advance C# (CSharp) Method

Advance() static private method

static private Advance ( this stream, int length ) : bool
stream this
length int
return bool
    static bool Advance(this Stream stream, int length)
    {
        if (stream.Position + length >= stream.Length)
        {
            return false;
        }

        stream.Seek(length, SeekOrigin.Current);
        return true;
    }