thirdparty/protozero/include/protozero/pbf_writer.hpp
pbf_writer(pbf_writer& parent_writer, pbf_tag_type tag, std::size_t size=0) :
        m_data(parent_writer.m_data),
        m_parent_writer(&parent_writer),
        m_pos(0) {
        m_parent_writer->open_submessage(tag, size);
    }
/**
     * Construct a pbf_writer for a submessage from the pbf_writer of the
     * parent message.
     *
     * @param parent_writer The pbf_writer
     * @param tag Tag (field number) of the field that will be written
     * @param size Optional size of the submessage in bytes (use 0 for unknown).
     *        Setting this allows some optimizations but is only possible in
     *        a few very specific cases.
     */
Construct a pbf_writer for a submessage from the pbf_writer of the
parent message.

@param parent_writer The pbf_writer
@param tag Tag (field number) of the field that will be written
@param size Optional size of the submessage in bytes (use 0 for unknown).
Setting this allows some optimizations but is only possible in
a few very specific cases.
Construct a pbf_writer for a submessage from the pbf_writer of the parent message . @param parent_writer The pbf_writer @param tag Tag ( field number ) of the field that will be written @param size Optional size of the submessage in bytes ( use 0 for unknown ) . Setting this allows some optimizations but is only possible in a few very specific cases .
pbf_writer(pbf_writer& parent_writer, pbf_tag_type tag, std::size_t size=0) :
        m_data(parent_writer.m_data),
        m_parent_writer(&parent_writer),
        m_pos(0) {
        m_parent_writer->open_submessage(tag, size);
    }
pbf_writer ( pbf_writer & parent_writer , pbf_tag_type tag , std :: size_t size = 0 ) : m_data ( parent_writer . m_data ) , m_parent_writer ( & parent_writer ) , m_pos ( 0 ) { m_parent_writer -> open_submessage ( tag , size ) ; }
Construct a pbf_writer for a submessage from the pbf_writer of the
 parent message.
Construct a pbf_writer for a submessage from the pbf_writer of the parent message .