1
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
2
// -----------------------------------------------------------------------------
3
- // Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3
+ // Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4
4
// See the top-level COPYRIGHT file for details.
5
5
// SPDX-License-Identifier: Apache-2.0
6
6
// -----------------------------------------------------------------------------
7
7
/* ---------------------------------------------------------------------------*/
8
- /* ISerializer.h (C) 2000-2023 */
8
+ /* ISerializer.h (C) 2000-2024 */
9
9
/* */
10
10
/* Interface d'un serialiseur. */
11
11
/* ---------------------------------------------------------------------------*/
@@ -79,10 +79,10 @@ class ARCCORE_SERIALIZE_EXPORT ISerializer
79
79
DT_Int16 = 2 , // !< Donnée de type entier 16 bits
80
80
DT_Int32 = 3 , // !< Donnée de type entier 32 bits
81
81
DT_Int64 = 4 , // !< Donnée de type entier 64 bits
82
- DT_Float32 = 5 , // !< Donnée de type flottant 32 bits
83
- DT_Float16 = 6 , // !< Donnée de type flottant 16 bits
84
- DT_BFloat16 = 7 , // !< Donnée de type 'brain float'
85
- DT_Int8 = 8 , // !< Donnée de type entier 8 bits
82
+ DT_Float32 = 12 , // !< Donnée de type flottant 32 bits
83
+ DT_Float16 = 11 , // !< Donnée de type flottant 16 bits
84
+ DT_BFloat16 = 10 , // !< Donnée de type 'brain float'
85
+ DT_Int8 = 13 , // !< Donnée de type entier 8 bits
86
86
};
87
87
88
88
virtual ~ISerializer (){} // !< Libère les ressources
@@ -101,7 +101,7 @@ class ARCCORE_SERIALIZE_EXPORT ISerializer
101
101
virtual void reserveSpan (eDataType dt, Int64 n) =0;
102
102
103
103
// ! \sa reserve(eDataType dt,Int64 n)
104
- void reserveSpan (int dt,Int64 n) { reserveSpan (( eDataType)dt ,n); }
104
+ void reserveSpan (int dt,Int64 n) { reserveSpan (static_cast < eDataType>(dt) ,n); }
105
105
106
106
// ! Réserve pour une vue de \a values éléments
107
107
virtual void reserveSpan (Span<const Real> values);
0 commit comments