OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Platform Namespace Reference

Typedefs

using NativeFilePath = std::string
 

Functions

template<size_t Alignment>
void * AlignedMalloc (size_t size) noexcept
 アライメントを指定してメモリを確保します。 More...
 
void AlignedFree (void *const p) noexcept
 アライメントを指定して確保したメモリを解放します。 More...
 
uint64 Rdtsc () noexcept
 

Variables

constexpr size_t PointerSize = sizeof(void*)
 ポインタのサイズ | The size of a pointer More...
 
constexpr size_t MinAlignment = __STDCPP_DEFAULT_NEW_ALIGNMENT__
 最小のメモリアラインメント | The minimum alignment of the memory More...
 
constexpr bool HasEmbeddedResource = false
 ファイルを実行ファイルに埋め込み可能であるか More...
 

Typedef Documentation

◆ NativeFilePath

using s3d::Platform::NativeFilePath = typedef std::string

Function Documentation

◆ AlignedFree()

void s3d::Platform::AlignedFree ( void *const  p)
inlinenoexcept

アライメントを指定して確保したメモリを解放します。

Parameters
p解放するメモリのポインタ
Returns
なし

◆ AlignedMalloc()

template<size_t Alignment>
void* s3d::Platform::AlignedMalloc ( size_t  size)
inlinenoexcept

アライメントを指定してメモリを確保します。

Parameters
size確保するメモリのサイズ
Returns
確保したメモリ

◆ Rdtsc()

uint64 s3d::Platform::Rdtsc ( )
inlinenoexcept

Variable Documentation

◆ HasEmbeddedResource

constexpr bool s3d::Platform::HasEmbeddedResource = false
inlineconstexpr

ファイルを実行ファイルに埋め込み可能であるか

◆ MinAlignment

constexpr size_t s3d::Platform::MinAlignment = __STDCPP_DEFAULT_NEW_ALIGNMENT__
inlineconstexpr

最小のメモリアラインメント | The minimum alignment of the memory

◆ PointerSize

constexpr size_t s3d::Platform::PointerSize = sizeof(void*)
inlineconstexpr

ポインタのサイズ | The size of a pointer