Debian Codegraph @

mednafen/MemoryStream.h

raw symbols SCIP
1 /* Mednafen - Multi-system Emulator
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17
18 // TODO/WIP
19
20 #ifndef _MEMORY_STREAM_H
21 #define _MEMORY_STREAM_Hcxx . . $ `mednafen/MemoryStream.h:21:9`!
22
23 #include "Stream.h"cxx . . $ `<file>/mednafen/Stream.h`/
24
25 class MemoryStreamcxx . . $ MemoryStream# : public Streamcxx . . $ Stream#
26 {
27 public:
28
29 MemoryStreamcxx . . $ MemoryStream#MemoryStream(49f6e7a06ebc5aa8).();
30 MemoryStreamcxx . . $ MemoryStream#MemoryStream(2c44cd906ae4e829).(uint64cxx . . $ uint64# size_hint);
31 MemoryStreamcxx . . $ MemoryStream#MemoryStream(6b6a019ff8e61ec0).(Streamcxx . . $ Stream# *stream); // Will create a MemoryStream equivalent of the contents of "stream", and then "delete stream".
32 // Will only work if stream->tell() == 0, or if "stream" is seekable.
33 // stream will be deleted even if this constructor throws.
34
35 MemoryStreamcxx . . $ MemoryStream#MemoryStream(49c4ec8e03c7c495).(const MemoryStreamcxx . . $ MemoryStream# &zs);
36 MemoryStreamcxx . . $ MemoryStream# & operatorcxx . . $ MemoryStream#`operator=`(d79af8258f46ae9d).=(const MemoryStreamcxx . . $ MemoryStream# &zs);
37
38 virtual ~cxx . . $ MemoryStream#`~MemoryStream`(ced63f7c635d850d).MemoryStreamcxx . . $ MemoryStream#();
39
40 virtual uint64cxx . . $ uint64# attributescxx . . $ MemoryStream#attributes(f708dce9a8856c70).(void);
41
42 virtual uint8cxx . . $ uint8# *mapcxx . . $ MemoryStream#map(37d8967d10cb1e7b).(void);
43 virtual void unmapcxx . . $ MemoryStream#unmap(49f6e7a06ebc5aa8).(void);
44
45 virtual uint64cxx . . $ uint64# readcxx . . $ MemoryStream#read(a1f03d5c460544d4).(void *data, uint64cxx . . $ uint64# count, bool error_on_eos = true);
46 virtual void writecxx . . $ MemoryStream#write(8c7266571c1d65cc).(const void *data, uint64cxx . . $ uint64# count);
47 virtual void seekcxx . . $ MemoryStream#seek(3b75d2d14f60ac6a).(int64cxx . . $ int64# offset, int whence);
48 virtual int64cxx . . $ int64# tellcxx . . $ MemoryStream#tell(da6335ded91d79c2).(void);
49 virtual int64cxx . . $ int64# sizecxx . . $ MemoryStream#size(da6335ded91d79c2).(void);
50 virtual void closecxx . . $ MemoryStream#close(49f6e7a06ebc5aa8).(void);
51
52 virtual int get_linecxx . . $ MemoryStream#get_line(9b8588921b9c6c2f).(stdcxx . . $ std/::stringcxx . . $ std/string# &str);
53
54 private:
55 uint8cxx . . $ uint8# *data_buffercxx . . $ MemoryStream#data_buffer.;
56 uint64cxx . . $ uint64# data_buffer_sizecxx . . $ MemoryStream#data_buffer_size.;
57 uint64cxx . . $ uint64# data_buffer_allocedcxx . . $ MemoryStream#data_buffer_alloced.;
58
59 int64cxx . . $ int64# positioncxx . . $ MemoryStream#position.;
60
61 void grow_if_necessarycxx . . $ MemoryStream#grow_if_necessary(2c44cd906ae4e829).(uint64cxx . . $ uint64# new_required_size);
62 };
63
64 #endif