Lines Matching refs:reader
469 sp<ProtoReader> reader = mBuffer->read(); in flush() local
470 while (reader->readBuffer() != NULL) { in flush()
471 if (!android::base::WriteFully(fd, reader->readBuffer(), reader->currentToRead())) { in flush()
474 reader->move(reader->currentToRead()); in flush()
485 sp<ProtoReader> reader = mBuffer->read(); in serializeToString() local
486 out->reserve(reader->size()); in serializeToString()
487 while (reader->hasNext()) { in serializeToString()
488 out->append(static_cast<const char*>(static_cast<const void*>(reader->readBuffer())), in serializeToString()
489 reader->currentToRead()); in serializeToString()
490 reader->move(reader->currentToRead()); in serializeToString()
501 sp<ProtoReader> reader = mBuffer->read(); in serializeToVector() local
502 out->reserve(reader->size()); in serializeToVector()
503 while (reader->hasNext()) { in serializeToVector()
504 const uint8_t* buf = reader->readBuffer(); in serializeToVector()
505 size_t size = reader->currentToRead(); in serializeToVector()
507 reader->move(size); in serializeToVector()