Interface IDataSink

Represents a destination data sink for writing to.

Namespace: PSPDFKitFoundation.Data
Assembly: PSPDFKitFoundation.dll
Syntax
public interface IDataSink

Properties

DataSinkOption

The DataSinkOption the data sink was constructed with.

Declaration
DataSinkOption DataSinkOption { get; }
Property Value
Type Description
DataSinkOption

Methods

Finish()

All writing operations are complete. This can be useful for situations such as encrypting the output.

Declaration
bool Finish()
Returns
Type Description
System.Boolean

True if successful.

WriteDataAsync(IBuffer)

Data to be written or appended to the data sink.

Declaration
IAsyncOperation<bool> WriteDataAsync(IBuffer data)
Parameters
Type Name Description
Windows.Storage.Streams.IBuffer data

The Windows.Storage.Streams.IBuffer of data to be written.

Returns
Type Description
Windows.Foundation.IAsyncOperation<System.Boolean>

True if successful.