Data.ByteString.FastBuilder

The type

data Builder

Running a builder

toLazyByteString

toLazyByteStringWith

toStrictByteString

hPutBuilder

Performance tuning

rebuild

Basic builders

primBounded

primFixed

byteString

byteStringInsert

byteStringCopy

byteStringThreshold

Single byte

int8

word8

Little endian

int16LE

int32LE

int64LE

word16LE

word32LE

word64LE

floatLE

doubleLE

Big endian

int16BE

int32BE

int64BE

word16BE

word32BE

word64BE

floatBE

doubleBE

Host-dependent size and byte order, non-portable

intHost

int16Host

int32Host

int64Host

wordHost

word16Host

word32Host

word64Host

floatHost

doubleHost

Decimal

intDec

int8Dec

int16Dec

int32Dec

int64Dec

wordDec

word8Dec

word16Dec

word32Dec

word64Dec

integerDec

floatDec

doubleDec

Hexadecimal

wordHex

word8Hex

word16Hex

word32Hex

word64Hex

Fixed-width hexadecimal

int8HexFixed

int16HexFixed

int32HexFixed

int64HexFixed

word8HexFixed

word16HexFixed

word32HexFixed

word64HexFixed

floatHexFixed

doubleHexFixed

UTF-8

charUtf8

stringUtf8

ASCII

char7

string7

ISO-8859-1

char8

string8