Refactor some std code that works with pointer offstes
#100823
Merged
std code that works with pointer offstes
#100823