repa-3.3.1.2: High performance, regular, shape polymorphic parallel arrays.

Safe HaskellNone
LanguageHaskell98

Data.Array.Repa.Repr.ByteString

Synopsis

Documentation

data B

Strict ByteStrings arrays are represented as ForeignPtr buffers of Word8

Instances

Source B Word8

Read elements from a ByteString.

Structured B Word8 b 
Read sh => Read (Array B sh Word8) 
Show sh => Show (Array B sh Word8) 
type TR B = D 
data Array B sh Word8 = AByteString !sh !ByteString 

fromByteString :: Shape sh => sh -> ByteString -> Array B sh Word8

O(1). Wrap a ByteString as an array.

toByteString :: Array B sh Word8 -> ByteString

O(1). Unpack a ByteString from an array.