Skip to main content

MemoryStreamFactory

Assembly: ServiceStack.Text.dll​
View Source​
Declaration
public static class MemoryStreamFactory

Properties​

UseRecyclableMemoryStream​

View Source​
Declaration
public static bool UseRecyclableMemoryStream { get; set; }

Fields​

RecyclableInstance​

View Source​
Declaration
public static RecyclableMemoryStreamManager RecyclableInstance

Methods​

GetStream()​

View Source​
Declaration
public static MemoryStream GetStream()
Returns​

System.IO.MemoryStream

GetStream(Int32)​

View Source​
Declaration
public static MemoryStream GetStream(int capacity)
Returns​

System.IO.MemoryStream

Parameters​
TypeName
System.Int32capacity

GetStream(Byte[])​

View Source​
Declaration
public static MemoryStream GetStream(byte[] bytes)
Returns​

System.IO.MemoryStream

Parameters​
TypeName
System.Byte[]bytes

GetStream(Byte[], Int32, Int32)​

View Source​
Declaration
public static MemoryStream GetStream(byte[] bytes, int index, int count)
Returns​

System.IO.MemoryStream

Parameters​
TypeName
System.Byte[]bytes
System.Int32index
System.Int32count