API:FileStream

From Kerbal Space Program Wiki
Jump to: navigation, search

KSP.IO Namespace
BinaryReader · BinaryWriter · File · FileInfo · FileStream · IOException · IOTools · IOUtils · MemoryStream · PluginConfigNode · PluginConfiguration · TextReader · TextWriter

FileStream Class

summary goes here

Properties

The following are public properties available in FileStream.

Signature Description
long Length { get; }
bool IsAsync { get; }
bool CanWrite { get; }
bool CanRead { get; }
long Position { get; set; }
string Name { get; }
bool CanSeek { get; }

Methods

The following are methods included in FileStream.

Signature Description
void SetLength(long value)
void WriteByte(byte value)
long Seek(long offset, SeekOrigin origin)
int ReadByte()
void Dispose()
IAsyncResult BeginRead(byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject)
IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject)
void Lock(long position, long length)
void EndWrite(IAsyncResult asyncResult)
void Write(byte[] array, int offset, int count)
void Unlock(long position, long length)
int Read(byte[] array, int offset, int count)
int EndRead(IAsyncResult asyncResult)
void Flush()