1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxMemoryInputStream
}}\label{wxmeminputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxInputStream
}{wxinputstream
}
10 \wxheading{Include files
}
16 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
20 You can create a similar stream by this way:
23 wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read);
24 wxInputStream *input = new wxInputStream(sb);
26 sb->SetBufferIO(data, data
\_end);
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxMemoryInputStream::wxMemoryInputStream
}
36 \func{}{wxMemoryInputStream
}{\param{const char *
}{ data
},
\param{size
\_t}{ len
}}
38 Initializes a new read-only memory stream which will use the specified buffer
39 \it{data
} of length
\it{len
}.
41 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}
43 \func{}{\destruct{wxFileInputStream
}}{\void}
47 % -----------------------------------------------------------------------------
48 % wxMemoryOutputStream
49 % -----------------------------------------------------------------------------
50 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
52 \wxheading{Derived from
}
54 \helpref{wxOutputStream
}{wxoutputstream
}
56 \wxheading{Include files
}
62 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
66 You can create a similar stream by this way:
69 wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::write);
70 wxOutputStream *input = new wxOutputStream(sb);
73 sb->SetBufferIO(data, data
\_end);
78 This way is also useful to create read/write memory stream:
81 wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read
\_write);
82 wxOutputStream *output = new wxOutputStream(sb);
83 wxInputStream *input = new wxInputStream(sb);
86 sb->SetBufferIO(data, data
\_end);
94 \latexignore{\rtfignore{\wxheading{Members
}}}
96 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}
98 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
100 If
\it{data
} is NULL, then it will initialize a new empty buffer which will
105 If the buffer is created, it will be destroyed at the destruction of the
108 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}
110 \func{}{\destruct{wxMemoryOutputStream
}}{\void}