FSDK_SetLocaltimeFunction function

  1. @Native<Void Function(Pointer<NativeFunction<Pointer<tm> Function(Pointer<Long>)>>)>(ffi.Pointer<ffi.NativeFunction<ffi.Pointer<tm> Function(ffi.Pointer<time_t>)>>)>()
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

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