原始文献 / 论坛帖 / Re: Reading/Writing Blocks and FLATDATA
Re: Reading/Writing Blocks and FLATDATA
Bitcointalk · 2010-07-24 04:04:20 UTC
AuthorSatoshi Nakamoto
TitleRe: Reading/Writing Blocks and FLATDATA
Date2010-07-24 04:04:20 UTC
ForumBitcointalk · 原文
FLATDATA 是个变通办法,用来序列化定长数组。本来有个更干净的办法让它直接理解怎么序列化数组,但 MSVC6 做不到,而当时我想保持和 MSVC6 的兼容。我们已经不支持 MSVC6 了,因为我们用了 Boost 里的某个东西。我们在 0.2.0 之后就失去了对它的支持。也许哪天我会换成那个干净的办法,直接知道怎么序列化定长数组,不用再包一层 FLATDATA。
英文原文
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.
