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

Create streams in sandboxed environment More...

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

Create streams in sandboxed environment

Member Function Documentation

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

Deserialize a binary serialized object

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

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

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

Parameters
TA type from the calling plugin
fileThe desired filename (path information will be stripped)
flightThe flight associated with this file
Returns

< Add filename

static byte [] KSP.IO.IOUtils.SerializeToBinary ( object  something)
inlinestatic

Serialize an object (same as using a BinaryFormatter).

Parameters
something
Returns

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