Module

Erl.Data.Binary.IOData

Representation of Erlang iodata(). Some duplication of functions from IOList to avoid unnecessary conversions in common cases.

#IOData

#mempty_

#empty

#append_

#fromIOList

fromIOList :: IOList -> IOData

Coerce an IOList to IOData (no-op)

#fromBinary

fromBinary :: Binary -> IOData

Coerce a Binary to IOData (no-op)

#fromString

fromString :: String -> IOData

Coerce a String to IOData (no-op)

#toBinary

toBinary :: IOData -> Binary

Collapse an iodata to binary

#concat

concat :: List IOData -> IOData

Concatenate a list of IOData to an IOData. This is a no-op O(1).

#byteSize

byteSize :: IOData -> Int

Calls iolist_size

Modules