RawMemoryRead

RawMemoryRead[ptr]

从指针 ptr 处读取原始内存.

RawMemoryRead[ptr,offset]

从偏移指针处读取.

更多信息

范例

打开所有单元关闭所有单元

基本范例  (2)

为一个类型为 "CInt" 的对象分配内存:

往原始内存中写入一个值:

读取该值:

导出字符串的原始内存表示:

读取原始内存的内容:

范围  (1)

RawMemoryRead 支持将托管指针作为其第一个参数进行传递:

它也支持传递非托管指针:

属性和关系  (1)

ByteArray 导出为原始内存:

RawMemoryRead 读取原始内存的内容:

同样,可以使用 RawMemoryImport

Wolfram Research (2023),RawMemoryRead,Wolfram 语言函数,https://reference.wolfram.com/language/ref/RawMemoryRead.html.

文本

Wolfram Research (2023),RawMemoryRead,Wolfram 语言函数,https://reference.wolfram.com/language/ref/RawMemoryRead.html.

CMS

Wolfram 语言. 2023. "RawMemoryRead." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/RawMemoryRead.html.

APA

Wolfram 语言. (2023). RawMemoryRead. Wolfram 语言与系统参考资料中心. 追溯自 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: 05-November-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: 05-November-2024 ]}