Difference between revisions of "API:BinaryWriter"
From Kerbal Space Program Wiki
(Created page with "{{Namespace:KSP.IO}} {{Class |name=BinaryWriter |summary=Identical to System.IO.BinaryWriter, but with added IDisposable methods (for use in using structures), and a factory m...") |
(No difference)
|
Revision as of 23:47, 17 May 2012
KSP.IO Namespace
BinaryReader ·
BinaryWriter ·
File ·
FileInfo ·
FileStream ·
IOException ·
IOTools ·
IOUtils ·
MemoryStream ·
PluginConfigNode ·
PluginConfiguration ·
TextReader ·
TextWriter
BinaryWriter Class
Identical to System.IO.BinaryWriter, but with added IDisposable methods (for use in using structures), and a factory method instead of constructors.
Methods
The following are methods included in BinaryWriter.
Signature | Description |
---|---|
void Close() | ? |
static BinaryWriter CreateForType<T>(string filename, Vessel flight = null) | Factory method for creating a BinaryWriter for the desired filename. |
void Dispose() | Identical to Close() |
void Flush() | ? |
long Seek(int offset, SeekOrigin origin) | ? |
void Write(bool value) | ? |
void Write(byte[] buffer) | ? |
void Write(byte value) | ? |
void Write(char[] chars) | ? |
void Write(char ch) | ? |
void Write(decimal value) | ? |
void Write(double value) | ? |
void Write(short value) | ? |
void Write(int value) | ? |
void Write(long value) | ? |
void Write(sbyte value) | ? |
void Write(float value) | ? |
void Write(string value) | ? |
void Write(ushort value) | ? |
void Write(uint value) | ? |
void Write(ulong value) | ? |
void Write(byte[] buffer, int index, int count) | ? |
void Write(char[] chars, int index, int count) | ? |