14#include "arccore/base/ArrayView.h"
15#include "arccore/base/ArgumentException.h"
16#include "arccore/base/TraceInfo.h"
21#include "arccore/base/Array2View.h"
22#include "arccore/base/Array3View.h"
23#include "arccore/base/Array4View.h"
24#include "arccore/base/Span.h"
25#include "arccore/base/Span2.h"
37ARCCORE_BASE_EXPORT
void impl::
38arccoreThrowTooBigInteger [[noreturn]] (std::size_t size)
40 ARCCORE_THROW(ArgumentException,
"value '{0}' too big for Array size",size);
44ARCCORE_BASE_EXPORT
void impl::
45arccoreThrowTooBigInt64 [[noreturn]] (std::size_t size)
47 ARCCORE_THROW(ArgumentException,
"value '{0}' too big to fit in Int64",size);
50ARCCORE_BASE_EXPORT
void impl::
51arccoreThrowNegativeSize [[noreturn]] (Int64 size)
53 ARCCORE_THROW(ArgumentException,
"invalid negative value '{0}' for Array size",size);
62 auto* ptr =
reinterpret_cast<const char*
>(bytes.
data());
63 ostr.write(ptr,bytes.
size());
72 auto* ptr =
reinterpret_cast<char*
>(bytes.
data());
73 istr.read(ptr,bytes.
size());
constexpr __host__ __device__ SizeType size() const noexcept
Retourne la taille du tableau.
constexpr __host__ __device__ pointer data() const noexcept
Pointeur sur le début de la vue.
Vue d'un tableau d'éléments de type T.
Espace de nom de Arccore.
void binaryRead(std::istream &istr, const Span< std::byte > &bytes)
Lit en binaire le contenu de bytes depuis le flot istr.
void binaryWrite(std::ostream &ostr, const Span< const std::byte > &bytes)
Ecrit en binaire le contenu de bytes sur le flot ostr.