Migrate RTL subsystem to C++
This commit is contained in:
27
xtoskrnl/includes/rtl/endian.hh
Normal file
27
xtoskrnl/includes/rtl/endian.hh
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/rtl/endian.hh
|
||||
* DESCRIPTION: Endian conversion routines
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_RTL_ENDIAN_HH
|
||||
#define __XTOSKRNL_RTL_ENDIAN_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Runtime Library */
|
||||
namespace RTL
|
||||
{
|
||||
class Endianness
|
||||
{
|
||||
public:
|
||||
STATIC XTAPI USHORT SwapByte16(IN USHORT Source);
|
||||
STATIC XTAPI ULONG SwapByte32(IN ULONG Source);
|
||||
STATIC XTAPI ULONGLONG SwapByte64(IN ULONGLONG Source);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_RTL_ENDIAN_HH */
|
Reference in New Issue
Block a user