Panda3D
Loading...
Searching...
No Matches
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 */
19swap_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 */
27INLINE const vector_uchar &StringStreamBuf::
28get_data() const {
29 return _data;
30}
const vector_uchar & get_data() const
Returns a reference to the contents of the internal buffer, without any of the iostream buffer.
void swap_data(vector_uchar &data)
Swaps the indicated buffer for the contents of the internal buffer.