Popularity
7.2
Growing
Activity
6.3
-
12
8
5

Monthly Downloads: 142
Programming language: Haskell
License: GNU General Public License v3.0 or later
Tags: Data    
Latest version: v0.2.7.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.