Data.Primitive.ByteArray.Offset

primitive-offset-0.2.0.1: Types for offsets into unboxed arrays

Safe Haskell | None
Language | Haskell2010

Data.Primitive.ByteArray.Offset

Contents

- Types

Synopsis

- data ByteArrayOffset = ByteArrayOffset {
  - array :: !ByteArray
  - offset :: !Int
  }
- data MutableByteArrayOffset s = MutableByteArrayOffset {
  - array :: !(MutableByteArray s)
  - offset :: !Int
  }

# Types

data ByteArrayOffset #

A byte array and an index into the array. The element type is understood to be byte (an 8-bit word).

Constructors

ByteArrayOffset |
Fields array :: !ByteArray offset :: !Int

data MutableByteArrayOffset s #

A mutable byte array and an index into the array. The element type is understood to be byte (an 8-bit word).

Constructors

MutableByteArrayOffset |
Fields array :: !(MutableByteArray s) offset :: !Int