12#ifndef SST_CORE_SERIALIZATION_SERIALIZE_BUFFER_ACCESSOR_H
13#define SST_CORE_SERIALIZATION_SERIALIZE_BUFFER_ACCESSOR_H
15#include "sst/core/warnmacros.h"
22namespace Serialization {
41 T* ser_buffer =
reinterpret_cast<T*
>(bufptr_);
48 char* next_str(
size_t size)
50 char* ser_buffer =
reinterpret_cast<char*
>(bufptr_);
57 size_t size()
const {
return size_; }
59 size_t max_size()
const {
return max_size_; }
61 void init(
void* buffer,
size_t size)
63 bufstart_ =
reinterpret_cast<char*
>(buffer);
70 bufstart_ = bufptr_ =
nullptr;
71 max_size_ = size_ = 0;
Definition: serialize_buffer_accessor.h:36
Definition: serialize_buffer_accessor.h:27