[m-rev.] for review: writing 16- and 32-bit integers to binary file streams

Zoltan Somogyi zoltan.somogyi at runbox.com
Mon Sep 25 18:06:16 AEST 2017



On Mon, 25 Sep 2017 04:03:09 -0400 (EDT), Julien Fischer <jfischer at opturion.com> wrote:
> How's this?
> 
>      The following predicates write multibyte integer values to the current
>      binary output stream or to the specified binary output stream.
> 
>      These names of these predicates have the form:
> 
>         write_binary_<TYPE><SUFFIX>
> 
>      where <TYPE> is the name of one of the Mercury multibyte fixed size
>      integer types. <SUFFIX> is optional and specifies the byte order in
>      which the integer value is written to the stream.  It may be one of:
> 
>         no suffix - native byte order of the underlying platform.
>         "_le"     - little endian byte order.
>         "_be"     - big endian byte order.

That works for me.

Zoltan.


More information about the reviews mailing list