Bitcointalk · Reading/Writing Blocks and FLATDATA

中本聪,2010 年 7 月 24 日

SN-1623 已核对来源,附原文与上下文。

阅读语言
中文译文

FLATDATA 是序列化定长字段数组的一个权宜办法。本来有一种更干净的方式让它直接懂得如何序列化数组,然而 MSVC6 做不到,而我当时想保持对 MSVC6 的兼容。我们已经不再支持 MSVC6,因为用到的 Boost 里的某个东西不支持它。0.2.0 之后失去了它的支持。兴许哪天我会换成那种干净的方式,不用包一层 FLATDATA 就知道怎么序列化定长数组。

ORIGINAL · 英文原文
FLATDATA was a workaround to serialize a fixed field length array.  There was a cleaner way to make it understand how to serialize arrays directly, but MSVC6 couldn't do it and I wanted to keep compatibility with MSVC6 at that time.  We don't support MSVC6 anymore because we use something in Boost that doesn't.  We lost support for it after 0.2.0.  Maybe someday I'll swap in the clean way that just knows how to serialize fixed length arrays without wrapping them in FLATDATA.
上下文
← 上一条 SN-1623 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1623