-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | bounded ByteArray builder type -- -- A Builder type for ByteArray. Appending these builders can be cheaper -- than when appending ByteArray values, since only one buffer allocation -- is performed. @package builder @version 0.2 -- | A Builder type for ByteArray. Appending these builders -- can be cheaper than when appending ByteArray values, since you -- only perform one buffer allocation. module Builder -- | A Builder for ByteArrays that has O(1) append. To create -- a ByteArray, use build. This will only do one -- allocation. data Builder -- | Convert a Builder into a ByteArray. build :: Builder -> ByteArray -- | A Builder for any Prim and PrimUnaligned value. unaligned :: (Prim a, PrimUnaligned a) => a -> Builder -- | A Builder for Word8. word8 :: Word8 -> Builder -- | A Builder for Word16. word16 :: Word16 -> Builder -- | A Builder for Word32. word32 :: Word32 -> Builder -- | A Builder for Word64. word64 :: Word64 -> Builder -- | A Builder for Word. word :: Word -> Builder -- | A Builder for Int8. int8 :: Int8 -> Builder -- | A Builder for Int16. int16 :: Int16 -> Builder -- | A Builder for Int32. int32 :: Int32 -> Builder -- | A Builder for Int64. int64 :: Int64 -> Builder -- | A Builder for Int. int :: Int -> Builder -- | A Builder for Float. float :: Float -> Builder -- | A Builder for Double. double :: Double -> Builder -- | A Builder for Char. char :: Char -> Builder -- | A Builder for Ptr a. ptr :: Ptr a -> Builder -- | A Builder for a ByteArray slice. bytearray :: () => ByteArray -> Int -> Int -> Builder -- | A Builder for Fixed b a This provides better -- control over endianness when writing. fixed :: (FixedOrdering b, Bytes a, Prim a, PrimUnaligned a) => Fixed b a -> Builder instance GHC.Base.Semigroup Builder.Builder instance GHC.Base.Monoid Builder.Builder