Data.Bytes.Internal

byteslice-0.2.14.0: Slicing managed and unmanaged memory

Safe Haskell | None
Language | Haskell2010

Data.Bytes.Internal

Synopsis

- data Bytes = Bytes {
  - array :: !ByteArray
  - offset :: !Int
  - length :: !Int
  }

# Documentation

data Bytes #

A slice of a `ByteArray`.

Constructors

Bytes |
Fields array :: !ByteArray offset :: !Int length :: !Int

#### Instances

Instances details

Monoid Bytes # |
Instance details Defined in Data.Bytes.Internal Methods mempty :: Bytes # mappend :: Bytes -> Bytes -> Bytes # mconcat :: [Bytes] -> Bytes #
Semigroup Bytes # |
Instance details Defined in Data.Bytes.Internal Methods (<>) :: Bytes -> Bytes -> Bytes # sconcat :: NonEmpty Bytes -> Bytes # stimes :: Integral b => b -> Bytes -> Bytes #
IsList Bytes # |
Instance details Defined in Data.Bytes.Internal Associated Types
type Item Bytes |
Instance details Defined in Data.Bytes.Internal type Item Bytes = Word8
Methods fromList :: [Item Bytes] -> Bytes # fromListN :: Int -> [Item Bytes] -> Bytes # toList :: Bytes -> [Item Bytes] #
Show Bytes # |
Instance details Defined in Data.Bytes.Internal Methods showsPrec :: Int -> Bytes -> ShowS # show :: Bytes -> String # showList :: [Bytes] -> ShowS #
Eq Bytes # |
Instance details Defined in Data.Bytes.Internal Methods (==) :: Bytes -> Bytes -> Bool # (/=) :: Bytes -> Bytes -> Bool #
Ord Bytes # |
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 # |
Instance details Defined in Data.Bytes.Internal type Item Bytes = Word8