diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-06-11 11:55:27 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-06-11 11:55:27 -0400 |
commit | 51def94e9c0ce81511ce1364c9adf2cd047a38bc (patch) | |
tree | 6069b254dec8f20279080ae803b755c4e0c271aa /doc/lispref/processes.texi | |
parent | b591a041e37f1a58d8a248f00b7adbf19ed4fa84 (diff) | |
download | emacs-51def94e9c0ce81511ce1364c9adf2cd047a38bc.tar.gz |
Bindat: Document `sint`; add `le` arg to `uint`; deprecate `uintr`
* lisp/emacs-lisp/bindat.el (bindat--type) <uint>: Add `le` optional arg.
(bindat--type) <uintr>: Delete method.
(uintr): Re-define as a bindat-macro instead.
(bindat-type): Update docstring accordingly.
(bindat--primitives): Update.
(sint): Simplify.
* doc/lispref/processes.texi (Bindat Types): Update `uint`, add `sint`,
and remove `uintr`.
* test/lisp/emacs-lisp/bindat-tests.el (data-bindat-spec): Use the new
`le` arg of `uint` instead of `uintr`.
Diffstat (limited to 'doc/lispref/processes.texi')
-rw-r--r-- | doc/lispref/processes.texi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 55fb93ec5a8..aa4d0e3ee4f 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -3470,13 +3470,15 @@ type values: @itemx byte Unsigned byte, with length 1. -@item uint @var{bitlen} -Unsigned integer in network byte order, with @var{bitlen} bits. +@item uint @var{bitlen} &optional @var{le} +Unsigned integer in network byte order (big-endian), with @var{bitlen} bits. @var{bitlen} has to be a multiple of 8. +If @var{le} is non-@code{nil}, then use little-endian byte order. -@item uintr @var{bitlen} -Unsigned integer in little endian order, with @var{bitlen} bits. +@item sint @var{bitlen} @var{le} +Signed integer in network byte order (big-endian), with @var{bitlen} bits. @var{bitlen} has to be a multiple of 8. +If @var{le} is non-@code{nil}, then use little-endian byte order. @item str @var{len} Unibyte string (@pxref{Text Representations}) of length @var{len} bytes. |