Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > ced6c87363f828494726b6b2035d675f > files > 4

ghc-binary-doc-0.5.0.2-1.fc13.i686.rpm

<!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
>Data.Binary.Put</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Data-Binary-Put.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>binary-0.5.0.2: Binary serialisation for Haskell values using lazy ByteStrings</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Data.Binary.Put</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>Portable to Hugs and GHC. Requires MPTCs</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>stable</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>Lennart Kolmodin &lt;kolmodin@dtek.chalmers.se&gt;</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>The Put type
</A
></DT
><DT
><A HREF="#2"
>Flushing the implicit parse state
</A
></DT
><DT
><A HREF="#3"
>Primitives
</A
></DT
><DT
><A HREF="#4"
>Big-endian primitives
</A
></DT
><DT
><A HREF="#5"
>Little-endian primitives
</A
></DT
><DT
><A HREF="#6"
>Host-endian, unaligned writes
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>The Put monad. A monad for efficiently constructing lazy bytestrings.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3APut"
>Put</A
> = <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3APutM"
>PutM</A
> a = <A HREF="#v%3APut"
>Put</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AunPut"
>unPut</A
> :: PairS a</TD
></TR
></TABLE
>}</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ArunPut"
>runPut</A
> :: <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ArunPutM"
>runPutM</A
> ::  <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> a -&gt; (a, <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputBuilder"
>putBuilder</A
> :: <A HREF="Data-Binary-Builder.html#t%3ABuilder"
>Builder</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AexecPut"
>execPut</A
> ::  <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> a -&gt; <A HREF="Data-Binary-Builder.html#t%3ABuilder"
>Builder</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aflush"
>flush</A
> :: <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord8"
>putWord8</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputByteString"
>putByteString</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputLazyByteString"
>putLazyByteString</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord16be"
>putWord16be</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord32be"
>putWord32be</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord64be"
>putWord64be</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord16le"
>putWord16le</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord32le"
>putWord32le</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord64le"
>putWord64le</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWordhost"
>putWordhost</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord"
>Word</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord16host"
>putWord16host</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord32host"
>putWord32host</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AputWord64host"
>putWord64host</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>The Put type
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:Put"
><A NAME="t%3APut"
></A
></A
><B
>Put</B
> = <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="doc"
>Put merely lifts Builder into a Writer monad, applied to ().
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:PutM"
><A NAME="t%3APutM"
></A
></A
><B
>PutM</B
> a </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>The PutM type. A Writer monad over the efficient Builder monoid.
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:Put"
><A NAME="v%3APut"
></A
></A
><B
>Put</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:unPut"
><A NAME="v%3AunPut"
></A
></A
><B
>unPut</B
> :: PairS a</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PutM')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PutM" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Monad.html#t%3AMonad"
>Monad</A
> <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Monad.html#t%3AFunctor"
>Functor</A
> <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Applicative.html#t%3AApplicative"
>Applicative</A
> <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:runPut"
><A NAME="v%3ArunPut"
></A
></A
><B
>runPut</B
> :: <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="doc"
>Run the <TT
><A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TT
> monad with a serialiser
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:runPutM"
><A NAME="v%3ArunPutM"
></A
></A
><B
>runPutM</B
> ::  <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> a -&gt; (a, <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>Run the <TT
><A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TT
> monad with a serialiser and get its result
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putBuilder"
><A NAME="v%3AputBuilder"
></A
></A
><B
>putBuilder</B
> :: <A HREF="Data-Binary-Builder.html#t%3ABuilder"
>Builder</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:execPut"
><A NAME="v%3AexecPut"
></A
></A
><B
>execPut</B
> ::  <A HREF="Data-Binary-Put.html#t%3APutM"
>PutM</A
> a -&gt; <A HREF="Data-Binary-Builder.html#t%3ABuilder"
>Builder</A
></TD
></TR
><TR
><TD CLASS="doc"
>Run the <TT
><A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TT
> monad
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>Flushing the implicit parse state
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:flush"
><A NAME="v%3Aflush"
></A
></A
><B
>flush</B
> :: <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Pop the ByteString we have constructed so far, if any, yielding a
 new chunk in the result ByteString.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="3"
><A NAME="3"
>Primitives
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord8"
><A NAME="v%3AputWord8"
></A
></A
><B
>putWord8</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Efficiently write a byte into the output buffer
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putByteString"
><A NAME="v%3AputByteString"
></A
></A
><B
>putByteString</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>An efficient primitive to write a strict ByteString into the output buffer.
 It flushes the current buffer, and writes the argument into a new chunk.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putLazyByteString"
><A NAME="v%3AputLazyByteString"
></A
></A
><B
>putLazyByteString</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a lazy ByteString efficiently, simply appending the lazy
 ByteString chunks to the output buffer
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="4"
><A NAME="4"
>Big-endian primitives
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord16be"
><A NAME="v%3AputWord16be"
></A
></A
><B
>putWord16be</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word16 in big endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord32be"
><A NAME="v%3AputWord32be"
></A
></A
><B
>putWord32be</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word32 in big endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord64be"
><A NAME="v%3AputWord64be"
></A
></A
><B
>putWord64be</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word64 in big endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="5"
><A NAME="5"
>Little-endian primitives
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord16le"
><A NAME="v%3AputWord16le"
></A
></A
><B
>putWord16le</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word16 in little endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord32le"
><A NAME="v%3AputWord32le"
></A
></A
><B
>putWord32le</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word32 in little endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord64le"
><A NAME="v%3AputWord64le"
></A
></A
><B
>putWord64le</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
>Write a Word64 in little endian format
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="6"
><A NAME="6"
>Host-endian, unaligned writes
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWordhost"
><A NAME="v%3AputWordhost"
></A
></A
><B
>putWordhost</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord"
>Word</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
><EM
>O(1).</EM
> Write a single native machine word. The word is
 written in host order, host endian form, for the machine you're on.
 On a 64 bit machine the Word is an 8 byte value, on a 32 bit machine,
 4 bytes. Values written this way are not portable to
 different endian or word sized machines, without conversion.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord16host"
><A NAME="v%3AputWord16host"
></A
></A
><B
>putWord16host</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord16"
>Word16</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
><EM
>O(1).</EM
> Write a Word16 in native host order and host endianness.
 For portability issues see <TT
>putWordhost</TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord32host"
><A NAME="v%3AputWord32host"
></A
></A
><B
>putWord32host</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord32"
>Word32</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
><EM
>O(1).</EM
> Write a Word32 in native host order and host endianness.
 For portability issues see <TT
>putWordhost</TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:putWord64host"
><A NAME="v%3AputWord64host"
></A
></A
><B
>putWord64host</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Word.html#t%3AWord64"
>Word64</A
> -&gt; <A HREF="Data-Binary-Put.html#t%3APut"
>Put</A
></TD
></TR
><TR
><TD CLASS="doc"
><EM
>O(1).</EM
> Write a Word64 in native host order
 On a 32 bit machine we write two host order Word32s, in big endian form.
 For portability issues see <TT
>putWordhost</TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.0</TD
></TR
></TABLE
></BODY
></HTML
>