MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / populate

Method populate

src/basicio.cpp:612–617  ·  view source on GitHub ↗

@brief Populate the block. @param source The data populate to the block @param num The size of data

Source from the content-addressed store, hash-verified

610 //! @param source The data populate to the block
611 //! @param num The size of data
612 void populate(const byte* source, size_t num) {
613 size_ = num;
614 data_ = new byte[size_];
615 type_ = bMemory;
616 std::memcpy(data_, source, size_);
617 }
618
619 /*!
620 @brief Change the status to bKnow. bKnow blocks do not contain the data,

Callers 2

populateBlocksMethod · 0.80
openMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected