mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-31 02:48:31 +00:00
Pl_Buffer starts in a ready state
This commit is contained in:
parent
ee44aef8d0
commit
1a4dcb4aaf
@ -5,7 +5,7 @@
|
||||
|
||||
Pl_Buffer::Pl_Buffer(char const* identifier, Pipeline* next) :
|
||||
Pipeline(identifier, next),
|
||||
ready(false),
|
||||
ready(true),
|
||||
total_size(0)
|
||||
{
|
||||
}
|
||||
|
@ -63,6 +63,10 @@ int main()
|
||||
{
|
||||
throw std::logic_error("hand-created buffer is not as expected");
|
||||
}
|
||||
|
||||
Pl_Buffer bp3("bp3");
|
||||
b = bp3.getBuffer();
|
||||
std::cout << "size: " << b->getSize() << std::endl;
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
@ -8,4 +8,5 @@ data: qwertyuiop
|
||||
Pl_Buffer::getBuffer() called when not ready
|
||||
size: 9
|
||||
data: mooquack
|
||||
size: 0
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user