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

Has some useful little tools and utilities. More...

Public Member Functions

 IOUtils ()
 

Static Public Member Functions

static object DeserializeFromBinary (byte[] input)
 Deserialize a binary serialized object More...
 
static string GetFilePathFor (Type T, string file, Vessel flight=null)
 Return the full path for a given filename, provided a class from the plugin. More...
 
static byte[] SerializeToBinary (object something)
 Serialize an object (same as using a BinaryFormatter). More...
 

Detailed Description

Has some useful little tools and utilities.

Constructor & Destructor Documentation

KSP.IO.IOUtils.IOUtils ( )

Member Function Documentation

static object KSP.IO.IOUtils.DeserializeFromBinary ( byte[]  input)
static

Deserialize a binary serialized object

Parameters
input
Returns
static string KSP.IO.IOUtils.GetFilePathFor ( Type  T,
string  file,
Vessel  flight = null 
)
static

Return the full path for a given filename, provided a class from the plugin.

PluginData/[.flights/FLIGHT_UUID/]assemblyname/file

Parameters
T
file
flight
Returns
static byte [] KSP.IO.IOUtils.SerializeToBinary ( object  something)
static

Serialize an object (same as using a BinaryFormatter).

Parameters
something
Returns

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