RawMemoryRead

RawMemoryRead[ptr]

reads raw memory from the pointer ptr.

RawMemoryRead[ptr,offset]

reads from an offset pointer.

Details

Examples

open allclose all

Basic Examples  (2)

Allocate an object of type "CInt":

Write a value to the raw memory:

Read the value:

Export a raw memory representation of a string:

Read the contents of the raw memory:

Scope  (1)

RawMemoryRead supports passing a managed pointer as its first argument:

It also supports passing a non-managed pointer:

Properties & Relations  (1)

Export a ByteArray as raw memory:

RawMemoryRead reads the contents of the raw memory:

RawMemoryImport can be used for the same purpose:

Wolfram Research (2023), RawMemoryRead, Wolfram Language function, https://reference.wolfram.com/language/ref/RawMemoryRead.html.

Text

Wolfram Research (2023), RawMemoryRead, Wolfram Language function, https://reference.wolfram.com/language/ref/RawMemoryRead.html.

CMS

Wolfram Language. 2023. "RawMemoryRead." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RawMemoryRead.html.

APA

Wolfram Language. (2023). RawMemoryRead. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RawMemoryRead.html

BibTeX

@misc{reference.wolfram_2024_rawmemoryread, author="Wolfram Research", title="{RawMemoryRead}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/RawMemoryRead.html}", note=[Accessed: 17-June-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_rawmemoryread, organization={Wolfram Research}, title={RawMemoryRead}, year={2023}, url={https://reference.wolfram.com/language/ref/RawMemoryRead.html}, note=[Accessed: 17-June-2024 ]}