MCPcopy Create free account
hub / github.com/ElementsProject/elements / write

Method write

src/streams.h:550–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548 }
549
550 void write(Span<const std::byte> src)
551 {
552 if (!file)
553 throw std::ios_base::failure("CAutoFile::write: file handle is nullptr");
554 if (fwrite(src.data(), 1, src.size(), file) != src.size()) {
555 throw std::ios_base::failure("CAutoFile::write: write failed");
556 }
557 }
558
559 template<typename T>
560 CAutoFile& operator<<(const T& obj)

Callers 2

writeMethod · 0.45
SerializeMethod · 0.45

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected