storablevector-0.2.8.1: Fast, packed, strict storable arrays with a list interface like ByteString

Safe HaskellSafe-Infered

Data.StorableVector.Pointer

Description

In principle you can traverse through a storable vector using repeated calls to viewL or using index. However this needs a bit of pointer arrangement and allocation. This data structure should make loops optimally fast.

Synopsis

Documentation

data Pointer a Source

We might have name the data type iterator.

Constructors

Pointer 

Fields

fptr :: !(ForeignPtr a)
 
ptr :: !(Ptr a)
 
left :: !Int
 

switchL :: Storable a => b -> (a -> Pointer a -> b) -> Pointer a -> bSource