CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
memory_handle.h
1#pragma once
2
3#include "system/idisposable.h"
4#include "defines.h"
5
6namespace System { namespace Buffers {
7
13class MemoryHandle : public IDisposable, public System::Details::BoxableObjectBase
14{
15 typedef MemoryHandle ThisType;
17
18 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
19 RTTI_INFO_VALUE_TYPE(MemoryHandle);
20
21public:
23
24public:
27 MemoryHandle(void* pointer) : m_pointer(pointer)
28 {
29 }
30
33 void* get_Pointer() const
34 {
35 return m_pointer;
36 }
37
41 virtual void Dispose()
42 {
43 }
44
45private:
46 void* m_pointer;
47};
48
49}} // namespace System::Buffers
Represents a handle to a block of memory.
Definition: memory_handle.h:14
virtual void Dispose()
Releases resources held by the memory handle.
Definition: memory_handle.h:41
void * get_Pointer() const
Gets the raw memory pointer associated with this handle.
Definition: memory_handle.h:33
MemoryHandle(void *pointer)
Initializes a new instance of the MemoryHandle type.
Definition: memory_handle.h:27
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Definition: db_command.h:9