[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 08/12: doc/bytevector-slices: Document slice-X-ref and s
From: |
gnunet |
Subject: |
[gnunet-scheme] 08/12: doc/bytevector-slices: Document slice-X-ref and slice-X-set!. |
Date: |
Mon, 12 Sep 2022 18:49:08 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 298efcdf50bb60f572cab3e7e4a8f1569836581c
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Mon Sep 12 18:32:03 2022 +0200
doc/bytevector-slices: Document slice-X-ref and slice-X-set!.
* doc/bytevector-slice.tm (Reading / modifying bytevector slices):
New section.
---
doc/bytevector-slices.tm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/doc/bytevector-slices.tm b/doc/bytevector-slices.tm
index 27d8a4c..ff27d0a 100644
--- a/doc/bytevector-slices.tm
+++ b/doc/bytevector-slices.tm
@@ -136,6 +136,29 @@
<hlink|IEEE<index|IEEE>
binary64/double<index|binary64><index|double>|https://en.wikipedia.org/wiki/Double-precision_floating-point_format>
format.
</description>
+
+ Except for <scm|u8> and <scm|s8>, <scm|slice-X-ref> can be called as
+ <scm|(slice-X-ref slice <var|index> <var|endian>)>, where <var|slice> is
+ the bytevector slice, <var|index> is the byte index into the slice and
+ <var|endian> is the <dfn|endianness> according to which the bytes of the
+ type are ordered. Endianness is part of <scm|(rnrs bytevectors>). For
+ communication over the network (including communication between clients and
+ services), big-endian (i.e., <scm|(endianness big)>) is almost always used
+ in GNUnet.
+
+ Except for <scm|u8> and <scm|s8>, <scm|slice-X-set!> can be called as
+ <scm|(slice-X-ref slice <var|index> <var|endian> <var|value>)>, where
+ <var|slice>, <var|index> and <var|endian> have the same meaning as for
+ <scm|slice-X-ref>, and <var|value> is the value to set it to.
+
+ <todo|out-of-bounds, range and capabilities exceptions, can <var|value> be
+ a exact for <scm|ieee-double>>
+
+ For <scm|u8> and <scm|s8>, there is only a single byte and hence there is
+ no endianness. As such, <scm|slice-u8-ref>, <scm|slice-u8-set!>,
+ <scm|slice-s8-ref> and <scm|slice-s8-set!> do not have an endianness
+ argument. Aside from that, they behave similarly to the other
+ <scm|slice-X-ref> and <scm|slice-X-set!> procedures.
</body>
<\initial>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] branch master updated (58b0a65 -> c0c1dff), gnunet, 2022/09/12
- [gnunet-scheme] 12/12: tests/distributed-hash-table: Skip a to-be-investigated hanging test., gnunet, 2022/09/12
- [gnunet-scheme] 07/12: doc/bytevector-slices: Document types supported by bytevector slices., gnunet, 2022/09/12
- [gnunet-scheme] 02/12: doc: Document how to construct bytevector slices., gnunet, 2022/09/12
- [gnunet-scheme] 05/12: bv-slice: Add slice-slice to the index., gnunet, 2022/09/12
- [gnunet-scheme] 01/12: bv-slice: Define read-only and write-only variants of bv-slice/read-write., gnunet, 2022/09/12
- [gnunet-scheme] 03/12: bv-slice: Use new bv-slice/read-only bv-slice/write-only where appropriate., gnunet, 2022/09/12
- [gnunet-scheme] 06/12: doc/bytevector-slices: Document the predicates., gnunet, 2022/09/12
- [gnunet-scheme] 11/12: Merge branch 'bytevector-slices', gnunet, 2022/09/12
- [gnunet-scheme] 04/12: bv-slice: Test capabilities of bv-slice/..., gnunet, 2022/09/12
- [gnunet-scheme] 08/12: doc/bytevector-slices: Document slice-X-ref and slice-X-set!.,
gnunet <=
- [gnunet-scheme] 10/12: NEWS: Mention the new bytevector slices documentation., gnunet, 2022/09/12
- [gnunet-scheme] 09/12: doc/bytevector-slices: Document slice-X-ref and slice-X-set! more., gnunet, 2022/09/12