byteslice-0.2.9.0: Slicing managed and unmanaged memory
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Bytes.Types

Synopsis

Documentation

data Bytes Source #

A slice of a ByteArray.

Constructors

Bytes 

Fields

Instances

Instances details
Monoid Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Methods

mempty :: Bytes #

mappend :: Bytes -> Bytes -> Bytes #

mconcat :: [Bytes] -> Bytes #

Semigroup Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Methods

(<>) :: Bytes -> Bytes -> Bytes #

sconcat :: NonEmpty Bytes -> Bytes #

stimes :: Integral b => b -> Bytes -> Bytes #

IsList Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Associated Types

type Item Bytes #

Show Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Eq Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Methods

(==) :: Bytes -> Bytes -> Bool #

(/=) :: Bytes -> Bytes -> Bool #

Ord Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

Methods

compare :: Bytes -> Bytes -> Ordering #

(<) :: Bytes -> Bytes -> Bool #

(<=) :: Bytes -> Bytes -> Bool #

(>) :: Bytes -> Bytes -> Bool #

(>=) :: Bytes -> Bytes -> Bool #

max :: Bytes -> Bytes -> Bytes #

min :: Bytes -> Bytes -> Bytes #

type Item Bytes Source # 
Instance details

Defined in Data.Bytes.Internal

newtype Bytes# :: TYPE ('TupleRep '['BoxedRep 'Unlifted, 'IntRep, 'IntRep]) where Source #

Constructors

Bytes# :: (# ByteArray#, Int#, Int# #) -> Bytes# 

data MutableBytes s Source #

A slice of a MutableByteArray.

Constructors

MutableBytes 

Fields

data UnmanagedBytes Source #

A slice of unmanaged memory.

Constructors

UnmanagedBytes 

Fields

data BytesN (n :: Nat) Source #

A slice of 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.

Constructors

BytesN 

Fields

newtype 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.

Constructors

ByteArrayN 

Fields