ip-0.8: Library for IP and MAC addresses

Safe HaskellNone
LanguageHaskell2010

Net.Internal

Synopsis

Documentation

toTextPreAllocated :: Word32 -> Text Source #

I think that this function can be improved. Right now, it always allocates enough space for a fifteen-character text rendering of an IP address. I think that it should be possible to do more of the math upfront and allocate less space.

i2w :: Integral a => a -> Word16 Source #

dotDecimalParser :: Parser Word32 Source #

This does not do an endOfInput check because it is reused in the range parser implementation.

fromOctets' :: Word32 -> Word32 -> Word32 -> Word32 -> Word32 Source #

This is sort of a misnomer. It takes Word32 to make dotDecimalParser probably perform better. This is mostly for internal use.