Hoogle Search
Within LTS Haskell 24.63 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
ByteStringBuilder = Builderclassy-prelude-yesod ClassyPrelude.Yesod Since 0.3.0.0
module Data.
ByteString_LHAssumptions No documentation available.
byteStringHex :: StrictByteString -> Builderbytestring Data.ByteString.Builder Encode each byte of a StrictByteString using its fixed-width hex encoding.
byteStringCopy :: StrictByteString -> Builderbytestring Data.ByteString.Builder.Extra Construct a Builder that copies the StrictByteString. Use this function to create Builders from smallish (<= 4kb) StrictByteStrings or if you need to guarantee that the StrictByteString is not shared with the chunks generated by the Builder.
byteStringInsert :: StrictByteString -> Builderbytestring Data.ByteString.Builder.Extra Construct a Builder that always inserts the StrictByteString directly as a chunk. This implies flushing the output buffer, even if it contains just a single byte. You should therefore use byteStringInsert only for large (> 8kb) StrictByteStrings. Otherwise, the generated chunks are too fragmented to be processed efficiently afterwards.
byteStringThreshold :: Int -> StrictByteString -> Builderbytestring Data.ByteString.Builder.Extra Construct a Builder that copies the StrictByteStrings, if it is smaller than the treshold, and inserts it directly otherwise. For example, byteStringThreshold 1024 copies StrictByteStrings whose size is less or equal to 1kb, and inserts them directly otherwise. This implies that the average chunk-size of the generated LazyByteString may be as low as 513 bytes, as there could always be just a single byte between the directly inserted 1025 byte, StrictByteStrings.
byteStringCopy :: StrictByteString -> Builderbytestring Data.ByteString.Builder.Internal Construct a Builder that copies the StrictByteString. Use this function to create Builders from smallish (<= 4kb) StrictByteStrings or if you need to guarantee that the StrictByteString is not shared with the chunks generated by the Builder.
byteStringFromBuffer :: Buffer -> StrictByteStringbytestring Data.ByteString.Builder.Internal Convert the filled part of a Buffer to a StrictByteString.
byteStringInsert :: StrictByteString -> Builderbytestring Data.ByteString.Builder.Internal Construct a Builder that always inserts the StrictByteString directly as a chunk. This implies flushing the output buffer, even if it contains just a single byte. You should therefore use byteStringInsert only for large (> 8kb) StrictByteStrings. Otherwise, the generated chunks are too fragmented to be processed efficiently afterwards.
byteStringThreshold :: Int -> StrictByteString -> Builderbytestring Data.ByteString.Builder.Internal Construct a Builder that copies the StrictByteStrings, if it is smaller than the treshold, and inserts it directly otherwise. For example, byteStringThreshold 1024 copies StrictByteStrings whose size is less or equal to 1kb, and inserts them directly otherwise. This implies that the average chunk-size of the generated LazyByteString may be as low as 513 bytes, as there could always be just a single byte between the directly inserted 1025 byte, StrictByteStrings.