Exemplo n.º 1
0
 /// <summary>
 /// 解压缩字节数组 返回解压缩后的 字节数组
 /// </summary>
 /// <param name="decompressBytes">要解压缩的字节数组</param>
 /// <param name="compresserBytesAndBytes">压缩器 字节数组 压缩 功能 接口</param>
 /// <returns></returns>
 public static byte[] DecompressBytesFromBytes(byte[] decompressBytes, ICompresserBytesAndBytes compresserBytesAndBytes = null)
 {
     return(GenericityHelper.GetInterface(compresserBytesAndBytes, DefaultCompresser).DecompressBytesFromBytes(decompressBytes));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 异步 解压缩字节数组 返回解压缩后的 字节数组
 /// </summary>
 /// <param name="decompressBytes">要解压缩的字节数组</param>
 /// <param name="compresserBytesAndBytes">压缩器 字节数组 压缩 功能 接口</param>
 /// <returns></returns>
 public static async Task <byte[]> DecompressBytesFromBytesAsync(byte[] decompressBytes, ICompresserBytesAndBytes compresserBytesAndBytes = null)
 {
     return(await GenericityHelper.GetInterface(compresserBytesAndBytes, DefaultCompresser).DecompressBytesFromBytesAsync(decompressBytes));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 压缩字节数组 返回压缩后的 字节数组
 /// </summary>
 /// <param name="compressBytes">要压缩的字节数组</param>
 /// <param name="compresserBytesAndBytes">压缩器 字节数组 压缩 功能 接口</param>
 /// <returns></returns>
 public static byte[] CompressBytesToBytes(byte[] compressBytes, ICompresserBytesAndBytes compresserBytesAndBytes = null)
 {
     return(GenericityHelper.GetInterface(compresserBytesAndBytes, DefaultCompresser).CompressBytesToBytes(compressBytes));
 }