laanwj
commented at 4:47 PM on December 15, 2016:
member
Analogous to c++11 vector data().
Came up in #9346. Also removes a silly ancient MSVC conditional.
I've also tried to replace some uses, but I'm not 100% sure that I caught all the uses of &CDataStream[0]. As a casual git grep '&[a-zA-Z0-9_]\+\[0\]' shows the pattern is still very common for bare vectors. These uses too should be replaced with data() at some point but not here.
streams: Add data() method to CDataStream
Analogous to c++11 vector data().
af4c44ce59
streams: Remove special cases for ancient MSVC
Quite sure that we haven't supported MSVC 6.0 for ages (MSC_VER 1300 is
>= MSVC++ 7.0) but with the C++11 switch we can be sure.
a2141e415a
dbwrapper: Use new .data() method of CDataStreamadff950fae
bench: Use CDataStream.data()e2300ff65e
wallet: Use CDataStream.data()5113474a91
laanwj added the label Utils and libraries on Dec 15, 2016
paveljanik
commented at 8:54 PM on December 15, 2016:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me