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