IBStream state size

Hi,

Is it possible to find the size of an IBStream? I want to look for certain values within the state that is given in the controller::setComponentState() method. But i need to be able to iterate through the state and stop iterating when it’s at the end of the bytestream.

FStreamSizeHolder class seams to be the solution.