Panda3D
 All Classes Functions Variables Enumerations
buffer.h
1 // Filename: buffer.h
2 // Created by: mike (09Jan97)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef BUFFER_H
16 #define BUFFER_H
17 
18 #include "pandabase.h"
19 #include "typedef.h"
20 #include "referenceCount.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : Buffer
24 // Description :
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_PANDAEXPRESS Buffer : public ReferenceCount {
27 public:
28  Buffer(int size);
29  ~Buffer();
30 
31 PUBLISHED:
32  INLINE int get_length() const;
33 
34 #ifndef CPPPARSER
35 // hidden from interrogate
36 public:
37  char *_buffer;
38 #endif
39 
40 private:
41  int _length;
42 };
43 
44 #include "buffer.I"
45 
46 #endif
Definition: buffer.h:26
A base class for all things that want to be reference-counted.