bpf::system::Platform class

Contents

Utility class to represent the current system specs and environment specs. Also provides access to various low-level platform-dependent utilities

Public static functions

static auto GetEnvInfo() -> const Env&
static auto GetOSInfo() -> const OS&
static auto GetCPUInfo() -> const CPU&
static auto GetRAMInfo() -> RAM
static auto GetEndianess() -> EPlatformEndianess
static auto IsRunningAsAdmin() -> bool
static void ReverseBuffer(void* buf, const fsize size)
static void ReverseBuffer(void* buf, const fsize size, const fsize groupsize)

Function documentation

static const Env& bpf::system::Platform::GetEnvInfo()

Returns Env structure reference

Returns environment specs

static const OS& bpf::system::Platform::GetOSInfo()

Returns OS structure reference

Returns OS specs

static const CPU& bpf::system::Platform::GetCPUInfo()

Returns CPU structure reference

Returns CPU specs

static RAM bpf::system::Platform::GetRAMInfo()

Returns RAM structure reference

Returns current RAM specs

static EPlatformEndianess bpf::system::Platform::GetEndianess()

Returns enum value (see EPlatformEndianess)

Returns the current platform endianess

static bool bpf::system::Platform::IsRunningAsAdmin()

Returns true if the application is currently running as administrator, false otherwise

Check if this application is running as administrator

static void bpf::system::Platform::ReverseBuffer(void* buf, const fsize size)

Parameters
buf the buffer to reverse
size the size of the buffer to reverse

Reverse a buffer byte per byte. WARNING : This function modifies the input buffer

static void bpf::system::Platform::ReverseBuffer(void* buf, const fsize size, const fsize groupsize)

Parameters
buf the buffer to reverse
size the size of the buffer to reverse
groupsize the amount of bytes per group

Reverse a buffer group per group. WARNING : This function modifies the input buffer