- Initial commit
This commit is contained in:
25
Runtime/3rdParty/BouncyCastle/util/io/compression/Bzip2.cs
vendored
Normal file
25
Runtime/3rdParty/BouncyCastle/util/io/compression/Bzip2.cs
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System.IO;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Compression
|
||||
{
|
||||
using Impl = Utilities.Bzip2;
|
||||
|
||||
internal static class Bzip2
|
||||
{
|
||||
internal static Stream CompressOutput(Stream stream, bool leaveOpen = false)
|
||||
{
|
||||
return leaveOpen
|
||||
? new Impl.CBZip2OutputStreamLeaveOpen(stream)
|
||||
: new Impl.CBZip2OutputStream(stream);
|
||||
}
|
||||
|
||||
internal static Stream DecompressInput(Stream stream)
|
||||
{
|
||||
return new Impl.CBZip2InputStream(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user