Idris2Doc : Data.C.Struct

Data.C.Struct

(source)

Definitions

prim__malloc : Bits32->AnyPtr
prim__calloc : Bits32->Bits32->AnyPtr
prim__free : AnyPtr->PrimIO ()
interfaceWrappedPtr : Type->Type
Parameters: a
Methods:
wrap : AnyPtr->a
unwrap : a->AnyPtr

Implementation: 
Structf=>WrappedPtr (fs)
wrap : WrappedPtra=>AnyPtr->a
Totality: total
Visibility: public export
unwrap : WrappedPtra=>a->AnyPtr
Totality: total
Visibility: public export
interfaceStruct : (Type->Type) ->Type
  Interface for wrappers around `struct` pointers.

Functions `wrap` and `unwrap` are used to convert from and
to the underlying pointer.

Parameters: f
Methods:
swrap : AnyPtr->fs
sunwrap : fs->AnyPtr
swrap : Structf=>AnyPtr->fs
Totality: total
Visibility: public export
sunwrap : Structf=>fs->AnyPtr
Totality: total
Visibility: public export
freeStruct1 : Structf=>fs->F1's
  Frees the memory allocated for a `struct`

Totality: total
Visibility: export
allocStruct1 : (0f : (Type->Type)) ->SizeOf (fs) =>Structf=>F1s (fs)
  Allocates memory for a single `struct`

Totality: total
Visibility: export
callocStruct1 : (0f : (Type->Type)) ->SizeOf (fs) =>Structf=>F1s (fs)
  Allocates memory for a single `struct`

Totality: total
Visibility: export
freeStruct : Lift1sm=>Structf=>fs->m ()
  Frees the memory allocated for a `struct`

Totality: total
Visibility: export
allocStruct : Lift1sm=> (0f : (Type->Type)) ->SizeOf (fs) =>Structf=>m (fs)
  Allocates memory for a single `struct` with all bits set to 0.

Totality: total
Visibility: export
callocStruct : Lift1sm=> (0f : (Type->Type)) ->SizeOf (fs) =>Structf=>m (fs)
  Allocates memory for a single `struct` with all bits set to 0.

Totality: total
Visibility: export