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
Type | Name |
---|---|
System.Int32 | capacity |
GetStream(Byte[])
View Source
Declaration
public static MemoryStream GetStream(byte[] bytes)
Returns
System.IO.MemoryStream
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
System.Byte[] | bytes |
System.Int32 | index |
System.Int32 | count |