API:IOUtils

From Kerbal Space Program Wiki
Revision as of 06:24, 23 August 2012 by N3X15 (talk | contribs)
Jump to: navigation, search

KSP.IO Namespace
BinaryReader · BinaryWriter · File · FileInfo · FileStream · IOException · IOTools · IOUtils · MemoryStream · PluginConfigNode · PluginConfiguration · TextReader · TextWriter

IOUtils Class

summary goes here

Methods

The following are methods included in IOUtils.

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