pinktrace-0.0.5: Haskell bindings to Pink's Tracing LibraryContentsIndex
System.PinkTrace.String
Portabilitynon-portable, requires freebsd or linux
Stabilityprovisional
Maintaineralip@exherbo.org
Description
Pink's string decoding and encoding functions
Synopsis
decodeStringIndexIntBitnessProcessIDIO String
encodeStringIndexStringBitnessProcessIDIO ()
encodeStringSafeIndexStringBitnessProcessIDIO ()
Documentation
decodeString
IndexThe index of the argument
IntMax length of the string If smaller than zero, pinktrace tries to determine the string length.
BitnessThe bitness of the traced child
ProcessIDProcess ID of the traced child
IO StringThe decoded string

This function decodes the string at the argument of the given index.

  • Note: This function calls throwErrno in case of failure.
encodeString
IndexThe index of the argument
StringThe string to be encoded
BitnessThe bitness of the traced child
ProcessIDProcess ID of the traced child
IO ()

Encode a string into the argument of the given index.

  • Note: This function calls throwErrno in case of failure.
  • Warning: Care must be taken when using this function as unexpected things may happen.
encodeStringSafe
IndexThe index of the argument
StringThe string to be encoded
BitnessThe bitness of the traced child
ProcessIDProcess ID of the traced child
IO ()

Encode a string into the argument of the given index with additional checking for writable areas.

  • Note: This function calls throwErrno in case of failure.
  • Availability: Linux
  • Warning: Care must be taken when using this function as unexpected things may happen.
Produced by Haddock version 2.6.1