StreamWrapper class
Contents
[
Hide
]StreamWrapper class
Aspose.IO.Stream wrapper for COM interface.
The StreamWrapper type exposes the following members:
Properties
| Property | Description |
|---|---|
stream | Gets a stream. Read-only io.RawIOBase. |
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. |
Methods
| Method | Description |
|---|---|
close(self) | Closes the current stream and releases any resources. |
flush(self) | Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
read(self, 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(self) | 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(self, offset, origin) | Sets the position within the current stream |
write(self, 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(self, value) | Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
See Also
- module
aspose.slides - library
Aspose.Slides