Write a value to a stream in CompactSize encoding.

Synopsis

Declared in <serialize.h>

template<typename Stream>
void
WriteCompactSize(
    Stream& os,
    uint64_t nSize);

Parameters

Name

Description

os

The output stream.

nSize

The value to encode as a CompactSize.

Created with MrDocs