Module: blank_storage

class BlankStorage

Public Functions

BlankStorage()

Constructor for BlankStorage

~BlankStorage()

The memory space for a process message buffer and an integer with the size

Destructor for BlankStorage

BlankStorage(const BlankStorage &mainCopy)

destruction

Initialize a BlankStorage with some non-blank storage

Parameters
  • BlankStorage&: mainCopy

void IncreaseStorage(uint64_t NewVolume)

Initialize with some already written memory

Copy StorageBuffer data into a new block of memory of size NewVolume Also delete the old memory block

Return

void

Parameters
  • uint64_t: NewVolume total volume in bytes of StorageBuffer to increase to

void ClearStorage()

Copy to new memory of size NewVolume bytes

Kill the BlankStorage()

Return

void

uint64_t GetCurrentSize() const

null out the BlankStorage

Public Members

uint8_t *StorageBuffer

size in bytes of the StorageBuffer

Private Members

uint64_t BufferStorageSize

The memory where a process buffer writes messages