NSKeyedArchiver 内部格式

发布于 2024-08-15 02:07:07 字数 139 浏览 6 评论 0原文

您好,我需要将 NSKeyedArchiver 类加载到 C++/CLI 对应项。有没有办法获取 NSKeyedArchiver 的内部格式?
另一种选择是将整个保存和打开代码重写为适用于 Mac 和 Windows 的纯 C++。

多谢。

Hello I need to load NSKeyedArchiver classes to C++/CLI counterparts. Is there any way to get internal format of NSKeyedArchiver?
Another option is to rewrite whole saving and opening code into pure C++ for both Mac and Windows.

Thanks a lot.

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

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

发布评论

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

评论(2

身边 2024-08-22 02:07:07

所以你的限制似乎是:

  1. 在 Windows 和 Mac 上都易于解析的东西。
  2. 3D 建模数据,因此格式需要高效

如果您想要快速而肮脏的东西,请使用二进制 plist(可能还需要 gzip)。您还可以尝试 Google 的协议缓冲区,但我对此没有经验。还有一些 Foundation 的开源实现 - Cocotron 可能对您最有用。

So your constraints seem to be:

  1. Something easy to parse on both Windows and Mac.
  2. 3D modeling data, so the format needs to be efficient

If you want something quick and dirty, go with a binary plist (and possibly gzip it). You could also try Google's protocol buffers but I have no experience with that. There are also a couple open source implementations of Foundation out there -- Cocotron might be most useful for you.

奈何桥上唱咆哮 2024-08-22 02:07:07

如果您不序列化任何特定于 Objective-C 的内容,那么只需使用 XML 属性列表。

If you're not serializing anything Objective-C specific then just use XML property lists.

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