Implement currentOffset().