Panda3D
identityStream.I
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 identityStream.I
10  * @author drose
11  * @date 2002-10-09
12  */
13 
14 /**
15  *
16  */
17 INLINE IIdentityStream::
18 IIdentityStream() : ISocketStream(&_buf) {
19 }
20 
21 /**
22  *
23  */
24 INLINE IIdentityStream::
25 IIdentityStream(BioStreamPtr *source, HTTPChannel *doc,
26  bool has_content_length, size_t content_length) :
27  ISocketStream(&_buf)
28 {
29  open(source, doc, has_content_length, content_length);
30 }
31 
32 /**
33  *
34  */
35 INLINE IIdentityStream &IIdentityStream::
36 open(BioStreamPtr *source, HTTPChannel *doc,
37  bool has_content_length, size_t content_length) {
38  clear((ios_iostate)0);
39  _buf.open_read(source, doc, has_content_length, content_length);
40  return *this;
41 }