ZVISION: More complete engine implementation

Is it? I thought that these two should be equivalent:
while (!stream->eos())
and
while (stream->pos() < stream->size())

if pos() >= size(), then the eos flag should be set