Add some protected interfaces to allow subclass access to the buffer.