MCPcopy Create free account
hub / github.com/cinder/Cinder / seekAbsolute

Method seekAbsolute

src/cinder/Stream.cpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void IStreamFile::seekAbsolute( off_t absoluteOffset )
217{
218 int dir = ( absoluteOffset >= 0 ) ? SEEK_SET : SEEK_END;
219 absoluteOffset = std::abs( absoluteOffset );
220 if( fseek( mFile, static_cast<long>( absoluteOffset ), dir ) )
221 throw StreamExc();
222 mBufferOffset = absoluteOffset;
223}
224
225void IStreamFile::seekRelative( off_t relativeOffset )
226{

Callers 7

SeekMethod · 0.45
seekFnMethod · 0.45
seekMethod · 0.45
seekMethod · 0.45
determineFileTypeFunction · 0.45
FileLoaderMethod · 0.45
finishMethod · 0.45

Calls 1

absFunction · 0.85

Tested by

no test coverage detected