Panda3D
panda
src
downloader
stringStreamBuf.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 stringStreamBuf.I
10
* @author drose
11
* @date 2007-07-03
12
*/
13
14
/**
15
* Swaps the indicated buffer for the contents of the internal buffer. Does
16
* not affect the ppos or gpos, or the iostream buffer.
17
*/
18
INLINE
void
StringStreamBuf::
19
swap_data
(vector_uchar &data) {
20
_data.swap(data);
21
}
22
23
/**
24
* Returns a reference to the contents of the internal buffer, without any of
25
* the iostream buffer.
26
*/
27
INLINE
const
vector_uchar &
StringStreamBuf::
28
get_data
()
const
{
29
return
_data;
30
}
StringStreamBuf::get_data
const vector_uchar & get_data() const
Returns a reference to the contents of the internal buffer, without any of the iostream buffer.
Definition:
stringStreamBuf.I:28
StringStreamBuf::swap_data
void swap_data(vector_uchar &data)
Swaps the indicated buffer for the contents of the internal buffer.
Definition:
stringStreamBuf.I:19
Generated on Wed Jan 23 2019 21:39:56 for Panda3D by
1.8.15