third_party_format.hpp 405 B

12345678910111213141516171819
  1. // endian/example/third_party_format.hpp
  2. // Copyright Beman Dawes 2014
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. #include <cstdint>
  6. namespace third_party
  7. {
  8. struct record
  9. {
  10. uint32_t id; // big endian
  11. int32_t balance; // big endian
  12. // ... data members whose endianness is not a concern
  13. };
  14. }