Esempio n. 1
0
 public static byte[] CompressStringBuffers(Compression.CNameStringValue[] apStrings, Encoding aEncoding)
 {
     return(Compression.CompressStringBuffers(apStrings, aEncoding, null));
 }
Esempio n. 2
0
 public static Compression.CNameBufferValue[] DecompressBinaryBuffers(byte[] aInputZipBuffer)
 {
     return(Compression.ReadZipStreamToBuffer(new MemoryStream(aInputZipBuffer)));
 }
Esempio n. 3
0
 public static void WriteByteBufferToFile(string aFileName, byte[] aBuffer)
 {
     Compression.WriteByteBufferToFile(aFileName, aBuffer, Encoding.Default);
 }
Esempio n. 4
0
 public static void WriteStringToFile(string aFileName, string aBuffer)
 {
     Compression.WriteStringToFile(aFileName, aBuffer, Encoding.Default);
 }
Esempio n. 5
0
 public static byte[] CompressString(string aStr, Encoding aEncoding)
 {
     return(Compression.CompressStringArray(new string[] { aStr }, aEncoding));
 }
Esempio n. 6
0
 public static byte[] CompressStringArray(string[] asArray, Encoding aEncoding)
 {
     return(Compression.CompressStringArray(asArray, aEncoding, null));
 }
Esempio n. 7
0
 public static void SaveZipStreamFromBuffer(Stream aOutputStream, Compression.CNameBufferValue[] apFileBuffers)
 {
     Compression.SaveZipStreamFromBuffer(aOutputStream, apFileBuffers, null);
 }
Esempio n. 8
0
 public static byte[] CompressString(string str, Encoding encoding, string password)
 {
     return(Compression.CompressStringArray(new string[] { str }, encoding, password));
 }
Esempio n. 9
0
 public static void CompressFile(string sZipFileName, string sFileNameBuffer)
 {
     Compression.CompressFileList(sZipFileName, new string[] { sFileNameBuffer });
 }
Esempio n. 10
0
 public static void SaveZipFileFromBuffer(string sFileName, Compression.CNameBufferValue[] apFileBuffers)
 {
     Compression.SaveZipStreamFromBuffer(File.Create(sFileName), apFileBuffers);
 }
Esempio n. 11
0
 public static Compression.CNameBufferValue[] ReadZipFileToBuffer(string sFileName)
 {
     return(Compression.ReadZipStreamToBuffer(File.OpenRead(sFileName)));
 }
Esempio n. 12
0
 public static string ReadFileToString(string aFileName)
 {
     return(Compression.ReadFileToString(aFileName, Encoding.Default));
 }
Esempio n. 13
0
 public static byte[] CompressBinaryBuffers(Compression.CNameBufferValue[] apFileBuffers)
 {
     return(Compression.CompressBinaryBuffers(apFileBuffers, null));
 }
Esempio n. 14
0
 public static string DecompressString(byte[] aInputZipBuffer, Encoding aEncoding)
 {
     return(Compression.DecompressStringArray(aInputZipBuffer, aEncoding)[0]);
 }
Esempio n. 15
0
 public static string DecompressFile(string sZipFileName, string sBufferDir)
 {
     return(Compression.DecompressFileList(sZipFileName, sBufferDir)[0]);
 }