getU32 overloads

Synopses

Declared in <llvm/Support/DataExtractor.h>

Extract a single uint32_t value from the cursor location.

uint32_t
getU32(Cursor& C) const;

Extract a uint32_t value from *offset_ptr.

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

Extract count uint32_t values from *offset_ptr.

uint32_t*
getU32(
    uint64_t* offset_ptr,
    uint32_t* dst,
    uint32_t count) const;

Return Value

  • The extracted uint32_t value, or zero on failure.

  • The extracted uint32_t value.

  • dst if all values were properly extracted and copied, NULL otherise.

Parameters

Name

Description

C [inout]

Cursor providing the extraction offset and sticky error state.

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.

dst [out]

A buffer to copy count uint32_t values into. dst must be large enough to hold all requested data.

count [in]

The number of uint32_t values to extract.

Created with MrDocs