#include <datagram.h>
Inheritance diagram for Datagram:
Public Member Functions | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Private Member Functions | |
INLINE | Datagram (const void *data, size_t size) |
INLINE | Datagram (const string &data) |
INLINE | Datagram (const Datagram ©) |
INLINE void | operator= (const Datagram ©) |
virtual | ~Datagram () |
virtual void | clear () |
void | dump_hex (ostream &out) const |
INLINE void | add_bool (bool value) |
INLINE void | add_int8 (PN_int8 value) |
INLINE void | add_uint8 (PN_uint8 value) |
INLINE void | add_int16 (PN_int16 value) |
INLINE void | add_int32 (PN_int32 value) |
INLINE void | add_int64 (PN_int64 value) |
INLINE void | add_uint16 (PN_uint16 value) |
INLINE void | add_uint32 (PN_uint32 value) |
INLINE void | add_uint64 (PN_uint64 value) |
INLINE void | add_float32 (float value) |
INLINE void | add_float64 (PN_float64 value) |
INLINE void | add_be_int16 (PN_int16 value) |
INLINE void | add_be_int32 (PN_int32 value) |
INLINE void | add_be_int64 (PN_int64 value) |
INLINE void | add_be_uint16 (PN_uint16 value) |
INLINE void | add_be_uint32 (PN_uint32 value) |
INLINE void | add_be_uint64 (PN_uint64 value) |
INLINE void | add_be_float32 (float value) |
INLINE void | add_be_float64 (PN_float64 value) |
INLINE void | add_string (const string &str) |
INLINE void | add_z_string (string str) |
INLINE void | add_fixed_string (const string &str, size_t size) |
void | pad_bytes (size_t size) |
void | append_data (const void *data, size_t size) |
INLINE void | append_data (const string &data) |
INLINE string | get_message () const |
INLINE const void * | get_data () const |
INLINE size_t | get_length () const |
INLINE bool | operator== (const Datagram &other) const |
INLINE bool | operator!= (const Datagram &other) const |
INLINE bool | operator< (const Datagram &other) const |
Private Attributes | |
PUBLISHED | __pad0__: INLINE Datagram() |
PTA_uchar | _data |
Static Private Attributes | |
TypeHandle | _type_handle |
|
|
|
|
|
|
|
Definition at line 35 of file datagram.cxx. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by DownloadDb::Db::write(), PiecewiseCurve::write_datagram(), ClassicNurbsCurve::write_datagram(), FFTCompressor::write_header(), and FFTCompressor::write_run(). |
|
Referenced by Texture::write_datagram(), PStatCollectorDef::write_datagram(), ComputedVertices::VertexTransform::write_datagram(), and FFTCompressor::write_run(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 129 of file datagram.cxx. References _data, data, PointerToArray< unsigned char >::empty_array(), PointerToArray< unsigned char >::get_ref_count(), NULL, uchar, and PointerToArray< unsigned char >::v(). Referenced by DownloadDb::Db::parse_header(), DownloadDb::Db::parse_record_header(), DownloadDb::read_version_map(), DownloadDb::Db::write(), and DownloadDb::write_version_map(). |
|
Reimplemented in NetDatagram. Definition at line 45 of file datagram.cxx. References _data, and PointerToArray< unsigned char >::clear(). Referenced by NetDatagram::clear(), PStatServerControlMessage::encode(), PStatClientControlMessage::encode(), DownloadDb::Db::parse_header(), DownloadDb::Db::parse_record_header(), DownloadDb::read_version_map(), DownloadDb::Db::write(), DownloadDb::Db::write_bogus_header(), DownloadDb::Db::write_header(), and DownloadDb::write_version_map(). |
|
Definition at line 56 of file datagram.cxx. References get_data(), get_length(), and p. |
|
Implements TypedObject. Reimplemented in NetDatagram. Definition at line 116 of file datagram.h. References TypedObject::get_class_type(), and TypedObject::init_type(). |
|
Reimplemented from TypedObject. Reimplemented in NetDatagram. Definition at line 105 of file datagram.h. Referenced by NetDatagram::force_init_type(), NetDatagram::get_type(), and NetDatagram::init_type(). |
|
|
Referenced by dump_hex(), DatagramIterator::get_z_string(), ConnectionWriter::is_valid_for_udp(), DatagramOutputFile::put_datagram(), ConnectionWriter::send(), and Multifile::Subfile::write_index(). |
|
Referenced by HTTPClient::read(), DownloadDb::Db::write(), DownloadDb::Db::write_bogus_header(), DownloadDb::Db::write_header(), and DownloadDb::write_version_map(). |
|
Implements TypedObject. Reimplemented in NetDatagram. Definition at line 113 of file datagram.h. References TypedObject::get_class_type(). |
|
Reimplemented from TypedObject. Reimplemented in NetDatagram. Definition at line 108 of file datagram.h. References TypedObject::get_class_type(), TypedObject::init_type(), and register_type(). Referenced by ConfigureFn(), NetDatagram::force_init_type(), init_libexpress(), and NetDatagram::init_type(). |
|
|
|
|
|
Reimplemented in NetDatagram. Referenced by NetDatagram::operator=(). |
|
|
|
Definition at line 95 of file datagram.cxx. References _data, PointerToArray< unsigned char >::empty_array(), PointerToArray< unsigned char >::get_ref_count(), NULL, PointerToArray< unsigned char >::push_back(), uchar, and PointerToArray< unsigned char >::v(). |
|
Reimplemented from TypedObject. Reimplemented in NetDatagram. Definition at line 49 of file datagram.h. |
|
Definition at line 101 of file datagram.h. Referenced by append_data(), clear(), and pad_bytes(). |
|
Reimplemented from TypedObject. Reimplemented in NetDatagram. Definition at line 27 of file datagram.cxx. |