Home
last modified time | relevance | path

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

/hardware/google/gfxstream/host/
DReadBuffer.cpp31 m_validData = 0; in ReadBuffer()
45 assert(minSize > m_validData); in getData()
47 const size_t minSizeToRead = minSize - m_validData; in getData()
53 const size_t freeTailSize = m_buf + m_size - (m_readPtr + m_validData); in getData()
60 memmove(m_buf, m_readPtr, m_validData); in getData()
66 size_t new_size = std::max(2 * minSizeToRead + m_validData, 2 * m_size); in getData()
77 memcpy(new_buf, m_readPtr, m_validData); in getData()
84 maxSizeToRead = m_size - m_validData; in getData()
91 const size_t readNow = stream->read(m_readPtr + m_validData, in getData()
102 m_validData += readNow; in getData()
[all …]
DReadBuffer.h30 size_t validData() const { return m_validData; } // return the amount of valid data in readptr in validData()
41 size_t m_validData; variable