Check that Offset and DataSize form a valid read range.

Synopsis

Declared in <llvm/Support/BinaryStream.h>

Error
checkOffsetForRead(
    uint64_t Offset,
    uint64_t DataSize);

Return Value

a success error code if the read range is valid, otherwise an appropriate error code.

Parameters

Name

Description

Offset

Byte offset into the stream at which the read would begin.

DataSize

Number of bytes that would be read.

Created with MrDocs