Panda3D
Functions
typedWritableReferenceCount.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "typedWritableReferenceCount.h"
#include "dcast.h"

Go to the source code of this file.

Functions

 PT (TypedWritableReferenceCount) TypedWritableReferenceCount
 Reads the bytes created by a previous call to encode_to_bam_stream(), and extracts and returns the single object on those bytes. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
jason
Date
2000-06-08

Definition in file typedWritableReferenceCount.cxx.

Function Documentation

◆ PT()

Reads the bytes created by a previous call to encode_to_bam_stream(), and extracts and returns the single object on those bytes.

Returns NULL on error.

This method is intended to replace decode_raw_from_bam_stream() when you know the stream in question returns an object of type TypedWritableReferenceCount, allowing for easier reference count management. Note that the caller is still responsible for maintaining the reference count on the return value.

Definition at line 39 of file typedWritableReferenceCount.cxx.