Replace int *eof with uint32_t *data_flags so that we can easily extend functionality if we have to (but we don't do if possible).
Replace int *eof with uint32_t *data_flags so that we can easily extend functionality if we have to (but we don't do if possible).