FSDK_SetTimeFunction function

  1. @Native<Void Function(Pointer<NativeFunction<time_t Function()>>)>(ffi.Pointer<ffi.NativeFunction<time_t Function()>>)>()
void FSDK_SetTimeFunction(
  1. Pointer<NativeFunction<time_t Function()>> func
)

Set replacement function for calls to time().

This API is intended to be used only for testing, thus may cause PDFium to behave poorly in production environments.

func - Function pointer to alternate implementation of time(), or NULL to restore to actual time() call itself.

Implementation

@ffi.Native<
  ffi.Void Function(ffi.Pointer<ffi.NativeFunction<time_t Function()>>)
>()
external void FSDK_SetTimeFunction(
  ffi.Pointer<ffi.NativeFunction<time_t Function()>> func,
);