This should only be called by ~ptr or when we are replacing the current
target with something new. It is not suitable for external consumption
Because it doesn't reset length and offset.
Signed-off-by: Sage Weil <sage@inktank.com>
raw *_raw;
unsigned _off, _len;
+ void release();
+
public:
ptr() : _raw(0), _off(0), _len(0) {}
ptr(raw *r);
raw *clone();
void swap(ptr& other);
- void release();
// misc
bool at_buffer_head() const { return _off == 0; }