2016-10-06 18:55:01 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
2016-10-23 19:14:57 +00:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|