Lines Matching refs:mReceiveBuffer
68 size_t offset = mReceiveBuffer.size(); in onReadAvailable()
69 mReceiveBuffer.resize(offset + kReceiveSpace); in onReadAvailable()
70 if (mReceiveBuffer.size() > kMaxReceiveBufferSize) { in onReadAvailable()
74 mReceiveBuffer.resize(kReceiveSpace); in onReadAvailable()
78 int status = qemu_pipe_read(mPipeFd, &mReceiveBuffer[offset], kReceiveSpace); in onReadAvailable()
90 mReceiveBuffer.resize(offset + length); in onReadAvailable()
93 auto endline = std::find(mReceiveBuffer.begin(), in onReadAvailable()
94 mReceiveBuffer.end(), in onReadAvailable()
96 if (endline == mReceiveBuffer.end()) { in onReadAvailable()
103 char* args = ::strchr(mReceiveBuffer.data(), ' '); in onReadAvailable()
107 auto command = mCommands.find(mReceiveBuffer.data()); in onReadAvailable()
110 command->second->onCommand(mReceiveBuffer.data(), args); in onReadAvailable()
115 if (endline == mReceiveBuffer.end()) { in onReadAvailable()
116 mReceiveBuffer.clear(); in onReadAvailable()
120 mReceiveBuffer.erase(mReceiveBuffer.begin(), endline + 1); in onReadAvailable()