memory

memory and related abtraction stuff

https://github.com/vincenthz/hs-memory

Version on this page:0.4@rev:1
LTS Haskell 22.18:0.18.0
Stackage Nightly 2024-04-25:0.18.0
Latest on Hackage:0.18.0

See all snapshots memory appears in

BSD-3-Clause licensed by Vincent Hanquez
Maintained by [email protected]
This version can be pinned in stack with:memory-0.4@sha256:34a92a017f9886bfcc0ccbd35c1dde888bdde1c9e1872984b2f87ee2cbe6cc74,3657
Used by 1 package in nightly-2015-05-27(full list with versions):

memory

Build Status BSD Haskell

Documentation: memory on hackage

A generic memory and related abstraction for haskell:

  • A polymorphic byte array abstraction and function similar to strict ByteString.
  • Different type of byte array abstraction.
  • Raw memory IO operations (memory set, memory copy, ..)
  • Aliasing with endianness support.

Also provides some useful helpers:

Versioning

Development versions are an incremental number prefixed by 0. No specific meaning is associated with the versions, specially no API stability.

Production versions : TBD

Coding Style

The coding style of this project mostly follows: haskell-style

Support

memory supports the following platform:

  • Windows >= 7
  • OSX >= 10.8
  • Linux

On the following architectures:

  • x86-64
  • i386

On the following haskell versions:

  • GHC 7.0.x
  • GHC 7.4.x
  • GHC 7.6.x
  • GHC 7.8.x
  • GHC 7.10.x

Changes

0.4

  • add Ord instances for SipHash and FnvHash (Nicolas Di Prima)

0.3

  • fix missing modules from tests on sdist

0.2

  • make concat more generic as to what the output is going to be, and at the same time reduce the constraint on the input to just Access
  • make all byte array operation safer related to negative size. now replicate, zero, and alloc will returns an empty byte array when asking for negative size
  • replace ‘pack’ in Data.ByteArray.Pack by ‘fill’, as to not conflict with ‘Data.ByteArray.pack’. Also swap the length and monadic action to be more naturally used
  • add a deprecated ‘pack’ that alias to ‘fill’ for now
  • loosen constraint of Data.ByteArray.Pack.putBytes from ByteArray to ByteArrayAccess

0.1

  • Initial release