VFSVolumeSize 在 6GB 上溢出+ Palm Centro 上的卡

发布于 2024-07-09 13:22:16 字数 162 浏览 5 评论 0原文

当我在插入了 6GB SanDisk 卡的 Palm Centro 上的 Palm OS 上调用 VFSVolumeSize 时,它​​返回 1810366464 作为卡的大小,但使用了 2098102272 字节。 显然,卡片尺寸存在溢出。

有没有办法检测这种溢出并获取卡的实际大小?

When I call VFSVolumeSize on Palm OS on a Palm Centro with a 6GB SanDisk card inserted, it returns 1810366464 as the size of the card but 2098102272 bytes used. Obviously there's an overflow going on with the card size.

Is there a way to detect this overflow and get the real size of the card?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏大泽ㄣ 2024-07-16 13:22:17

没有什么好的方法可以做到这一点。 VFSVolumeSize API 仅使用 32 位值,因此无法正确报告大于 4GB 的大小。 有一些扩展管理器 API 可以告诉您有关卡插槽的信息,但它们都没有谈论卡的块大小或块数量。

如果您进入设备上的“卡信息”应用程序,您会看到同样的失败 - 它还会错误地指示卡的大小。

There's no great way to do this. The VFSVolumeSize API only uses 32-bit values, so it can't correctly report a size greater than 4GB. There are expansion manager APIs that can tell you about the card slot, but none of them talk about block size or number of blocks for the card.

You'll see the same failure if you go into the Card Info app on the device — it will also improperly indicate the card's size.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文