Changeset View
Changeset View
Standalone View
Standalone View
b/lang/cpp/src/data.cpp
Context not available. | |||||
if (e) { | if (e) { | ||||
d->data = 0; | d->data = 0; | ||||
} | } | ||||
if (dp->isSupported(DataProvider::Seek)) { | |||||
off_t size = seek(0, SEEK_END); | |||||
seek(0, SEEK_SET); | |||||
gpgme_data_set_file_size(d->data, static_cast<unsigned long long>(size)); | |||||
} | |||||
#ifndef NDEBUG | #ifndef NDEBUG | ||||
//std::cerr << "GpgME::Data(): DataProvider supports: " | //std::cerr << "GpgME::Data(): DataProvider supports: " | ||||
// << ( d->cbs.read ? "read" : "no read" ) << ", " | // << ( d->cbs.read ? "read" : "no read" ) << ", " | ||||
Context not available. |