15#include "arccore/base/ArgumentException.h"
16#include "arccore/base/TraceInfo.h"
17#include "arccore/base/FatalErrorException.h"
64ARCCORE_BASE_EXPORT
void impl::
65arccoreThrowTooBigInteger [[noreturn]] (std::size_t size)
71ARCCORE_BASE_EXPORT
void impl::
72arccoreThrowTooBigInt64 [[noreturn]] (std::size_t size)
77ARCCORE_BASE_EXPORT
void impl::
78arccoreThrowNegativeSize [[noreturn]] (
Int64 size)
89 auto* ptr =
reinterpret_cast<const char*
>(bytes.
data());
90 ostr.write(ptr,bytes.
size());
99 auto* ptr =
reinterpret_cast<char*
>(bytes.
data());
100 istr.read(ptr,bytes.
size());
106void Impl::ExtentStorageBase::
107_throwBadSize(Int64 wanted_size, Int64 expected_size)
109 ARCCORE_FATAL(
"Bad size value for fixed extent size={0} expected={1}", wanted_size, expected_size);
#define ARCCORE_FATAL(...)
Macro envoyant une exception FatalErrorException.
#define ARCCORE_THROW(exception_class,...)
Macro pour envoyer une exception avec formattage.
Types et fonctions associés aux classes Span2Impl, Small2Span and Span2.
Types et fonctions associés aux classes SpanImpl, SmallSpan and Span.
Types et fonctions associés aux classes Array2View et ConstArray2View.
Types et fonctions associés aux classes Array3View et ConstArray3View.
Types et fonctions associés aux classes Array4View et ConstArray4View.
Types et fonctions associés aux classes ArrayView et ConstArrayView.
Exception lorsqu'un argument est invalide.
constexpr __host__ __device__ pointer data() const noexcept
Pointeur sur le début de la vue.
constexpr __host__ __device__ SizeType size() const noexcept
Retourne la taille du tableau.
Vue d'un tableau d'éléments de type T.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int64_t Int64
Type entier signé sur 64 bits.
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.