Implement read_offset
and write_offset
#35704
Merged
read_offset
and write_offset
#35704