Difference between revisions of "API:FileStream"

From Kerbal Space Program Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
|summary=summary goes here
 
|summary=summary goes here
 
}}
 
}}
 +
{{PropertiesStart}}
 +
{{Property
 +
|type=long
 +
|name=Length
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=bool
 +
|name=IsAsync
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=bool
 +
|name=CanWrite
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=bool
 +
|name=CanRead
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=long
 +
|name=Position
 +
|desc=
 +
|hasget=1
 +
|hasset=1
 +
}}
 +
{{Property
 +
|type=string
 +
|name=Name
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=bool
 +
|name=CanSeek
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{PropertiesEnd}}
 
{{MethodsStart}}
 
{{MethodsStart}}
 
{{Method
 
{{Method

Latest revision as of 23:45, 12 October 2012

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()