jellyfin/MediaBrowser.Model/IO/IMemoryStreamFactory.cs

13 lines
305 B
C#
Raw Normal View History

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