ParentBufferMeta

Added in version 1.6.

class ParentBufferMeta(*args, **kwargs)

The ParentBufferMeta is a Meta which can be attached to a Buffer to hold a reference to another buffer that is only released when the child Buffer is released.

Typically, ParentBufferMeta is used when the child buffer is directly using the Memory of the parent buffer, and wants to prevent the parent buffer from being returned to a buffer pool until the Memory is available for re-use.

Methods

class ParentBufferMeta
get_info() MetaInfo

Gets the global MetaInfo describing the ParentBufferMeta meta.

Added in version 1.6.

Fields

class ParentBufferMeta
buffer

The Buffer on which a reference is being held.

parent

The parent Meta structure