Re: need help to use C++ callback from garnet

2024-05-29 Thread evilrat via Digitalmars-d-learn
On Wednesday, 29 May 2024 at 07:47:01 UTC, Dakota wrote: I try use https://github.com/microsoft/garnet/blob/main/libs/storage/Tsavorite/cc/src/device/native_device_wrapper.cc from D Not sure how to make this work with D: ```c++ EXPORTED_SYMBOL FASTER::core::Status NativeDevice_ReadAsync(Nat

need help to use C++ callback from garnet

2024-05-29 Thread Dakota via Digitalmars-d-learn
I try use https://github.com/microsoft/garnet/blob/main/libs/storage/Tsavorite/cc/src/device/native_device_wrapper.cc from D Not sure how to make this work with D: ```c++ EXPORTED_SYMBOL FASTER::core::Status NativeDevice_ReadAsync(NativeDevice* device, uint64_t source, void* dest, uint32_t

Re: Get milliseconds from time and construct time based on milliseconds

2024-05-29 Thread bauss via Digitalmars-d-learn
On Tuesday, 28 May 2024 at 23:18:46 UTC, Steven Schveighoffer wrote: On Tuesday, 28 May 2024 at 18:41:02 UTC, bauss wrote: On Tuesday, 28 May 2024 at 18:29:17 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 28 May 2024 at 17:37:42 UTC, bauss wrote: I have two questions that I can't seem to find a solu