plugify 1.2.8
|
Provides access to a span of parameters stored in register-sized slots. More...
#include <callback.hpp>
Public Types | |
using | slot_type = uint64_t |
Public Member Functions | |
ParametersSpan (slot_type *data, size_t count) noexcept | |
Constructs a ParametersSpan. | |
template<typename T > requires SlotStorable<T> | |
T | Get (size_t index) const noexcept |
Get a value from the parameter span. | |
template<typename T > requires SlotStorable<T> | |
void | Set (size_t index, const T &value) noexcept |
Set a value in the parameter span. | |
Provides access to a span of parameters stored in register-sized slots.
This class allows reading and writing values of trivially copyable types to a contiguous array of register-sized slots, typically used for passing function arguments in JIT or ABI contexts.
Definition at line 166 of file callback.hpp.
using plugify::ParametersSpan::slot_type = uint64_t |
Definition at line 168 of file callback.hpp.
|
inlinenoexcept |
Constructs a ParametersSpan.
data | Pointer to the slot data. |
count | Number of slots. |
Definition at line 175 of file callback.hpp.
|
inlinenoexcept |
Get a value from the parameter span.
T | Type to interpret the parameter as |
index | Parameter index |
Definition at line 188 of file callback.hpp.
|
inlinenoexcept |
Set a value in the parameter span.
T | Type of the value to set |
index | Parameter index |
value | Value to set |
Definition at line 203 of file callback.hpp.