Table of Contents

Method GetStream

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

GetStream(long)

Gets a stream with initial capacity not less than specified.

public Stream GetStream(long capacity)

Parameters

capacity long

Minimum initial capacity of the stream.

Returns

Stream

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

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.