|
27 | 27 | #include "arcane/core/ISerializedData.h"
|
28 | 28 | #include "arcane/core/XmlNodeList.h"
|
29 | 29 |
|
30 |
| -#include "arcane/std/internal/TextReader2.h" |
31 |
| - |
32 | 30 | /*---------------------------------------------------------------------------*/
|
33 | 31 | /*---------------------------------------------------------------------------*/
|
34 | 32 |
|
@@ -230,24 +228,25 @@ readItemGroup(const String& group_full_name, Int64Array& written_unique_ids,
|
230 | 228 | }
|
231 | 229 | return;
|
232 | 230 | }
|
| 231 | + |
233 | 232 | info(5) << "READ GROUP " << group_full_name;
|
234 | 233 | String filename = BasicReaderWriterCommon::_getBasicGroupFile(m_path, group_full_name, m_rank);
|
235 |
| - TextReader2 reader(filename); |
| 234 | + std::ifstream reader(filename.localstr(), std::ios::in | std::ios::binary); |
236 | 235 |
|
237 | 236 | {
|
238 | 237 | Integer nb_unique_id = 0;
|
239 |
| - reader.readIntegers(IntegerArrayView(1, &nb_unique_id)); |
| 238 | + binaryRead(reader,asWritableBytes(SmallSpan<Integer>(&nb_unique_id, 1))); |
240 | 239 | info(5) << "NB_WRITTEN_UNIQUE_ID = " << nb_unique_id;
|
241 | 240 | written_unique_ids.resize(nb_unique_id);
|
242 |
| - reader.read(asWritableBytes(written_unique_ids.span())); |
| 241 | + binaryRead(reader,asWritableBytes(written_unique_ids.span())); |
243 | 242 | }
|
244 | 243 |
|
245 | 244 | {
|
246 | 245 | Integer nb_unique_id = 0;
|
247 |
| - reader.readIntegers(IntegerArrayView(1, &nb_unique_id)); |
| 246 | + binaryRead(reader,asWritableBytes(SmallSpan<Integer>(&nb_unique_id, 1))); |
248 | 247 | info(5) << "NB_WANTED_UNIQUE_ID = " << nb_unique_id;
|
249 | 248 | wanted_unique_ids.resize(nb_unique_id);
|
250 |
| - reader.read(asWritableBytes(wanted_unique_ids.span())); |
| 249 | + binaryRead(reader,asWritableBytes(wanted_unique_ids.span())); |
251 | 250 | }
|
252 | 251 | }
|
253 | 252 |
|
|
0 commit comments