00001 // Filename: buffer.h 00002 // Created by: mike (09Jan97) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef BUFFER_H 00016 #define BUFFER_H 00017 00018 #include "pandabase.h" 00019 #include "typedef.h" 00020 #include "referenceCount.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : Buffer 00024 // Description : 00025 //////////////////////////////////////////////////////////////////// 00026 class EXPCL_PANDAEXPRESS Buffer : public ReferenceCount { 00027 public: 00028 Buffer(int size); 00029 ~Buffer(); 00030 00031 PUBLISHED: 00032 INLINE int get_length() const; 00033 00034 #ifndef CPPPARSER 00035 // hidden from interrogate 00036 public: 00037 char *_buffer; 00038 #endif 00039 00040 private: 00041 int _length; 00042 }; 00043 00044 #include "buffer.I" 00045 00046 #endif