| Copyright | (c) 2023-2024 Apotheca Labs (c) 2024-2025 Haskell Foundation |
|---|---|
| License | BSD-3-Clause |
| Maintainer | joris@well-typed.com, leo@apotheca.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | GHC2021 |
Botan.Low.View
Contents
Description
This module is based on the View Functions section of the C Botan FFI documentation.
Synopsis
- type BotanViewBinFn ctx = BotanViewContext ctx -> ConstPtr Word8 -> CSize -> CInt
- type BotanViewBinCallback ctx = FunPtr (BotanViewBinFn ctx)
- viewBin :: BotanViewBinFn ctx -> (BotanViewBinCallback ctx -> IO a) -> IO a
- type BotanViewStrFn ctx = BotanViewContext ctx -> ConstPtr CChar -> CSize -> CInt
- type BotanViewStrCallback ctx = FunPtr (BotanViewStrFn ctx)
- viewStr :: BotanViewStrFn ctx -> (BotanViewStrCallback ctx -> IO a) -> IO a
View binary
type BotanViewBinFn ctx = BotanViewContext ctx -> ConstPtr Word8 -> CSize -> CInt #
type BotanViewBinCallback ctx = FunPtr (BotanViewBinFn ctx) #
viewBin :: BotanViewBinFn ctx -> (BotanViewBinCallback ctx -> IO a) -> IO a Source #
View string
type BotanViewStrFn ctx = BotanViewContext ctx -> ConstPtr CChar -> CSize -> CInt #
type BotanViewStrCallback ctx = FunPtr (BotanViewStrFn ctx) #
viewStr :: BotanViewStrFn ctx -> (BotanViewStrCallback ctx -> IO a) -> IO a Source #