<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Foreign.Marshal.Utils</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ></HEAD ><BODY ><DIV CLASS="outer" ><DIV CLASS="mini-topbar" >Foreign.Marshal.Utils</DIV ><DIV CLASS="mini-synopsis" ><H1 >General marshalling utilities </H1 > <H2 >Combined allocation and marshalling </H2 > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3Awith" TARGET="main" >with</A ></DIV > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3Anew" TARGET="main" >new</A ></DIV > <H2 >Marshalling of Boolean values (non-zero corresponds to <TT ><A HREF="../ghc-prim/GHC-Bool.html#v%3ATrue" >True</A ></TT >) </H2 > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AfromBool" TARGET="main" >fromBool</A ></DIV > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AtoBool" TARGET="main" >toBool</A ></DIV > <H2 >Marshalling of Maybe values </H2 > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AmaybeNew" TARGET="main" >maybeNew</A ></DIV > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AmaybeWith" TARGET="main" >maybeWith</A ></DIV > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AmaybePeek" TARGET="main" >maybePeek</A ></DIV > <H2 >Marshalling lists of storable objects </H2 > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AwithMany" TARGET="main" >withMany</A ></DIV > <H2 >Haskellish interface to memcpy and memmove </H2 > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AcopyBytes" TARGET="main" >copyBytes</A ></DIV > <DIV CLASS="decl" ><A HREF="Foreign-Marshal-Utils.html#v%3AmoveBytes" TARGET="main" >moveBytes</A ></DIV ></DIV ></DIV ></BODY ></HTML >