TypedWritableReferenceCount
from panda3d.core import TypedWritableReferenceCount
- class TypedWritableReferenceCount
Bases:
Bases:
TypedWritable
,ReferenceCount
A base class for things which need to inherit from both
TypedWritable
and fromReferenceCount
. It’s convenient to define this intermediate base class instead of multiply inheriting from the two classes each time they are needed, so that we can sensibly pass around pointers to things which are bothTypedWritables
and ReferenceCounters.See also
TypedObject
for detailed instructions.Inheritance diagram
- static decodeFromBamStream(data: bytes, reader: BamReader) TypedWritableReferenceCount
Reads the bytes created by a previous call to
encodeToBamStream()
, and extracts and returns the single object on those bytes. Returns NULL on error.This method is intended to replace
decodeRawFromBamStream()
when you know the stream in question returns an object of typeTypedWritableReferenceCount
, allowing for easier reference count management. Note that the caller is still responsible for maintaining the reference count on the return value.
- static getClassType() TypeHandle