Lines Matching refs:mWriteCursor
74 mLastSegmentNum(-1), mWriteCursor(0), mSegmentEnd(0), mLogicalLength(0)
157 mWriteCursor = 0;
161 ("nsStorageStream [%x] Close mWriteCursor=%x mSegmentEnd=%x\n",
162 this, mWriteCursor, mSegmentEnd));
184 ("nsStorageStream [%x] Write mWriteCursor=%x mSegmentEnd=%x aCount=%d\n",
185 this, mWriteCursor, mSegmentEnd, aCount));
190 availableInSegment = mSegmentEnd - mWriteCursor;
192 mWriteCursor = mSegmentedBuffer->AppendNewSegment();
193 if (!mWriteCursor) {
199 mSegmentEnd = mWriteCursor + mSegmentSize;
200 availableInSegment = mSegmentEnd - mWriteCursor;
202 ("nsStorageStream [%x] Write (new seg) mWriteCursor=%x mSegmentEnd=%x\n",
203 this, mWriteCursor, mSegmentEnd));
207 memcpy(mWriteCursor, readCursor, count);
210 mWriteCursor += count;
212 ("nsStorageStream [%x] Writing mWriteCursor=%x mSegmentEnd=%x count=%d\n",
213 this, mWriteCursor, mSegmentEnd, count));
221 ("nsStorageStream [%x] Wrote mWriteCursor=%x mSegmentEnd=%x numWritten=%d\n",
222 this, mWriteCursor, mSegmentEnd, *aNumWritten));
304 mWriteCursor = 0;
307 ("nsStorageStream [%x] Seek mWriteCursor=%x mSegmentEnd=%x\n",
308 this, mWriteCursor, mSegmentEnd));
313 mWriteCursor = mSegmentedBuffer->GetSegment(mLastSegmentNum);
314 NS_ASSERTION(mWriteCursor, "null mWriteCursor");
315 mSegmentEnd = mWriteCursor + mSegmentSize;
317 mWriteCursor += segmentOffset;
320 ("nsStorageStream [%x] Seek mWriteCursor=%x mSegmentEnd=%x\n",
321 this, mWriteCursor, mSegmentEnd));