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

Safe HaskellNone
LanguageHaskell98

Data.Array.Repa.Repr.ByteString

Synopsis

Documentation

data B Source

Strict ByteStrings arrays are represented as ForeignPtr buffers of Word8

Instances

Source B Word8 Source

Read elements from a ByteString.

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

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

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

toByteString :: Array B sh Word8 -> ByteString Source

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