Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Properties | List of all members
KSP.IO.BinaryReader Class Reference

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

Inheritance diagram for KSP.IO.BinaryReader:

Public Member Functions

void Close ()
 
void Dispose ()
 
int PeekChar ()
 
int Read (byte[] buffer, int index, int count)
 
int Read ()
 
int Read (char[] buffer, int index, int count)
 
bool ReadBoolean ()
 
byte ReadByte ()
 
byte[] ReadBytes (int count)
 
char ReadChar ()
 
char[] ReadChars (int count)
 
decimal ReadDecimal ()
 
double ReadDouble ()
 
short ReadInt16 ()
 
int ReadInt32 ()
 
long ReadInt64 ()
 
sbyte ReadSByte ()
 
float ReadSingle ()
 
string ReadString ()
 
ushort ReadUInt16 ()
 
uint ReadUInt32 ()
 
ulong ReadUInt64 ()
 

Static Public Member Functions

static BinaryReader CreateForType< T > (string filename, Vessel flight=null)
 Create a binary reader with the desired filename. More...
 

Properties

Stream BaseStream [get]
 

Detailed Description

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

Member Function Documentation

void KSP.IO.BinaryReader.Close ( )
inline

static BinaryReader KSP.IO.BinaryReader.CreateForType< T > ( string  filename,
Vessel  flight = null 
)
inlinestatic

Create a binary reader with the desired filename.

Template Parameters
TThe plugin type for which it is being initialized
Parameters
flightOptional flight
Returns
returns a PluginConfiguration object
void KSP.IO.BinaryReader.Dispose ( )
inline
int KSP.IO.BinaryReader.PeekChar ( )
inline

int KSP.IO.BinaryReader.Read ( byte[]  buffer,
int  index,
int  count 
)
inline

int KSP.IO.BinaryReader.Read ( )
inline

int KSP.IO.BinaryReader.Read ( char[]  buffer,
int  index,
int  count 
)
inline

bool KSP.IO.BinaryReader.ReadBoolean ( )
inline

byte KSP.IO.BinaryReader.ReadByte ( )
inline

byte [] KSP.IO.BinaryReader.ReadBytes ( int  count)
inline

char KSP.IO.BinaryReader.ReadChar ( )
inline

char [] KSP.IO.BinaryReader.ReadChars ( int  count)
inline

decimal KSP.IO.BinaryReader.ReadDecimal ( )
inline

double KSP.IO.BinaryReader.ReadDouble ( )
inline

short KSP.IO.BinaryReader.ReadInt16 ( )
inline

int KSP.IO.BinaryReader.ReadInt32 ( )
inline

long KSP.IO.BinaryReader.ReadInt64 ( )
inline

sbyte KSP.IO.BinaryReader.ReadSByte ( )
inline

float KSP.IO.BinaryReader.ReadSingle ( )
inline

string KSP.IO.BinaryReader.ReadString ( )
inline

ushort KSP.IO.BinaryReader.ReadUInt16 ( )
inline

uint KSP.IO.BinaryReader.ReadUInt32 ( )
inline

ulong KSP.IO.BinaryReader.ReadUInt64 ( )
inline

Property Documentation

Stream KSP.IO.BinaryReader.BaseStream
get


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