Interface IDataProvider
An interface to allow PSPDFKit to read from any source.
Namespace: PSPDFKit.Providers
Assembly: PSPDFKit.dll
Syntax
public interface IDataProvider
Methods
GetSize()
Get the length of the data provider.
Declaration
long GetSize()
Returns
Type | Description |
---|---|
System.Int64 | A long representing the size of the data provider. |
GetUid()
Get a UID to a allow for uniquely identifiable data provider.
Declaration
string GetUid()
Returns
Type | Description |
---|---|
System.String | A string to use as a UID. |
Read(Int64, Int64)
Reads bytes from the source.
Declaration
IEnumerable<byte> Read(long size, long offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | size | The size of data to read. |
System.Int64 | offset | The offset from which to read from. |
Returns
Type | Description |
---|---|
IEnumerable<System.Byte> | A core vector of data. |