PIChunkStream::extract changed to PIBinaryStream
This commit is contained in:
@@ -183,17 +183,6 @@ void PIChunkStream::readAll() {
|
||||
PIChunkStream::~PIChunkStream() {}
|
||||
|
||||
|
||||
bool PIChunkStream::extract(PIByteArray & data, bool read_all) {
|
||||
if (data.size_s() < 4) return false;
|
||||
data >> tmp_data;
|
||||
if (tmp_data.size_s() < 4) return false;
|
||||
data_ = &tmp_data;
|
||||
_init();
|
||||
if (read_all) readAll();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void PIChunkStream::_init() {
|
||||
first_byte_taken = false;
|
||||
last_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user