mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
debug output
This commit is contained in:
parent
1bc2910daa
commit
600478aa63
@ -154,3 +154,31 @@ append_data(const void *data, size_t size) {
|
|||||||
_data.v().push_back(source[i]);
|
_data.v().push_back(source[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function : output
|
||||||
|
// Access : Public
|
||||||
|
// Description : Write a string representation of this instance to
|
||||||
|
// <out>.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void Datagram::
|
||||||
|
output(ostream &out) const {
|
||||||
|
#ifndef NDEBUG //[
|
||||||
|
out<<""<<"Datagram";
|
||||||
|
#endif //] NDEBUG
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function : write
|
||||||
|
// Access : Public
|
||||||
|
// Description : Write a string representation of this instance to
|
||||||
|
// <out>.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void Datagram::
|
||||||
|
write(ostream &out, unsigned int indent) const {
|
||||||
|
#ifndef NDEBUG //[
|
||||||
|
out.width(indent);
|
||||||
|
out<<""<<"Datagram:\n";
|
||||||
|
dump_hex(out);
|
||||||
|
#endif //] NDEBUG
|
||||||
|
}
|
||||||
|
@ -98,6 +98,9 @@ PUBLISHED:
|
|||||||
INLINE bool operator != (const Datagram &other) const;
|
INLINE bool operator != (const Datagram &other) const;
|
||||||
INLINE bool operator < (const Datagram &other) const;
|
INLINE bool operator < (const Datagram &other) const;
|
||||||
|
|
||||||
|
void output(ostream &out) const;
|
||||||
|
void write(ostream &out, unsigned int indent=0) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PTA_uchar _data;
|
PTA_uchar _data;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user