Lines Matching refs:position
49 status_t FlushBefore(off_t position, BPositionIO* buffer, const void* oldBuffer, in FlushBefore() argument
53 off_t relative = _PositionToRelative(position); in FlushBefore()
71 status_t EvaluatePosition(off_t position, off_t totalSize) in EvaluatePosition() argument
73 if (position < 0) in EvaluatePosition()
76 if (position < fStartOffset) in EvaluatePosition()
79 if (totalSize > 0 && position > totalSize) { in EvaluatePosition()
92 status_t WaitForData(off_t position, off_t size) in WaitForData() argument
101 while (bufferSize < position + size) { in WaitForData()
118 virtual ssize_t ReadAt(off_t position, void* buffer, in ReadAt() argument
124 _PositionToRelative(position), buffer, size); in ReadAt()
128 virtual ssize_t WriteAt(off_t position, in WriteAt() argument
134 _PositionToRelative(position), buffer, size); in WriteAt()
137 virtual off_t Seek(off_t position, uint32 seekMode) in Seek() argument
142 return fBuffer->Seek(_PositionToRelative(position), seekMode); in Seek()
143 return fBuffer->Seek(position, seekMode); in Seek()
214 off_t _PositionToRelative(off_t position) const in _PositionToRelative()
216 return position - fStartOffset; in _PositionToRelative()
219 off_t _RelativeToPosition(off_t position) const in _RelativeToPosition()
221 return position + fStartOffset; in _RelativeToPosition()
276 BAdapterIO::ReadAt(off_t position, void* buffer, size_t size) in ReadAt() argument
280 status_t ret = _EvaluateWait(position, size); in ReadAt()
284 return fBuffer->ReadAt(position, buffer, size); in ReadAt()
289 BAdapterIO::WriteAt(off_t position, const void* buffer, size_t size) in WriteAt() argument
293 return fBuffer->WriteAt(position, buffer, size); in WriteAt()
298 BAdapterIO::Seek(off_t position, uint32 seekMode) in Seek() argument
306 absolutePosition = Position()+position; in Seek()
311 absolutePosition = size-position; in Seek()
331 return fBuffer->Seek(position, seekMode); in Seek()
413 BAdapterIO::FlushBefore(off_t position) in FlushBefore() argument
417 fBuffer->FlushBefore(position, buffer, oldBuffer->Buffer(), oldBuffer->BufferLength()); in FlushBefore()
434 BAdapterIO::SeekRequested(off_t position) in SeekRequested() argument