17 INLINE DatagramOutputFile::
18 DatagramOutputFile() {
20 _wrote_first_datagram =
false;
28 INLINE DatagramOutputFile::
29 ~DatagramOutputFile() {
45 INLINE std::ostream &DatagramOutputFile::
47 static std::ofstream null_stream;
48 nassertr(_out !=
nullptr, null_stream);
Keeps a reference-counted pointer to a file on disk.
bool open(const FileReference *file)
Opens the indicated filename for writing.
The name of a file, such as a texture file or an Egg file.
void close()
Closes the file.