MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / flush

Method flush

src/streams.h:704–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702 ~BufferedWriter() { flush(); }
703
704 void flush()
705 {
706 if (m_buf_pos) m_dst.write_buffer(std::span{m_buf}.first(m_buf_pos));
707 m_buf_pos = 0;
708 }
709
710 void write(std::span<const std::byte> src)
711 {

Callers

nothing calls this directly

Calls 1

write_bufferMethod · 0.80

Tested by

no test coverage detected