aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-28 14:35:17 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-28 14:35:17 -0400
commit89ff1f2af65283158e5ebe69bcc3d652b887ea34 (patch)
treeadfc3677063580b72ccf172f26a3378d91944574 /MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
parentf6acc5fbff081728138564867a58b7848c92c467 (diff)
update components
Diffstat (limited to 'MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs')
-rw-r--r--MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs b/MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
deleted file mode 100644
index cc3bf0788..000000000
--- a/MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System.IO;
-using MediaBrowser.Common.IO;
-using MediaBrowser.Model.IO;
-using Microsoft.IO;
-
-namespace MediaBrowser.Common.Implementations.IO
-{
- public class RecyclableMemoryStreamProvider : IMemoryStreamProvider
- {
- readonly RecyclableMemoryStreamManager _manager = new RecyclableMemoryStreamManager();
-
- public MemoryStream CreateNew()
- {
- return _manager.GetStream();
- }
-
- public MemoryStream CreateNew(int capacity)
- {
- return _manager.GetStream("RecyclableMemoryStream", capacity);
- }
-
- public MemoryStream CreateNew(byte[] buffer)
- {
- return _manager.GetStream("RecyclableMemoryStream", buffer, 0, buffer.Length);
- }
- }
-
- public class MemoryStreamProvider : IMemoryStreamProvider
- {
- public MemoryStream CreateNew()
- {
- return new MemoryStream();
- }
-
- public MemoryStream CreateNew(int capacity)
- {
- return new MemoryStream(capacity);
- }
-
- public MemoryStream CreateNew(byte[] buffer)
- {
- return new MemoryStream(buffer);
- }
- }
-}