StreamWrapper
Contents
[
Hide
]
StreamWrapper class
Aspose.IO.Stream wrapper for COM interface.
The StreamWrapper type exposes the following members:
Properties
Name | Description |
---|---|
stream | Gets a stream. Read-only stream. |
can_read | Gets a value indicating whether the current stream supports reading. Read-only bool. |
can_seek | Gets a value indicating whether the current stream supports seeking. Read-only bool. |
can_write | Gets a value indicating whether the current stream supports writing. Read-only bool. |
length | Gets the length in bytes of the stream. Read-only int. |
position | Gets or sets the position within the current stream. Read-only int. |
as_i_disposable | Allows to get base IDisposable interface. Read-only disposable. |
Methods
Name | Description |
---|---|
close() | Closes the current stream and releases any resources. |
flush() | Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
read(buffer, offset, count) | Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
read_byte() | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. |
seek(offset, origin) | Sets the position within the current stream |
write(buffer, offset, count) | writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
write_byte(value) | Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
See Also
- namespace aspose.slides
- assembly Aspose.Slides