 | GetBlockCallback Delegate |
A function pointer for getting a block of data from specific position.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntaxpublic delegate bool GetBlockCallback(
FPDF_FILEACCESS pThis,
uint position,
byte[] buf,
uint size
)
Public Delegate Function GetBlockCallback (
pThis As FPDF_FILEACCESS,
position As UInteger,
<OutAttribute> buf As Byte(),
size As UInteger
) As Boolean
public delegate bool GetBlockCallback(
FPDF_FILEACCESS^ pThis,
unsigned int position,
[InAttribute] [OutAttribute] array<unsigned char>^ buf,
unsigned int size
)
type GetBlockCallback =
delegate of
pThis : FPDF_FILEACCESS *
position : uint32 *
buf : byte[] byref *
size : uint32 -> bool/** @delegate */
public delegate boolean GetBlockCallback(
FPDF_FILEACCESS pThis,
UInt32 position,
/** @attribute InAttribute */ /** @attribute OutAttribute */ byte[] buf,
UInt32 size
)
function(pThis, position, buf, size);
Parameters
- pThis FPDF_FILEACCESS
- Pointer to the interface structure itself
- 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