ByteString

repository·master·Indexed 43 days ago

https://github.com/haskell/bytestring

A high-performance Haskell library providing efficient, packed byte arrays for time- and space-efficient string and IO operations. It supports strict byte arrays via `Data.ByteString`, lazy lists of chunks via `Data.ByteString.Lazy`, and efficient construction of values via `Data.ByteString.Builder`.

Tokens
193
Snippets
0
Records
2
Agent score
5%

What's inside ByteString

  1. Overview of ByteString types and usage

    master

    The bytestring library provides efficient, packed byte arrays that can be manipulated as strings. It offers three primary modules depending on your data requirements:

    1. Data.ByteString: Provides strict byte arrays for efficient string and IO operations.
    2. Data.ByteString.Lazy: Provides a lazy list of bytestring chunks. Use this for very large data requirements (multi-gigabyte) or when you have strict constraints on heap size.
    3. Data.ByteString.Builder: Designed for the efficient construction of ByteString values from smaller pieces, specifically useful during binary serialization.