Popularity
6.3
Growing
Activity
2.6
-
8
6
1

Monthly Downloads: 363
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data    
Latest version: v0.2.3.0

byteslice alternatives and similar packages

Based on the "Data" category.
Alternatively, view byteslice alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of byteslice or a related project?

Add another 'Data' Package

README

byteslice

Purpose

Types for dealing with slices of 'ByteArray' and 'MutableByteArray'. These are never supposed to introduce overhead. Rather, they exist to clarify intent in type signatures.

receive ::
     Resource -- ^ Some scarce resource
  -> MutableByteArray RealWorld -- ^ Buffer
  -> Int -- ^ Offset
  -> Int -- ^ Length
  -> IO ()

With this library, we instead write

receive ::
     Resource -- ^ Some scarce resource
  -> MutableBytes RealWorld -- ^ Buffer
  -> IO ()

The combination of the worker-wrapper transformation and inlining means that we can expect these two to end up generating the same code in most situations.