12#ifndef ARCCORE_SERIALIZE_BASICSERIALIZERINTERNAL_H
13#define ARCCORE_SERIALIZE_BASICSERIALIZERINTERNAL_H
17#include "arccore/serialize/BasicSerializer.h"
29class ARCCORE_SERIALIZE_EXPORT BasicSerializer::
Impl
49 virtual void allocateBuffer(
Int64 nb_real,
Int64 nb_int16,
Int64 nb_int32,
52 virtual void copy(
Impl* rhs) = 0;
57 virtual void preallocate(
Int64 size) = 0;
58 virtual void releaseBuffer() = 0;
59 virtual void setFromSizes() = 0;
60 virtual Int64 totalSize()
const = 0;
61 virtual void printSizes(std::ostream& o)
const = 0;
65 ARCCORE_DEPRECATED_REASON(
"Y2023: use overload with float16/float32")
66 virtual void allocateBuffer(
Int64 nb_real,
Int64 nb_int16,
Int64 nb_int32,
73class ARCCORE_SERIALIZE_EXPORT BasicSerializer::Impl2
96 ARCCORE_DEPRECATED_REASON(
"Y2024: Use reserve(eBasicDataType) instead")
101 void allocateBuffer();
105 void copy(
const BasicSerializer& rhs);
106 void setMode(
eMode new_mode);
111 ARCCORE_DEPRECATED_REASON(
"Y2023: use overload with float16/float32")
117 void setSerializeTypeInfo(
bool v) { m_is_serialize_typeinfo = v; }
118 bool isSerializeTypeInfo()
const {
return m_is_serialize_typeinfo; }
125 bool m_is_serialize_typeinfo =
false;
File containing definitions of basic data types managed by Arccore.
Buffer for serializing a data type DataType.
Constant view of an array of type T.
eMode
Serializer operating mode.
eReadMode
Serializer read mode.
View of an array of elements of type T.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
eBasicDataType
Type of a basic data item.