Files
core_misc/tjp/core/endian/Endian.cpp
Timothy Prepscius fa54be052a flatten 20260225
2026-02-25 12:39:24 -05:00

17 lines
268 B
C++
Executable File

// TJP COPYRIGHT HEADER
#include "Endian.h"
using namespace tjp::core;
void endian::swap (char *buffer, int size)
{
int i, j;
for (i = 0, j = size-1 ; i < size/2; ++i, --j)
{
char switcheroo = buffer[i];
buffer[i] = buffer[j];
buffer[j] = switcheroo;
}
}