28 if (wxBYTE_ORDER == wxLITTLE_ENDIAN)
42 mpFid = fopen(filename,
"rb");
46 throw std::runtime_error(
"Error opening file");
85 actRead =
Read(buffer, 1, len, stride);
89 actRead =
Read(buffer, 2, len, stride);
95 actRead =
Read(buffer, 4, len, stride);
99 actRead =
Read(buffer, 8, len, stride);
112 uint8_t* pWork = (uint8_t*) buffer;
118 for (
size_t n = 0; n < len; n++)
122 fseek(
mpFid, (stride - 1) *
size, SEEK_CUR);
128 actRead = fread(buffer,
size, len,
mpFid);
137 uint8_t* pResBuffer = (uint8_t*) buffer;
142 throw std::runtime_error(
"SwapBytes Exception: Format width exceeding 8 bytes.");
145 for (
size_t i = 0; i < len; i++)
147 pCurBuffer = &(pResBuffer[i*
size]);
150 for (
size_t n = 0; n <
size; n++)
const char * end(const char *str) noexcept