Idris2Doc : Data.C.Array8

Data.C.Array8

(source)

Reexports

importpublic Data.Fin
importpublic Data.Linear.Token
importpublic Data.Array.Index

Definitions

prim__setbits8 : AnyPtr->Integer->Bits8->PrimIO ()
prim__getbits8 : AnyPtr->Integer->Bits8
recordCIArray8 : Nat->Type
Totality: total
Visibility: export
Constructor: 
IA : AnyPtr->CIArray8n

Projection: 
.ptr : CIArray8n->AnyPtr
at : CIArray8n->Finn->Bits8
Totality: total
Visibility: export
ix : CIArray8n-> (0m : Nat) ->Ix (Sm) n=>Bits8
Totality: total
Visibility: export
atNat : CIArray8n-> (m : Nat) -> {auto0_ : LTmn} ->Bits8
Totality: total
Visibility: export
toVect : CIArray8n->VectnBits8
  Reads the values from a C pointer into a vector.

Totality: total
Visibility: export
foldrKV : (Finn->Bits8->b->b) ->b->CIArray8n->b
  Right fold over the values of an array plus their indices.

Totality: total
Visibility: export
foldr : (Bits8->b->b) ->b->CIArray8n->b
  Right fold over the values of an array

Totality: total
Visibility: export
foldlKV : (Finn->b->Bits8->b) ->b->CIArray8n->b
  Left fold over the values of an array plus their indices.

Totality: total
Visibility: export
foldl : (b->Bits8->b) ->b->CIArray8n->b
  Left fold over the values of an array

Totality: total
Visibility: export
recordCArray8 : Type->Nat->Type
Totality: total
Visibility: export
Constructor: 
CA : AnyPtr->CArray8sn

Projection: 
.ptr : CArray8sn->AnyPtr

Hint: 
ELift1sf=>Resourcef (CArray8sn)
0CArray8IO : Nat->Type
  Convenience alias for `CArray8' RIO`

Totality: total
Visibility: public export
unsafeUnwrap : CArray8sn->AnyPtr
Totality: total
Visibility: export
unsafeWrap : AnyPtr->CArray8sn
Totality: total
Visibility: export
malloc1 : (n : Nat) ->F1s (CArray8sn)
  Allocates a new C-pointer of `sizeof a * n` bytes.

Totality: total
Visibility: export
calloc1 : (n : Nat) ->F1s (CArray8sn)
  Like `malloc1` but resets all allocated bytes to zero.

Totality: total
Visibility: export
free1 : CArray8sn->F1's
  Frees the memory allocated for a C pointer and removes it from the
resources bound to the linear token.

Totality: total
Visibility: export
get : CArray8sn->Finn->F1sBits8
  Reads a value from a C-pointer at the given position.

Totality: total
Visibility: export
getIx : CArray8sn-> (0m : Nat) ->Ix (Sm) n=>F1sBits8
  Reads a value from a C-pointer at the given position.

Totality: total
Visibility: export
getNat : CArray8sn-> (m : Nat) -> {auto0_ : LTmn} ->F1sBits8
  Reads a value from a C-pointer at the given position.

Totality: total
Visibility: export
set : CArray8sn->Finn->Bits8->F1's
  Writes a value to a C pointer at the given position.

Totality: total
Visibility: export
setIx : CArray8sn-> (0m : Nat) ->Ix (Sm) n=>Bits8->F1's
  Writes a value to a C pointer at the given position.

Totality: total
Visibility: export
setNat : CArray8sn-> (m : Nat) -> {auto0_ : LTmn} ->Bits8->F1's
  Writes a value to a C pointer at the given position.

Totality: total
Visibility: export
writeVect : CArray8sn->VectnBits8->F1's
  Writes the values from a vector to a C pointer

Totality: total
Visibility: export
withIArray : CArray8sn-> (CIArray8n->b) ->F1sb
  Temporarily wraps the mutable array in an immutable wrapper and
run a computation with that.

This is safe, because the pure function cannot possibly share the
immutable array by storing it in a mutable reference. It is
referentially transparent, because we call it from a linear context.

Totality: total
Visibility: export
writeList : (as : ListBits8) ->CArray8s (lengthas) ->F1's
  Writes the values from a list to a C pointer

Totality: total
Visibility: export
withCArray : (n : Nat) -> (CArray8sn->F1sb) ->b
Totality: total
Visibility: export
malloc : Lift1sf=> (n : Nat) ->f (CArray8sn)
  Allocates a new C-pointer of `sizeof a * n` bytes.

Totality: total
Visibility: export
calloc : Lift1sf=> (n : Nat) ->f (CArray8sn)
  Like `malloc` but resets all allocated bytes to zero.

Totality: total
Visibility: export
free : Lift1sf=>CArray8sn->f ()
Totality: total
Visibility: export
fromList : Lift1sf=> (as : ListBits8) ->f (CArray8s (lengthas))
Totality: total
Visibility: export