Difference between revisions of "API:FileStream"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (N3X15 moved page FileStream to API:FileStream)
Line 1: Line 1:
<!-- Autogenerated by WRAPTOOL.  Yell at N3X15 if it breaks. -->
+
<!-- Autogenerated by DOCTOOL.  Yell at N3X15 if it breaks. -->
 
{{Namespace:KSP.IO}}
 
{{Namespace:KSP.IO}}
 
{{Class
 
{{Class
Line 10: Line 10:
 
|returndesc=
 
|returndesc=
 
|name=SetLength
 
|name=SetLength
|args=long value
+
|args={{arg|long|value}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 17: Line 17:
 
|returndesc=
 
|returndesc=
 
|name=WriteByte
 
|name=WriteByte
|args=byte value
+
|args={{arg|byte|value}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 24: Line 24:
 
|returndesc=
 
|returndesc=
 
|name=Seek
 
|name=Seek
|args=long offset, SeekOrigin origin
+
|args={{arg|long|offset}}, {{arg|SeekOrigin|origin}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 45: Line 45:
 
|returndesc=
 
|returndesc=
 
|name=BeginRead
 
|name=BeginRead
|args=byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject
+
|args={{arg|byte|array|array=[]}}, {{arg|int|offset}}, {{arg|int|numBytes}}, {{arg|AsyncCallback|userCallback}}, {{arg|object|stateObject}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 52: Line 52:
 
|returndesc=
 
|returndesc=
 
|name=BeginWrite
 
|name=BeginWrite
|args=byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject
+
|args={{arg|byte|array|array=[]}}, {{arg|int|offset}}, {{arg|int|numBytes}}, {{arg|AsyncCallback|userCallback}}, {{arg|object|stateObject}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 59: Line 59:
 
|returndesc=
 
|returndesc=
 
|name=Lock
 
|name=Lock
|args=long position, long length
+
|args={{arg|long|position}}, {{arg|long|length}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 66: Line 66:
 
|returndesc=
 
|returndesc=
 
|name=EndWrite
 
|name=EndWrite
|args=IAsyncResult asyncResult
+
|args={{arg|IAsyncResult|asyncResult}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 73: Line 73:
 
|returndesc=
 
|returndesc=
 
|name=Write
 
|name=Write
|args=byte[] array, int offset, int count
+
|args={{arg|byte|array|array=[]}}, {{arg|int|offset}}, {{arg|int|count}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 80: Line 80:
 
|returndesc=
 
|returndesc=
 
|name=Unlock
 
|name=Unlock
|args=long position, long length
+
|args={{arg|long|position}}, {{arg|long|length}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 87: Line 87:
 
|returndesc=
 
|returndesc=
 
|name=Read
 
|name=Read
|args=byte[] array, int offset, int count
+
|args={{arg|byte|array|array=[]}}, {{arg|int|offset}}, {{arg|int|count}}
 
|desc=
 
|desc=
 
}}
 
}}
Line 94: Line 94:
 
|returndesc=
 
|returndesc=
 
|name=EndRead
 
|name=EndRead
|args=IAsyncResult asyncResult
+
|args={{arg|IAsyncResult|asyncResult}}
 
|desc=
 
|desc=
 
}}
 
}}

Revision as of 21:38, 12 October 2012

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

FileStream Class

summary goes here

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