vector-0.1: Efficient Arrays

Portabilitynon-portable
Stabilityexperimental
Maintainerrl@cse.unsw.edu.au

Data.Vector.Unboxed.Unbox

Description

Primitives for manipulating unboxed arrays

Synopsis

Documentation

class Unbox a whereSource

Class of types which can be stored in unboxed arrays

Methods

size#Source

Arguments

:: a

Dummy type parameter, never evaluated

-> Int#

Number of elements

-> Int# 

Yield the size in bytes of a ByteArray# which can store n elements

at# :: ByteArray# -> Int# -> aSource

Indexing

read# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, a#)Source

Yield the element at the given position

write# :: MutableByteArray# s -> Int# -> a -> State# s -> State# sSource

Store the given element at the given position