MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / writeString

Method writeString

BambooTracker/io/binary_container.cpp:189–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void BinaryContainer::writeString(size_type offset, const std::string& str)
190{
191 if (buf_.size() <= offset || buf_.size() < offset + str.length())
192 throw std::out_of_range("Invalid buffer range in binary container");
193
194 std::copy(str.cbegin(), str.cend(), buf_.begin() + static_cast<int>(offset));
195}
196
197int8_t BinaryContainer::readInt8(size_type offset) const
198{

Callers 1

WavContainerMethod · 0.80

Calls 4

sizeMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected