bytestring-to-vector: Convert between ByteString and Vector.Storable without copying

[ bsd3, data-structures, library ] [ Propose Tags ] [ Report a vulnerability ]

This library allows conversion between the types from Data.ByteString (package bytestring) and Data.Vector.Storable (package vector) without copying the underlying data. This is useful, for example, when ByteString IO produces or consumes vectors of numbers in native byte order.

The conversion relies on the fact that ByteString and Vector use their respective ForeignPtrs in compatible ways.

This library is a fork of the spool package written by Keegan McAllister.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.0.0, 0.3.0.1
Dependencies base (>=3 && <5), bytestring, vector [details]
License BSD-3-Clause
Author Keegan McAllister <mcallister.keegan@gmail.com>
Maintainer Sven Heyll <sven.heyll@gmail.com>
Category Data Structures
Home page https://github.com/sheyll/bytestring-to-vector
Source repo head: git clone git://github.com/sheyll/bytestring-to-vector.git
Uploaded by SvenHeyll at 2019-02-08T04:53:15Z
Distributions Arch:0.3.0.1, Debian:0.3.0.1, LTSHaskell:0.3.0.1, NixOS:0.3.0.1, Stackage:0.3.0.1
Reverse Dependencies 7 direct, 9 indirect [details]
Downloads 5414 total (60 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-02-08 [all 1 reports]

Readme for bytestring-to-vector-0.3.0.1

[back to package description]

Build Status

Hackage

Platform dependent no-copy vector - bytestring conversion

It provides conversion between ByteString and Vector.Storable without copying the underlying data.

This is a fork of spool.