CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
unsafe.h
1#pragma once
2#include "system/object.h"
3
4namespace System { namespace Runtime { namespace CompilerServices {
5
9class Unsafe
10{
11public:
16 template<typename T>
17 static void* AsPointer(T& value)
18 {
19 return &value;
20 }
21
25 template <typename T>
26 static int32_t SizeOf()
27 {
28 return sizeof(T);
29 }
30};
31
32}}} // namespace System::Runtime::CompilerServices
Provides low-level operations for unsafe memory manipulation.
Definition: unsafe.h:10
static void * AsPointer(T &value)
Returns a pointer to the specified value.
Definition: unsafe.h:17
static int32_t SizeOf()
Returns the size of the specified type.
Definition: unsafe.h:26
Definition: db_command.h:9