Add memory read/write functions to the prototol classes.