HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebytestring-strict-builder-0.4.5.7Haskell2010

ByteString.StrictBuilder

  • 1 type
  • 18 values
datadata Builder
#
Instances4Show, IsString, Semigroup, Monoid
  • Show BuilderDefined in bytestring-strict-builder-0.4.5.7 · ByteString.StrictBuilder
  • IsString BuilderDefined in bytestring-strict-builder-0.4.5.7 · ByteString.StrictBuilder
  • Semigroup BuilderDefined in bytestring-strict-builder-0.4.5.7 · ByteString.StrictBuilder
  • Monoid BuilderDefined in bytestring-strict-builder-0.4.5.7 · ByteString.StrictBuilder

Converts into the standard lazy bytestring builder. Does so efficiently using the internal APIs of "bytestring", without producing any intermediate representation.

valuebuilderPtrFiller
  1. :: Builder
  2. -> (Int -> (Ptr Word8 -> IO ()) -> result)

    A continuation on the amount of bytes to be written and the action populating the pointer.

  3. -> result
#

Use the builder to populate a buffer. It is your responsibility to ensure that the bounds are not exceeded.