Arcane  v4.1.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
arcane/src/arcane/utils/Convert.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* Convert.h (C) 2000-2025 */
9/* */
10/* Fonctions pour convertir un type en un autre. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_CONVERT_H
13#define ARCANE_UTILS_CONVERT_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arccore/base/Convert.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::Convert
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28/*!
29 * \brief Converti un tableau d'octet en sa représentation hexadécimale.
30 *
31 * Chaque octet de \a input est converti en deux caractères hexadécimaux,
32 * appartenant à [0-9a-f].
33 */
34extern ARCANE_UTILS_EXPORT String
36
37/*---------------------------------------------------------------------------*/
38/*---------------------------------------------------------------------------*/
39/*!
40 * \brief Converti un tableau d'octet en sa représentation hexadécimale.
41 *
42 * Chaque octet de \a input est converti en deux caractères hexadécimaux,
43 * appartenant à [0-9a-f].
44 */
45extern ARCANE_UTILS_EXPORT String
46toHexaString(Span<const std::byte> input);
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50/*!
51 * \brief Converti un réel en sa représentation hexadécimale.
52 *
53 * Chaque octet de \a input est converti en deux caractères hexadécimaux,
54 * appartenant à [0-9a-f].
55 */
56extern ARCANE_UTILS_EXPORT String
57toHexaString(Real input);
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61/*!
62 * \brief Converti un entier 64 bits sa représentation hexadécimale.
63 *
64 * Chaque octet de \a input est converti en deux caractères hexadécimaux,
65 * appartenant à [0-9a-f].
66 * Le tableau \a output doit avoir au moins 16 éléments.
67 */
68extern ARCANE_UTILS_EXPORT void
69toHexaString(Int64 input, Span<Byte> output);
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74} // namespace Arcane::Convert
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
79#endif
80
Déclarations des types utilisés dans Arcane.
Fonctions pour convertir un type en un autre.
String toHexaString(ByteConstArrayView input)
Converti un tableau d'octet en sa représentation hexadécimale.
std::int64_t Int64
Type entier signé sur 64 bits.
double Real
Type représentant un réel.
ConstArrayView< Byte > ByteConstArrayView
Equivalent C d'un tableau à une dimension de caractères.
Definition UtilsTypes.h:492