Home
last modified time | relevance | path

Searched refs:tpbuf (Results 1 – 2 of 2) sorted by relevance

/system/core/fastboot/
Dfastboot_driver.cpp260 std::vector<char> tpbuf; in Download() member
267 return data->self->SparseWriteCallback(data->tpbuf, cbuf, len); in Download()
276 if (cb_priv.tpbuf.size() && (ret = SendBuffer(cb_priv.tpbuf))) { in Download()
538 int FastBootDriver::SparseWriteCallback(std::vector<char>& tpbuf, const char* data, size_t len) { in SparseWriteCallback() argument
540 size_t to_write = std::min(TRANSPORT_CHUNK_SIZE - tpbuf.size(), len); in SparseWriteCallback()
543 tpbuf.insert(tpbuf.end(), data, data + to_write); in SparseWriteCallback()
544 if (tpbuf.size() < TRANSPORT_CHUNK_SIZE) { // Nothing enough to send rn in SparseWriteCallback()
548 if (SendBuffer(tpbuf)) { in SparseWriteCallback()
552 tpbuf.clear(); in SparseWriteCallback()
565 tpbuf.assign(data + total, data + len); in SparseWriteCallback()
Dfastboot_driver.h156 int SparseWriteCallback(std::vector<char>& tpbuf, const char* data, size_t len);