KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Properties | List of all members
KSP.IO.BinaryWriter Class Reference

Identical to System.IO.BinaryWriter, but with added IDisposable methods (for use in using structures), and a factory method instead of constructors. More...

Inheritance diagram for KSP.IO.BinaryWriter:

Public Member Functions

void Close ()
 
void Dispose ()
 
void Flush ()
 
long Seek (int offset, SeekOrigin origin)
 
void Write (bool value)
 
void Write (byte value)
 
void Write (byte[] buffer)
 
void Write (char ch)
 
void Write (char[] chars)
 
void Write (decimal value)
 
void Write (double value)
 
void Write (float value)
 
void Write (int value)
 
void Write (long value)
 
void Write (sbyte value)
 
void Write (short value)
 
void Write (string value)
 
void Write (uint value)
 
void Write (ulong value)
 
void Write (ushort value)
 
void Write (byte[] buffer, int index, int count)
 
void Write (char[] chars, int index, int count)
 

Static Public Member Functions

static BinaryWriter CreateForType< T > (string filename, Vessel flight=null)
 Create a binary file writer. More...
 

Properties

Stream BaseStream [get]
 

Detailed Description

Identical to System.IO.BinaryWriter, but with added IDisposable methods (for use in using structures), and a factory method instead of constructors.

Member Function Documentation

void KSP.IO.BinaryWriter.Close ( )
static BinaryWriter KSP.IO.BinaryWriter.CreateForType< T > ( string  filename,
Vessel  flight = null 
)
static

Create a binary file writer.

Template Parameters
T
Parameters
filename
flight
Returns
void KSP.IO.BinaryWriter.Dispose ( )
void KSP.IO.BinaryWriter.Flush ( )
long KSP.IO.BinaryWriter.Seek ( int  offset,
SeekOrigin  origin 
)
void KSP.IO.BinaryWriter.Write ( bool  value)
void KSP.IO.BinaryWriter.Write ( byte  value)
void KSP.IO.BinaryWriter.Write ( byte[]  buffer)
void KSP.IO.BinaryWriter.Write ( char  ch)
void KSP.IO.BinaryWriter.Write ( char[]  chars)
void KSP.IO.BinaryWriter.Write ( decimal  value)
void KSP.IO.BinaryWriter.Write ( double  value)
void KSP.IO.BinaryWriter.Write ( float  value)
void KSP.IO.BinaryWriter.Write ( int  value)
void KSP.IO.BinaryWriter.Write ( long  value)
void KSP.IO.BinaryWriter.Write ( sbyte  value)
void KSP.IO.BinaryWriter.Write ( short  value)
void KSP.IO.BinaryWriter.Write ( string  value)
void KSP.IO.BinaryWriter.Write ( uint  value)
void KSP.IO.BinaryWriter.Write ( ulong  value)
void KSP.IO.BinaryWriter.Write ( ushort  value)
void KSP.IO.BinaryWriter.Write ( byte[]  buffer,
int  index,
int  count 
)
void KSP.IO.BinaryWriter.Write ( char[]  chars,
int  index,
int  count 
)

Property Documentation

Stream KSP.IO.BinaryWriter.BaseStream
get

The documentation for this class was generated from the following file: