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

Method setPosition

Engine/source/core/resizeStream.cpp:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool ResizeFilterStream::setPosition(const U32 in_newPosition)
101{
102 AssertFatal(m_pStream != NULL, "Error, stream not attached");
103 if (m_pStream == NULL)
104 return false;
105
106 if (in_newPosition < m_streamLen) {
107 m_currOffset = in_newPosition;
108 return true;
109 } else {
110 m_currOffset = m_streamLen;
111 return false;
112 }
113}
114
115U32 ResizeFilterStream::getStreamSize()
116{

Callers 1

_readMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected