 | GetBlockCallback Delegate |
A function pointer for getting a block of data from specific position.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic delegate bool GetBlockCallback(
byte[] param,
uint position,
byte[] buf,
uint size
)
Public Delegate Function GetBlockCallback (
param As Byte(),
position As UInteger,
<OutAttribute> buf As Byte(),
size As UInteger
) As Boolean
public delegate bool GetBlockCallback(
array<unsigned char>^ param,
unsigned int position,
[InAttribute] [OutAttribute] array<unsigned char>^ buf,
unsigned int size
)
type GetBlockCallback =
delegate of
param : byte[] *
position : uint32 *
buf : byte[] byref *
size : uint32 -> bool
/** @delegate */
public delegate boolean GetBlockCallback(
byte[] param,
UInt32 position,
/** @attribute InAttribute */ /** @attribute OutAttribute */ byte[] buf,
UInt32 size
)
function(param, position, buf, size);
Parameters
- param Byte
- custom user data
- position UInt32
- Position is specified by byte offset from beginning of the file.
- buf Byte
- buffer for data allocated inside Pdfium SDK
- size UInt32
- buffer size
Return Value
Booleanshould be true if successful, false for error.
RemarksRequired: Yes. Position is specified by byte offset from beginning of the file. It may be possible for FPDFSDK to call this function multiple times for same position.
See Also