public static byte[] CompressStringBuffers(Compression.CNameStringValue[] apStrings, Encoding aEncoding) { return(Compression.CompressStringBuffers(apStrings, aEncoding, null)); }
public static Compression.CNameBufferValue[] DecompressBinaryBuffers(byte[] aInputZipBuffer) { return(Compression.ReadZipStreamToBuffer(new MemoryStream(aInputZipBuffer))); }
public static void WriteByteBufferToFile(string aFileName, byte[] aBuffer) { Compression.WriteByteBufferToFile(aFileName, aBuffer, Encoding.Default); }
public static void WriteStringToFile(string aFileName, string aBuffer) { Compression.WriteStringToFile(aFileName, aBuffer, Encoding.Default); }
public static byte[] CompressString(string aStr, Encoding aEncoding) { return(Compression.CompressStringArray(new string[] { aStr }, aEncoding)); }
public static byte[] CompressStringArray(string[] asArray, Encoding aEncoding) { return(Compression.CompressStringArray(asArray, aEncoding, null)); }
public static void SaveZipStreamFromBuffer(Stream aOutputStream, Compression.CNameBufferValue[] apFileBuffers) { Compression.SaveZipStreamFromBuffer(aOutputStream, apFileBuffers, null); }
public static byte[] CompressString(string str, Encoding encoding, string password) { return(Compression.CompressStringArray(new string[] { str }, encoding, password)); }
public static void CompressFile(string sZipFileName, string sFileNameBuffer) { Compression.CompressFileList(sZipFileName, new string[] { sFileNameBuffer }); }
public static void SaveZipFileFromBuffer(string sFileName, Compression.CNameBufferValue[] apFileBuffers) { Compression.SaveZipStreamFromBuffer(File.Create(sFileName), apFileBuffers); }
public static Compression.CNameBufferValue[] ReadZipFileToBuffer(string sFileName) { return(Compression.ReadZipStreamToBuffer(File.OpenRead(sFileName))); }
public static string ReadFileToString(string aFileName) { return(Compression.ReadFileToString(aFileName, Encoding.Default)); }
public static byte[] CompressBinaryBuffers(Compression.CNameBufferValue[] apFileBuffers) { return(Compression.CompressBinaryBuffers(apFileBuffers, null)); }
public static string DecompressString(byte[] aInputZipBuffer, Encoding aEncoding) { return(Compression.DecompressStringArray(aInputZipBuffer, aEncoding)[0]); }
public static string DecompressFile(string sZipFileName, string sBufferDir) { return(Compression.DecompressFileList(sZipFileName, sBufferDir)[0]); }