Interface IStream
Provides the functionality for the streams.
Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public interface IStream
Properties
CanRead
Gets the ability of reading the data in stream.
Declaration
bool CanRead { get; }
Property Value
Type |
---|
System.Boolean |
CanSeek
Gets the ability of seeking the data in stream.
Declaration
bool CanSeek { get; }
Property Value
Type |
---|
System.Boolean |
CanWrite
Gets the ability of writing the data in stream.
Declaration
bool CanWrite { get; }
Property Value
Type |
---|
System.Boolean |
Length
Gets the length of the stream.
Declaration
long Length { get; }
Property Value
Type |
---|
System.Int64 |
Position
Gets the current position in the stream.
Declaration
long Position { get; set; }
Property Value
Type |
---|
System.Int64 |
Methods
Close()
Helps to close the stream.
Declaration
void Close()
Flush()
Flushed internal buffers.
Declaration
void Flush()
Read(Byte[], Int32, Int32)
Reads the specified count of bytes from the stream.
Declaration
int Read(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Buffer for reading. |
System.Int32 | offset | Offset in buffer. |
System.Int32 | count | Count of bytes to read to the buffer. |
Returns
Type | Description |
---|---|
System.Int32 | Count of bytes, really read. |
ReadByte()
Reads single byte data in the stream.
Declaration
int ReadByte()
Returns
Type | Description |
---|---|
System.Int32 | Byte read. |
Seek(Int64, SeekOrigin)
Sets the current position in stream to specified value.
Declaration
long Seek(long offset, SeekOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offset | Needed value. |
System.IO.SeekOrigin | origin | Origin of the value. |
Returns
Type | Description |
---|---|
System.Int64 | Position in stream, really set. |
SetLength(Int64)
Sets the new length of the stream.
Declaration
void SetLength(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | New length. |
Write(Byte[], Int32, Int32)
Writes the specified count of bytes from the buffer to stream.
Declaration
void Write(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Buffer with data. |
System.Int32 | offset | Offset in buffer. |
System.Int32 | count | Count of bytes to write to the stream. |
WriteByte(Byte)
Writes byte to stream.
Declaration
void WriteByte(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | Data to be written. |