mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-16 00:42:21 +00:00
Update lastOffset when reading
This commit is contained in:
parent
478c05fcab
commit
7393a03868
|
@ -51,7 +51,9 @@ OffsetInputSource::rewind()
|
||||||
size_t
|
size_t
|
||||||
OffsetInputSource::read(char* buffer, size_t length)
|
OffsetInputSource::read(char* buffer, size_t length)
|
||||||
{
|
{
|
||||||
return this->proxied->read(buffer, length);
|
size_t result = this->proxied->read(buffer, length);
|
||||||
|
this->setLastOffset(this->proxied->getLastOffset() - global_offset);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user