Lines Matching refs:mDataPos
348 return (mDataSize > mDataPos ? mDataSize : mDataPos); in dataSize()
364 return mDataPos; in dataPosition()
397 mDataPos = pos; in setDataPosition()
437 int startPos = mDataPos; in appendFrom()
478 memcpy(mData + mDataPos, data + offset, len); in appendFrom()
479 mDataPos += len; in appendFrom()
623 mDataPos += len; in finishWrite()
624 ALOGV("finishWrite Setting data pos of %p to %zu", this, mDataPos); in finishWrite()
625 if (mDataPos > mDataSize) { in finishWrite()
626 mDataSize = mDataPos; in finishWrite()
641 size_t end = mDataPos + len; in writeUnpadded()
642 if (end < mDataPos) { in writeUnpadded()
649 memcpy(mData+mDataPos, data, len); in writeUnpadded()
685 if (mDataPos+padded < mDataPos) { in writeInplace()
689 if ((mDataPos+padded) <= mDataCapacity) { in writeInplace()
692 uint8_t* const data = mData+mDataPos; in writeInplace()
1011 const bool enoughData = (mDataPos+sizeof(val)) <= mDataCapacity; in writeObject()
1015 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val; in writeObject()
1028 mObjects[mObjectsSize] = mDataPos; in writeObject()
1070 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in read()
1072 memcpy(outData, mData+mDataPos, len); in read()
1073 mDataPos += pad_size(len); in read()
1074 ALOGV("read Setting data pos of %p to %zu", this, mDataPos); in read()
1088 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in readInplace()
1090 const void* data = mData+mDataPos; in readInplace()
1091 mDataPos += pad_size(len); in readInplace()
1092 ALOGV("readInplace Setting data pos of %p to %zu", this, mDataPos); in readInplace()
1102 if ((mDataPos+sizeof(T)) <= mDataSize) { in readAligned()
1103 const void* data = mData+mDataPos; in readAligned()
1104 mDataPos += sizeof(T); in readAligned()
1126 if ((mDataPos+sizeof(val)) <= mDataCapacity) { in writeAligned()
1128 *reinterpret_cast<T*>(mData+mDataPos) = val; in writeAligned()
1258 const size_t avail = mDataSize-mDataPos; in readCString()
1260 const char* str = reinterpret_cast<const char*>(mData+mDataPos); in readCString()
1265 mDataPos += pad_size(len+1); in readCString()
1266 ALOGV("readCString Setting data pos of %p to %zu", this, mDataPos); in readCString()
1451 const size_t DPOS = mDataPos; in readObject()
1455 mDataPos = DPOS + sizeof(flat_binder_object); in readObject()
1460 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
1487 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
1500 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
1534 return (mDataSize > mDataPos ? mDataSize : mDataPos); in ipcDataSize()
1556 mDataPos = 0; in ipcSetDataReference()
1557 ALOGV("setDataReference Setting data pos of %p to %zu", this, mDataPos); in ipcSetDataReference()
1702 mDataSize = mDataPos = 0; in restartWrite()
1704 ALOGV("restartWrite Setting data pos of %p to %zu", this, mDataPos); in restartWrite()
1840 if (mDataPos > desired) { in continueWrite()
1841 mDataPos = desired; in continueWrite()
1842 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos); in continueWrite()
1866 mDataSize = mDataPos = 0; in continueWrite()
1868 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos); in continueWrite()
1882 mDataPos = 0; in initState()
1884 ALOGV("initState Setting data pos of %p to %zu", this, mDataPos); in initState()