ElfBuilder.toUint32

private uint toUint32(ulong value, string field) static

Convert a 64-bit value to its 32-bit ELF representation.

Parameters

valueThe value to convert.
fieldField name for the error message.

Returns

The value as a 32-bit unsigned integer.

Throws

Exception if the value does not fit in 32 bits.