Difference between revisions of "API:IOUtils"
From Kerbal Space Program Wiki
(Created page with "{{Namespace:KSP.IO}} {{Class |name=IOUtils |summary=Various internal tools. }} {{MethodsStart}} {{StaticMethod |returntype=string |returndesc= |name=GetFilePathFor |args=Type ...") |
|||
Line 1: | Line 1: | ||
+ | <!-- Autogenerated by WRAPTOOL. Yell at N3X15 if it breaks. --> | ||
{{Namespace:KSP.IO}} | {{Namespace:KSP.IO}} | ||
{{Class | {{Class | ||
|name=IOUtils | |name=IOUtils | ||
− | |summary= | + | |summary=summary goes here |
}} | }} | ||
{{MethodsStart}} | {{MethodsStart}} | ||
+ | {{StaticMethod | ||
+ | |returntype=object | ||
+ | |returndesc= | ||
+ | |name=DeserializeFromBinary | ||
+ | |args=byte[] input | ||
+ | |desc=Deserialize a binary serialized object | ||
+ | }} | ||
+ | {{StaticMethod | ||
+ | |returntype=byte[] | ||
+ | |returndesc= | ||
+ | |name=SerializeToBinary | ||
+ | |args=object something | ||
+ | |desc=Serialize an object (same as using a BinaryFormatter). | ||
+ | }} | ||
{{StaticMethod | {{StaticMethod | ||
|returntype=string | |returntype=string | ||
|returndesc= | |returndesc= | ||
|name=GetFilePathFor | |name=GetFilePathFor | ||
− | |args=Type T, string | + | |args=Type T, string file, Vessel flight = null |
− | |desc= | + | |desc=Return the full path for a given filename, provided a class from the plugin. PluginData/[.flights/FLIGHT_UUID/]assemblyname/file |
}} | }} | ||
{{MethodsEnd}} | {{MethodsEnd}} |
Revision as of 06:24, 23 August 2012
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 |