botan-low
Copyright(c) 2023-2024 Apotheca Labs
(c) 2024-2025 Haskell Foundation
LicenseBSD-3-Clause
Maintainerjoris@well-typed.com, leo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Botan.Low.View

Description

This module is based on the View Functions section of the C Botan FFI documentation.

Synopsis

View binary

type BotanViewBinFn ctx Source #

Arguments

 = BotanViewContext ctx

view_ctx: some application context

-> ConstPtr Word8

data: the binary data

-> CSize

len: the length of data in bytes

-> CInt 

View string

type BotanViewStrFn ctx Source #

Arguments

 = BotanViewContext ctx

view_ctx: some application context

-> ConstPtr CChar

str: the null terminated string

-> CSize

len: the length of string *including* the null terminator

-> CInt