void resetInput(PtrIStream& stream)
{
    // return stream to beginning to prepare reading with a different API
    stream.seekg(0);
}
void resetInput(PtrIStream& stream)
{
     
    stream.seekg(0);
}