foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
helpers
stream_buffer_helper.h
Go to the documentation of this file.
1
class
stream_reader_buffered
:
public
stream_reader
2
{
3
public
:
4
stream_reader_buffered
(
stream_reader
* p_base,
t_size
p_buffer);
5
t_size
read
(
void
* p_buffer,
t_size
p_bytes,
abort_callback
& p_abort);
6
private
:
7
stream_reader
*
m_base
;
8
pfc::array_t<char>
m_buffer
;
9
const
char
*
m_bufferPtr
;
10
size_t
m_bufferRemaining
;
11
};
12
13
class
stream_writer_buffered
:
public
stream_writer
14
{
15
public
:
16
stream_writer_buffered
(
stream_writer
* p_base,
t_size
p_buffer);
17
18
void
write
(
const
void
* p_buffer,
t_size
p_bytes,
abort_callback
& p_abort);
19
20
void
flush(
abort_callback
& p_abort);
21
22
private
:
23
stream_writer
*
m_base
;
24
pfc::array_t<char>
m_buffer
;
25
t_size
m_buffer_ptr
;
26
};
27
stream_reader_buffered
Definition:
stream_buffer_helper.h:1
pfc::array_t< char >
stream_writer_buffered::m_buffer
pfc::array_t< char > m_buffer
Definition:
stream_buffer_helper.h:24
stream_reader_buffered::m_base
stream_reader * m_base
Definition:
stream_buffer_helper.h:7
stream_reader_buffered::m_bufferRemaining
size_t m_bufferRemaining
Definition:
stream_buffer_helper.h:10
stream_writer_buffered::m_buffer_ptr
t_size m_buffer_ptr
Definition:
stream_buffer_helper.h:25
stream_reader
stream_reader_buffered::read
t_size read(void *p_buffer, t_size p_bytes, abort_callback &p_abort)
Definition:
stream_buffer_helper.cpp:9
stream_reader_buffered::m_buffer
pfc::array_t< char > m_buffer
Definition:
stream_buffer_helper.h:8
stream_writer
t_size
size_t t_size
Definition:
int_types.h:48
text_file_loader::write
void write(const service_ptr_t< file > &p_file, abort_callback &p_abort, const char *p_string, bool is_utf8)
Definition:
text_file_loader.cpp:9
abort_callback
stream_writer_buffered
Definition:
stream_buffer_helper.h:13
stream_reader_buffered::stream_reader_buffered
stream_reader_buffered(stream_reader *p_base, t_size p_buffer)
Definition:
stream_buffer_helper.cpp:3
stream_reader_buffered::m_bufferPtr
const char * m_bufferPtr
Definition:
stream_buffer_helper.h:9
stream_writer_buffered::m_base
stream_writer * m_base
Definition:
stream_buffer_helper.h:23
Generated by
1.8.11