FSDK_SetLocaltimeFunction method

void FSDK_SetLocaltimeFunction(
  1. Pointer<NativeFunction<Pointer<tm> Function(Pointer<Long>)>> func
)

Set replacement function for calls to localtime().

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 localtime(), or NULL to restore to actual localtime() call itself.

Implementation

void FSDK_SetLocaltimeFunction(
  ffi.Pointer<
    ffi.NativeFunction<ffi.Pointer<tm> Function(ffi.Pointer<time_t>)>
  >
  func,
) {
  return _FSDK_SetLocaltimeFunction(func);
}