FSDK_SetLocaltimeFunction function
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,
);