MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getPosition

Method getPosition

Engine/source/core/stream/fileStream.cpp:68–75  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

66
67//-----------------------------------------------------------------------------
68U32 FileStream::getPosition() const
69{
70 AssertFatal(0 != mStreamCaps, "FileStream::getPosition: the stream isn't open");
71 //AssertFatal(true == hasCapability(StreamPosition), "FileStream::getPosition(): lacks positioning capability");
72
73 // return the position inside the buffer if its valid, otherwise return the underlying file position
74 return((BUFFER_INVALID != mBuffHead) ? mBuffPos : mFile->getPosition());
75}
76
77//-----------------------------------------------------------------------------
78bool FileStream::setPosition(const U32 i_newPosition)

Callers 4

flushMethod · 0.45
_readMethod · 0.45
_writeMethod · 0.45
fillBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected