Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runPutPacket :: Int -> Int -> ByteString -> Put -> ByteString
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).