talira

bytestring

Fast, compact strict and lazy byte strings for Haskell

open sourceBSD-3-Clausefree

bytestring is a core Haskell library for binary and 8-bit character data. Data.ByteString is a strict, immutable, packed array of bytes with a list-style interface and fast string and IO operations; Data.ByteString.Lazy is a lazy list of chunks for processing multi-gigabyte data in constant memory; and Data.ByteString.Builder builds byte strings efficiently from small pieces during binary serialization. It's maintained by the Haskell Bytestring Team and the Core Libraries Committee.

Problems it solves

  • read a large binary file in Haskell without using a lot of memory
  • Haskell String is too slow for my byte data
  • build a binary message efficiently in Haskell
  • do fast IO on raw bytes in Haskell

Features

  • strict immutable byte arrays
  • lazy chunked byte strings for very large data
  • Builder for efficient binary serialization
  • list-style interface
  • fast string and IO operations