A few functions don't actually modify the data being pointed to, so these can be made pointer-to-const.