MetaInfo#

class MetaInfo(*args, **kwargs)#

The MetaInfo provides information about a specific metadata structure.

Methods#

class MetaInfo
is_custom() bool#

Added in version 1.20.

register() MetaInfo#

Registers a new meta.

Use the structure returned by new(), it consumes it and the structure shouldnt be used after. The one returned by the function can be kept.

Added in version 1.24.

Fields#

class MetaInfo
api#

Tag identifying the metadata structure and api

clear_func#

Function for clearing the metadata, or None if not supported by this meta. This is called by the buffer pool when a buffer is returned for pooled metas.

Added in version 1.24.

deserialize_func#

Function for deserializing the metadata, or None if not supported by this meta.

Added in version 1.24.

free_func#

Function for freeing the metadata

init_func#

Function for initializing the metadata

serialize_func#

Function for serializing the metadata, or None if not supported by this meta.

Added in version 1.24.

size#

Size of the metadata

transform_func#

Function for transforming the metadata

type#

Type identifying the implementor of the api