/// <summary> /// Loads a U8 file. /// </summary> /// <param name="u8File"></param> /// <returns></returns> public static U8 Load(Stream u8File) { U8 u = new U8(); u.parseU8(u8File); return(u); }
/// <summary> /// Loads a U8 file. /// </summary> /// <param name="u8File"></param> /// <returns></returns> public static U8 Load(byte[] u8File) { U8 u = new U8(); MemoryStream ms = new MemoryStream(u8File); try { u.parseU8(ms); } catch { ms.Dispose(); throw; } ms.Dispose(); return(u); }
/// <summary> /// Loads a U8 file. /// </summary> /// <param name="u8File"></param> /// <returns></returns> public static U8 Load(Stream u8File) { U8 u = new U8(); u.parseU8(u8File); return u; }
/// <summary> /// Loads a U8 file. /// </summary> /// <param name="u8File"></param> /// <returns></returns> public static U8 Load(byte[] u8File) { U8 u = new U8(); MemoryStream ms = new MemoryStream(u8File); try { u.parseU8(ms); } catch { ms.Dispose(); throw; } ms.Dispose(); return u; }