25 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
26 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
30 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[1];
31 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[0];
41 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
42 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
46 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[1];
47 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[0];
57 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
58 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
59 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
60 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
64 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[3];
65 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[2];
66 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[1];
67 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[0];
77 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
78 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
79 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
80 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
84 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[3];
85 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[2];
86 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[1];
87 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[0];
97 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
98 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
99 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
100 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
101 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[4];
102 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[5];
103 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[6];
104 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[7];
108 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[7];
109 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[6];
110 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[5];
111 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[4];
112 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[3];
113 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[2];
114 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[1];
115 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[0];
125 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
126 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
127 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
128 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
129 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[4];
130 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[5];
131 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[6];
132 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[7];
136 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[7];
137 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[6];
138 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[5];
139 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[4];
140 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[3];
141 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[2];
142 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[1];
143 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[0];
153 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[1];
154 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[0];
158 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
159 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
169 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[1];
170 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[0];
174 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
175 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
185 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[3];
186 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[2];
187 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[1];
188 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[0];
192 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
193 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
194 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
195 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
205 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[3];
206 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[2];
207 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[1];
208 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[0];
212 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
213 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
214 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
215 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
225 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[7];
226 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[6];
227 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[5];
228 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[4];
229 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[3];
230 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[2];
231 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[1];
232 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[0];
236 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
237 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
238 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
239 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
240 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[4];
241 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[5];
242 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[6];
243 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[7];
253 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[7];
254 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[6];
255 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[5];
256 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[4];
257 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[3];
258 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[2];
259 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[1];
260 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[0];
264 ((uint8_t*)&value)[0] = ((
const uint8_t*)buffer)[0];
265 ((uint8_t*)&value)[1] = ((
const uint8_t*)buffer)[1];
266 ((uint8_t*)&value)[2] = ((
const uint8_t*)buffer)[2];
267 ((uint8_t*)&value)[3] = ((
const uint8_t*)buffer)[3];
268 ((uint8_t*)&value)[4] = ((
const uint8_t*)buffer)[4];
269 ((uint8_t*)&value)[5] = ((
const uint8_t*)buffer)[5];
270 ((uint8_t*)&value)[6] = ((
const uint8_t*)buffer)[6];
271 ((uint8_t*)&value)[7] = ((
const uint8_t*)buffer)[7];
281 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
282 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
286 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[1];
287 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[0];
297 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
298 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
302 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[1];
303 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[0];
313 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
314 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
315 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
316 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
320 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[3];
321 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[2];
322 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[1];
323 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[0];
333 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
334 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
335 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
336 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
340 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[3];
341 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[2];
342 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[1];
343 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[0];
353 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
354 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
355 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
356 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
357 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[4];
358 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[5];
359 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[6];
360 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[7];
364 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[7];
365 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[6];
366 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[5];
367 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[4];
368 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[3];
369 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[2];
370 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[1];
371 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[0];
381 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
382 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
383 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
384 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
385 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[4];
386 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[5];
387 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[6];
388 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[7];
392 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[7];
393 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[6];
394 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[5];
395 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[4];
396 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[3];
397 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[2];
398 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[1];
399 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[0];
409 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[1];
410 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[0];
414 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
415 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
425 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[1];
426 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[0];
430 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
431 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
441 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[3];
442 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[2];
443 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[1];
444 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[0];
448 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
449 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
450 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
451 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
461 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[3];
462 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[2];
463 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[1];
464 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[0];
468 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
469 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
470 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
471 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
481 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[7];
482 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[6];
483 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[5];
484 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[4];
485 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[3];
486 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[2];
487 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[1];
488 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[0];
492 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
493 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
494 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
495 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
496 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[4];
497 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[5];
498 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[6];
499 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[7];
509 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[7];
510 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[6];
511 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[5];
512 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[4];
513 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[3];
514 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[2];
515 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[1];
516 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[0];
520 ((uint8_t*)buffer)[0] = ((
const uint8_t*)&value)[0];
521 ((uint8_t*)buffer)[1] = ((
const uint8_t*)&value)[1];
522 ((uint8_t*)buffer)[2] = ((
const uint8_t*)&value)[2];
523 ((uint8_t*)buffer)[3] = ((
const uint8_t*)&value)[3];
524 ((uint8_t*)buffer)[4] = ((
const uint8_t*)&value)[4];
525 ((uint8_t*)buffer)[5] = ((
const uint8_t*)&value)[5];
526 ((uint8_t*)buffer)[6] = ((
const uint8_t*)&value)[6];
527 ((uint8_t*)buffer)[7] = ((
const uint8_t*)&value)[7];
static size_t ReadLittleEndian(const void *buffer, int16_t &value)
Read little-endian signed 16-bit integer value from the given buffer.
static size_t WriteBigEndian(void *buffer, int16_t value)
Write big-endian signed 16-bit integer value into the given buffer.
static bool IsLittleEndian()
Is little-endian system?
static size_t ReadBigEndian(const void *buffer, int16_t &value)
Read big-endian signed 16-bit integer value from the given buffer.
static size_t WriteLittleEndian(void *buffer, int16_t value)
Write little-endian signed 16-bit integer value into the given buffer.
static bool IsBigEndian()
Is big-endian system?
C++ Common project definitions.