byteslice-0.2.15.0: Slicing managed and unmanaged memory
Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Indexed

Synopsis

Documentation

data ByteArrayN (n :: Nat) Source #

A ByteArray whose compile-time-known length is represented by a phantom type variable. Consumers of this data constructor must be careful to preserve the expected invariant.

Instances

Instances details
KnownNat n => Show (ByteArrayN n) Source # 
Instance details

Defined in Data.Bytes.Types

append :: forall (m :: Nat) (n :: Nat). ByteArrayN m -> ByteArrayN n -> ByteArrayN (m + n) Source #

length :: forall (n :: Nat). ByteArrayN n -> Nat n Source #

Recover a witness of the length.

length# :: forall (n :: Nat). ByteArrayN n -> Nat# n Source #

Recover an unboxed witness of the length.