12 #ifndef SST_CORE_SERIALIZATION_IMPL_SER_BUFFER_ACCESSOR_H 13 #define SST_CORE_SERIALIZATION_IMPL_SER_BUFFER_ACCESSOR_H 15 #ifndef SST_INCLUDING_SERIALIZER_H 17 "The header file sst/core/serialization/impl/ser_buffer_accessor.h should not be directly included as it is not part of the stable public API. The file is included in sst/core/serialization/serializer.h" 20 #include "sst/core/warnmacros.h" 27 namespace Serialization {
46 T* ser_buffer =
reinterpret_cast<T*
>(bufptr_);
53 char* next_str(
size_t size)
55 char* ser_buffer =
reinterpret_cast<char*
>(bufptr_);
62 size_t size()
const {
return size_; }
64 size_t max_size()
const {
return max_size_; }
66 void init(
void* buffer,
size_t size)
68 bufstart_ =
reinterpret_cast<char*
>(buffer);
75 bufstart_ = bufptr_ =
nullptr;
76 max_size_ = size_ = 0;
100 #endif // SST_CORE_SERIALIZATION_IMPL_SER_BUFFER_ACCESSOR_H
Definition: ser_buffer_accessor.h:31
Definition: ser_buffer_accessor.h:40