aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-28 15:57:49 -0400
committerGitHub <noreply@github.com>2016-10-28 15:57:49 -0400
commit6367da37a6375a13536704c42642a2dac7be9bc8 (patch)
treed969c40cff45ae90e76392526a43f16b661eab09 /MediaBrowser.Common.Implementations/IO/MemoryStreamProvider.cs
parent791d0f75b95ad9e2800f1b0f43fb33d052b18479 (diff)
parent9c6da95d6a5dce333fb66a58d73f7655f3a4d6ce (diff)
Merge pull request #2257 from MediaBrowser/dev
Dev
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);
- }
- }
-}