Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
#include <metadata_management.h>
Public Member Functions | |
ShmemString (const ShmemString &)=delete | |
ShmemString (const ShmemString &&)=delete | |
ShmemString & | operator= (const ShmemString &)=delete |
ShmemString & | operator= (const ShmemString &&)=delete |
Public Attributes | |
u32 | offset |
u32 | size |
Representation of a non-NULL-terminated string in shared memory.
Both the ShmemString iteself and the memory for the string it represents must reside in the same shared memory segement, and the ShmemString must be stored at a lower address than the string memory because the offset is from the ShmemString instance itself. Here is a diagram:
|--------—8 bytes offset ---------—| [ ShmemString | offset: 8 | size: 16 ] [ "string in memory" ]
u32 hermes::ShmemString::offset |
offset is from the address of this ShmemString instance iteself
u32 hermes::ShmemString::size |
The size of the string (not NULL terminated)