Lines Matching refs:position
183 // Seeks the stream to the given position. If the seek operation fails,
193 // Returns: the new position
196 StreamBuffer::Seek(off_t position, uint32 seekMode)
198 // just seek in the current buffer if the new position is in it
201 && (fPos + position < fLen)
202 && (fPos + position >= 0)) {
203 fPos += position;
206 && (fLen + position < fBufferSize)
207 && (fLen + position >= 0)) {
208 fLen += position;
222 return fStream->Seek(position, seekMode);
229 // Returns the current position in the stream.
238 // Returns: the position
243 off_t position = fStream->Position();
245 position -= fPos;
247 position += fLen;
248 return position;