RPMallocConfig struct.
void * (*invoke) (
size_t size,
size_t *offset
)
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static RPMemoryMapCallback | Returns: the newRPMemoryMapCallbackCreates a |
| public static RPMemoryMapCallback | create(RPMemoryMapCallbackI instance)
Creates a |
| public static RPMemoryMapCallback |
| RPMemoryMapCallback | back to summary |
|---|---|
| protected RPMemoryMapCallback() | |
| RPMemoryMapCallback | back to summary |
|---|---|
| pack-priv RPMemoryMapCallback(long functionPointer) | |
| create | back to summary |
|---|---|
| public static RPMemoryMapCallback create(long functionPointer) Creates a
| |
| create | back to summary |
|---|---|
| public static RPMemoryMapCallback create(RPMemoryMapCallbackI instance) Creates a | |
| createSafe | back to summary |
|---|---|
| public static RPMemoryMapCallback createSafe(long functionPointer) Like
| |
| Modifier and Type | Field and Description |
|---|---|
| private final RPMemoryMapCallbackI |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | invoke(long
the number of bytes to map size, long the alignment offset offset)Implements org. |
| delegate | back to summary |
|---|---|
| private final RPMemoryMapCallbackI delegate | |
| Container | back to summary |
|---|---|
| pack-priv Container(long functionPointer, RPMemoryMapCallbackI delegate) | |
| invoke | back to summary |
|---|---|
| public long invoke(long size, long offset) Implements org. Doc from org. Map memory pages for the given number of bytes. The returned address MUST be aligned to the rpmalloc span size, which will always be a power of two. Optionally the function can store an alignment
offset in the offset variable in case it performs alignment and the returned pointer is offset from the actual start of the memory region due to this
alignment. The alignment offset will be passed to the memory unmap function. The alignment offset MUST NOT be larger than 65535 (storable in an
If you set a
| |