Skip to main content

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)

ParameterTypeDescription
bufferbyte[]
offsetint
countint
timeoutTimeSpan

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)

ParameterTypeDescription
bufferbyte[]
offsetint
countint
timeoutTimeSpan

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)

ParameterTypeDescription
offsetlongThe offset of the positon relative to the origin.
originSeekOriginSpecified 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)