14#include "arccore/serialize/SerializerExtension.h"
16#include "arccore/base/Float128.h"
17#include "arccore/base/Float16.h"
18#include "arccore/base/Int128.h"
19#include "arccore/base/BFloat16.h"
21#include "arccore/common/NumArray.h"
22#include "arccore/collections/Array2.h"
37 m_serializer->reserveInt64(values.
size() + 1);
38 for (
const String& elem : values) {
39 m_serializer->reserveSpan(elem.bytes());
49 m_serializer->putInt64(values.
size());
50 for (
const String& elem : values) {
51 m_serializer->putInt64(elem.length());
52 m_serializer->putSpan(elem.bytes());
62 const Int64 size_array = m_serializer->getInt64();
64 for (
Int64 i = 0; i < size_array; ++i) {
65 const Int64 len = m_serializer->getInt64();
67 m_serializer->getSpan(bytes);
Types and functions associated with the MDSpan class.
Class representing a classic 2D array.
Base class for 1D data vectors.
Span< const T > span() const
Immutable view of this array.
void resize(Int64 s)
Changes the number of elements in the array to s.
Base class for multidimensional views.
Multi-dimensional arrays for numerical types accessible on accelerators.
void getSpan(Span2< Type > values) const
Retrieve the array values.
void reserveArray(Span2< const Type > values) const
Reserve to save the number of elements and the values elements.
void putArray(Span2< const Type > values) const
Save the number of elements and the values elements.
void reserveSpan(Span2< const Type > values) const
Reserve for a view of values elements.
void getArray(Array2< Type > &values) const
Resize and fill values.
void putSpan(Span2< const Type > values) const
Add the array values.
View for a 2D array whose size is an 'Int64'.
constexpr __host__ __device__ SizeType size() const noexcept
Returns the size of the array.
View of an array of elements of type T.
Unicode character string.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.