Files
haiku-beta6/src/kits/support/ByteOrder.cpp
T

23 lines
494 B
C++
Raw Normal View History

2002-07-09 12:24:59 +00:00
// Quick and dirty implementation of the byte order functions.
// Just here to be able to compile and test BFile.
// To be replaced by the OpenBeOS version to be provided by the IK Team.
#include <ByteOrder.h>
#include "LibBeAdapter.h"
// swap_data
status_t
swap_data(type_code type, void *data, size_t length, swap_action action)
{
return swap_data_adapter(type, data, length, action);
}
// is_type_swapped
bool
is_type_swapped(type_code type)
{
return is_type_swapped_adapter(type);
}