Why Nostr? What is Njump?
2024-07-10 07:14:53

Philipp :emacs: :nixos: on Nostr: Potentially stupid #haskell question, but if I have a "Ptr a" to some memory (in my ...

Potentially stupid #haskell question, but if I have a "Ptr a" to some memory (in my case, Ptr CFloat), how do I get a ByteString from that? I could cast to "Ptr CChar", I suppose, and then use "packCStringLen"? Would be cool to not have to copy anything though.
Author Public Key
npub14390lt6sxddk9xqlurll7czeunakr86fxnt0gqyzzadvhpmn0e0sr39lnk