public static LargeObject ToLargeObject(this object obj, int level = 10) { var lg = new LargeObject(obj, level); return(lg); }
public static LargeObject <TEncoder> ToLargeObject <TEncoder>(this object obj, int level = 10) where TEncoder : ICompress, new() { var lg = new LargeObject <TEncoder>(obj, level); return(lg); }
public static T LoadFromLargeObject <T, TEncoder>(this LargeObject <TEncoder> lg) where TEncoder : ICompress, new() { return(lg.Convert <T>()); }