体制的盲目性此外,源缓冲区可以小于目标。#include #include
{
// Used to indicate the endianness of a typetype_endianness = tmp ?Binary::Endianness::Big : Binary::Endianness::Lit
然后,它通过枚举返回一个常量值,表示目标机器的endianness。如果一切正常工作,那么这段代码可以替换任何运行时检查,这些运行时检查是我或其他人用于endian检查的。.#include <iostream>
* hl_endianness * This enumeration can be placedinto templated objects in order to generate
* compile-time code based