private void writeIntToStream(KSP.IO.FileStream stream, Int32 val) { stream.Write(KLFCommon.intToBytes(val), 0, 4); }