pack -package:filepath
O(n) Convert a
[Word8] into a
ByteString.
For applications with large numbers of string literals,
pack
can be a bottleneck. In such cases, consider using
unsafePackAddress (GHC only).
O(n) Convert a
String into a
ByteString
For applications with large numbers of string literals, pack can be a
bottleneck.
O(n) Convert a
String into a
Text. Performs
replacement on invalid scalar values, so
unpack .
pack is not
id:
>>> Data.Text.unpack (pack "\55555")
"\65533"
O(n) Convert a
String into a
Text.
Performs replacement on invalid scalar values, so
unpack .
pack is not
id:
>>> Data.Text.Lazy.unpack (Data.Text.Lazy.pack "\55555")
"\65533"
Pack a list of bytes into a bytearray
Deprecated: use fill instead
Pack a list of bytes into a bytearray
Creates a tar archive from a list of directory or files. Any
directories specified will have their contents included recursively.
Paths in the archive will be relative to the given base directory.
This is a portable implementation of packing suitable for portable
archives. In particular it only constructs
NormalFile,
Directory and
SymbolicLink entries. Hard links are
treated like ordinary files. Special files like FIFOs (named pipes),
sockets or device files will cause problems.
- This function returns results lazily. Subdirectories are scanned
and files are read one by one as the list of entries is consumed. Do
not change their contents before the output of pack was
consumed in full.
O(n) Convert a
String into a
Text. Subject to
fusion. Performs replacement on invalid scalar values.
O(n) Convert a
String into a
Text.
Subject to fusion. Performs replacement on invalid scalar values.
O(n) Convert a monadic stream of individual
Word8s into
a packed byte stream.
O(n) Convert a stream of separate characters into a packed byte
stream.