AsmResolver.BinaryStreamReaderExtensions.CanRead C# (CSharp) Метод

CanRead() публичный статический Метод

Determines whether the reader can read up to a specific amount of bytes.
public static CanRead ( this reader, int size ) : bool
reader this The reader to check.
size int The size of the data to check.
Результат bool
        public static bool CanRead(this IBinaryStreamReader reader, int size)
        {
            return (reader.Position - reader.StartPosition) + size <= reader.Length;
        }