jellyfin-server/MediaBrowser.Model/IO/IMemoryStreamFactory.cs

13 lines
305 B
C#
Raw Normal View History

2016-10-06 18:55:01 +00:00
using System.IO;
namespace MediaBrowser.Model.IO
2016-10-06 18:55:01 +00:00
{
2016-11-08 18:44:23 +00:00
public interface IMemoryStreamFactory
2016-10-06 18:55:01 +00:00
{
MemoryStream CreateNew();
MemoryStream CreateNew(int capacity);
MemoryStream CreateNew(byte[] buffer);
2016-11-08 18:44:23 +00:00
bool TryGetBuffer(MemoryStream stream, out byte[] buffer);
2016-10-06 18:55:01 +00:00
}
}