IFileStream Interface
Namespace: GHIElectronics.TinyCLR.IO · Assembly: GHIElectronics.TinyCLR.IO
No description available.
public interface IFileStream
Properties
CanWrite
bool CanWrite { get; }
Gets a value indicating whether the current stream supports writing. (inherited)
CanRead
bool CanRead { get; }
Gets a value indicating whether the current stream supports reading. (inherited)
CanSeek
bool CanSeek { get; }
Gets a value indicating whether the current stream supports seeking. (inherited)
Length
long Length { get; set; }
Gets length of bytes in the stream. (inherited)
Methods
Read(byte[] buffer, int offset, int count, TimeSpan timeout)
int Read(byte[] buffer, int offset, int count, TimeSpan timeout)
Captures a slice of inter-edge intervals after waiting for waitForState. (inherited)
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | |
offset | int | |
count | int | |
timeout | TimeSpan |
Returns int
Write(byte[] buffer, int offset, int count, TimeSpan timeout)
int Write(byte[] buffer, int offset, int count, TimeSpan timeout)
Writes length bytes; optional trailing break of breakDuration. (inherited)
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | |
offset | int | |
count | int | |
timeout | TimeSpan |
Returns int
Seek(long offset, SeekOrigin origin)
long Seek(long offset, SeekOrigin origin)
Sets the current position of this stream to a given value. (inherited)
| Parameter | Type | Description |
|---|---|---|
offset | long | The offset of the positon relative to the origin. |
origin | SeekOrigin | Specified the beginning, end or current postion as a reference point to apply the offset. |
Returns long — The new postion in the stream.
Flush()
void Flush()
Writes unwritten data to the file. (inherited)
Close()
void Close()
When overridden by a descendant class, closes the response stream. (inherited)