Gets a stream with initial capacity not less than specified.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public Stream GetStream(
	long capacity
)
VB
Public Function GetStream ( 
	capacity As Long
) As Stream

Parameters

capacity
Type: System.Int64
Minimum initial capacity of the stream.

Return Value

Type: Stream
Returns a stream with initial capacity not less than specified by the capacity.

Implements

IPdfStreamProvider.GetStream(Int64)

Remarks

Caller of the method is responsible for disposing of the returned stream.

The returned stream keep its contents in memory for as long as its length is less than the memory limit of this provider. If the stream length is about to surpass the memory limit the stream will switch to using disk storage instead.

See Also