reset_buffer


Description:

[ NoWrapper ]
public virtual void reset_buffer (Buffer buffer)

Reset the buffer to its state when it was freshly allocated.

The default implementation will clear the flags, timestamps and will remove the metadata without the POOLED flag (even the metadata with LOCKED). If the TAG_MEMORY was set, this function can also try to restore the memory and clear the TAG_MEMORY again.

Parameters:

this

the BufferPool

buffer

the Buffer to reset