Utility to collect data written to an OutputStream in MemoryStreams.
More...
|
|
| ByteBufferOutputStream () |
| | Initializes a new instance of the ByteBufferOutputStream class.
|
| |
| void | Prepend (List< MemoryStream > lists) |
| | Prepends a list of MemoryStream to this stream.
|
| |
| void | Append (List< MemoryStream > lists) |
| | Appends a list of MemoryStream to this stream.
|
| |
|
override void | Write (byte[] b, int off, int len) |
| |
| List< MemoryStream > | GetBufferList () |
| | Returns all data written and resets the stream to be empty.
|
| |
|
override void | Flush () |
| |
|
override int | Read (byte[] buffer, int offset, int count) |
| |
|
override long | Seek (long offset, SeekOrigin origin) |
| |
|
override void | SetLength (long value) |
| |
|
|
const int | BUFFER_SIZE = 8192 |
| | Size of memory stream buffers.
|
| |
|
|
override long | Length [get] |
| |
|
override bool | CanWrite [get] |
| |
|
override bool | CanRead [get] |
| |
|
override bool | CanSeek [get] |
| |
|
override long | Position [get, set] |
| |
Utility to collect data written to an OutputStream in MemoryStreams.
- See also
- ByteBufferInputStream
◆ Append()
| void Avro.IO.ByteBufferOutputStream.Append |
( |
List< MemoryStream > |
lists | ) |
|
|
inline |
Appends a list of MemoryStream to this stream.
- Parameters
-
| lists | Memory streams to append. |
◆ GetBufferList()
| List< MemoryStream > Avro.IO.ByteBufferOutputStream.GetBufferList |
( |
| ) |
|
|
inline |
Returns all data written and resets the stream to be empty.
- Returns
- All memory stream data.
◆ Prepend()
| void Avro.IO.ByteBufferOutputStream.Prepend |
( |
List< MemoryStream > |
lists | ) |
|
|
inline |
Prepends a list of MemoryStream to this stream.
- Parameters
-
| lists | Memory streams to prepend. |
The documentation for this class was generated from the following file:
- src/apache/main/IO/ByteBufferOutputStream.cs