Lines Matching refs:snapshot
109 std::unique_ptr<Snapshot> snapshot(new Snapshot(availToRead)); in getSnapshot() local
110 memcpy(snapshot->mData, (const char *) mFifo->buffer() + iovec[0].mOffset, iovec[0].mLength); in getSnapshot()
112 memcpy(snapshot->mData + (iovec[0].mLength), in getSnapshot()
122 const uint8_t *back = snapshot->mData + availToRead; in getSnapshot()
123 const uint8_t *front = snapshot->mData; in getSnapshot()
129 snapshot->mEnd = snapshot->mBegin = EntryIterator(front); in getSnapshot()
132 snapshot->mEnd = EntryIterator(lastEnd).next(); in getSnapshot()
135 const uint8_t *firstStartTmp = snapshot->mEnd; in getSnapshot()
142 snapshot->mBegin = snapshot->mEnd; in getSnapshot()
144 snapshot->mBegin = EntryIterator(firstStart); in getSnapshot()
150 mFifoReader->release(snapshot->mEnd - front); in getSnapshot()
153 snapshot->mLost = lost; in getSnapshot()
154 return snapshot; in getSnapshot()
226 std::unique_ptr<Snapshot> snapshot = getSnapshot(false /*flush*/); in dump() local
227 if (snapshot == nullptr) { in dump()
234 for (EntryIterator it = snapshot->begin(); it != snapshot->end(); ++it) { in dump()