Truncate property

Pointer<NativeFunction<FPDF_RESULT Function(Pointer<Void> clientData, FPDF_DWORD size)>> Truncate
getter/setter pair

Callback function to change file size.

Description: This function is called under writing mode usually. Implementer can determine whether to realize it based on application requests. Parameters: clientData - Pointer to user-defined data. size - New size of file stream, in bytes. Returns: 0 for success, other value for failure.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    FPDF_RESULT Function(ffi.Pointer<ffi.Void> clientData, FPDF_DWORD size)
  >
>
Truncate;