Hermes  0.9.5-beta
Hierarchical Distributed I/O Buffering System
hermes::ShmemString Struct Reference

#include <metadata_management.h>

Public Member Functions

 ShmemString (const ShmemString &)=delete
 
 ShmemString (const ShmemString &&)=delete
 
ShmemStringoperator= (const ShmemString &)=delete
 
ShmemStringoperator= (const ShmemString &&)=delete
 

Public Attributes

u32 offset
 
u32 size
 

Detailed Description

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" ]

See also
MakeShmemString()
GetShmemString()

Member Data Documentation

◆ offset

u32 hermes::ShmemString::offset

offset is from the address of this ShmemString instance iteself

◆ size

u32 hermes::ShmemString::size

The size of the string (not NULL terminated)


The documentation for this struct was generated from the following file: