hans-3.0.1: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Serialize

Synopsis

Documentation

runPutPacket :: Int -> Int -> ByteString -> Put -> ByteString Source #

A specialized version of runPut that allows the initial and successive buffer sizes for the Builder to be defined. For example, if you're rendering an IP4 packet, you might give the first parameter as 20 (the size of the fixed header), and the second as 40 (the maximum additional length for options).