Test the availability of length bytes of data from offset.

Synopsis

Declared in <llvm/Support/DataExtractor.h>

bool
isValidOffsetForDataOfSize(
    uint64_t offset,
    uint64_t length) const;

Return Value

true if offset is a valid offset and there are length bytes available at that offset, false otherwise.

Parameters

Name

Description

offset [in]

Starting byte offset within this object's data.

length [in]

Number of bytes that must be available at offset.

Created with MrDocs