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

Method c_data

src/types.cpp:179–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179const byte* Exiv2::DataBuf::c_data(size_t offset) const {
180 if (pData_.empty() || offset == pData_.size()) {
181 return nullptr;
182 }
183 if (offset > pData_.size()) {
184 throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
185 }
186 return &pData_[offset];
187}
188
189const char* Exiv2::DataBuf::c_str(size_t offset) const {
190 return reinterpret_cast<const char*>(c_data(offset));

Callers 15

mini1Function · 0.80
mainFunction · 0.80
TESTFunction · 0.80
setJpegThumbnailMethod · 0.80
setValueMethod · 0.80
decodeTXTChunkMethod · 0.80
keyTXTChunkMethod · 0.80
parseTXTChunkMethod · 0.80
parseChunkContentMethod · 0.80
computeExifDigestMethod · 0.80
printStructureMethod · 0.80
readMetadataMethod · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by 2

mini1Function · 0.64
TESTFunction · 0.64