template <typename T, bool kSwap>
class UnsignedField
Defined at line 97 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
This wraps an unsigned integer type T, which might need byte-swapping.
If kSwap is false, this is a fancy way to just define a plain integer.
If kSwap is true, then assignments, extractions, and comparisons (only
== and != are supported, not all inequalities) perform byte-swapping.
The type is constexpr friendly and safely default (zero) constructible.
But it's usually used only via a pointer to memory holding data from an
ELF file or target process memory.
Public Methods
void UnsignedField<T, kSwap> (const UnsignedField<T, kSwap> & )
Defined at line 105 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
void UnsignedField<T, kSwap> (value_type x)
Allow implicit conversion.
Defined at line 108 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
UnsignedField<T, kSwap> & operator= (const UnsignedField<T, kSwap> & )
Defined at line 110 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
UnsignedField<T, kSwap> & operator= (value_type x)
Defined at line 112 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
value_type operator() ()
Defined at line 117 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h
value_type operator elfldltl::UnsignedField::value_type ()
Defined at line 119 of file ../../src/lib/elfldltl/include/lib/elfldltl/field.h