Extract a uint32_t value from *offset_ptr.

Synopsis

Declared in <llvm/Support/DataExtractor.h>

uint32_t
getU32(
    uint64_t* offset_ptr,
    Error* Err = nullptr) const;

Description

Extract a single uint32_t from the binary data at the offset pointed to by offset_ptr, and update the offset on success.

Return Value

The extracted uint32_t value.

Parameters

Name

Description

offset_ptr [inout]

A pointer to an offset within the data that will be advanced by the appropriate number of bytes if the value is extracted correctly. If the offset is out of bounds or there are not enough bytes to extract this value, the offset will be left unmodified.

Err [inout]

A pointer to an Error object. Upon return the Error object is set to indicate the result (success/failure) of the function. If the Error object is already set when calling this function, no extraction is performed.

Created with MrDocs