记忆图 [英] memory map

查看:75
本文介绍了记忆图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试在巨大的文件中显示云点。我尝试记忆映射所有数据。

i want to try to display cloud point in huge file. I try to memory map all the data.

但我发现很难一次映射很多字节,例如65536000.in这种情况,

but i find it is difficult to map a lot of bytes one time, such as 65536000.in such situation,

我应该只使用65536来映射数据吗?使用26bytes将云点写入文件。

should i only use the 65536 to map the data? cloud point is written into the file with 26bytes.

我应该如何处理数据边界?

how should i process data border?

谢谢!

推荐答案

您好,

感谢您在此处发帖。

> >我想尝试在巨大的文件中显示云点。我尝试记忆地映射所有数据。

但我发现很难一次映射很多字节,例如65536000.in这种情况,

我应该只使用65536来映射数据吗?使用26bytes将云点写入文件。

请提供有关如何映射内存数据的更多信息?

Please provide more information about how do you map memory data?

在我的意见,要么会好的,这取决于你。它只是一块内存数据。你只需要将文件加载到内存映射中然后阅读。

In my opinion, either will be ok, it depends on you. It's just a block of memory data. You just need to load the file into a memory map and then read.

希望这可以帮到你。

最好的问候,

Baron Bi


这篇关于记忆图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆