[#BitsToBytes] = BitsToBytes :mrdocs: Pack a vector of bits into bytes, eight bits per byte, least significant bit first. == Synopsis Declared in `<merkleblock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<unsigned char> BitsToBytes(std::vector<bool> const& bits); ---- == Return Value The packed bytes; the final byte is zero‐padded when the bit count is not a multiple of eight. == Parameters [cols="1,4"] |=== | Name| Description | *bits* | The bit sequence to pack. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#