K
K
kill942015-10-24 18:30:39
C++ / C#
kill94, 2015-10-24 18:30:39

How to access memory in C#?

in Pascal there are arrays for direct memory access Mem, MemL, and MemW
is there such a thing in C#? if so, how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark Doe, 2015-10-24
@mourr

C# has an excellent unsafe that allows you to do basic operations with memory, such as malloc, memcpy, etc. - this is all implemented through P / Invoke - calling Managed by the Unmanaged functions code (for example, HeapAlloc-HeapFree from kernel32, for working with memory, and any other unmanaged disgrace in the context of a managed assembly)
Here are a couple of links on the topic
Working with memory directly (malloc in C #)
Platform / Invoke mechanism

V
Vyacheslav Zolotov, 2015-10-24
@SZolotov

Google about working with pointers in C#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question