SRGraphDynamicData::CheckInPointer

BOOL SRGraphDynamicData::CheckInPointer(void)

Compares the input pointer to the current buffer size. Action is take if the input pointer is greater than the buffer size.\\n If the buffer is cyclic, the input pointer is wrapped to the buffer size. Otherwise, the buffer is expanded if growth is allowed (SetGrowSize). If the buffer is not cyclic and m_nGrowSize is 0, an error message is displayed and FALSE is returned indicating that the input pointer should not be used.

Defined in: SRGDat.cpp

Return Value

FALSE if input pointer is not valid, otherwise TRUE.

Developer Notes

SetGrowSize() must be called to allow the buffer to grow beyond its initial allocation.

See also...

SetGrowSize, SetBufferSize