Made certain small functions in PtrState inlined.