[mlpl][SmartBuffer] Add a const qulifier so that it can be called from a const object.