Skip to content

回复:自动备份 wallet.dat ​

原始发布页

打开来源页面
查看 1 个交叉存档

如果把它读入内存再写出,在内存紧张的情况下可能会失败。

我在找类似 copyfile(const char* from, const char* to) 或 copyfile(path from, path to) 的东西,最好是 Boost 中已有的,如果它提供这种功能的话。如果你能替我找到,我就更有可能着手实现它。

引用 nelisky 于 2010 年 8 月 26 日 01:21:57 AM 的发言

至于文件复制,为什么要增加对 boost 的依赖?至少我很希望能有一个依赖极少的核心库。

我们在 JSON 以及替代 wxWidgets 依赖的十来处功能中都需要 Boost。Boost 是优秀、可移植的东西,我们不应该回避它。

英文原文 ​

展开英文原文

If you read it into memory and write it out, it could fail in tight memory situations.

I'm looking for something like copyfile(const char* from, const char* to) or copyfile(path from, path to), preferably something in Boost if it has it. If you find it for me, it's more likely I'll get to implementing it.

Quote from: nelisky on August 26, 2010, 01:21:57 AM

As for the file copy, why add to the boost dependency? I for one would love to get a core lib with very little deps.

We require Boost for JSON and a dozen things replacing dependencies on wxWidgets. Boost is good, portable stuff, we should not shy away from it.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。