@@ -22,7 +22,7 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
22
22
23
23
``MP_DECIMAL `` type is 1.
24
24
25
- `MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
25
+ `MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
26
26
defines two kinds of types:
27
27
28
28
* ``fixext 1/2/4/8/16 `` types have fixed length so the length is not encoded explicitly.
@@ -110,7 +110,7 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
110
110
111
111
``MP_UUID `` type is 2.
112
112
113
- The `MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
113
+ The `MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
114
114
defines ``d8 `` to mean ``fixext `` with size 16, and a UUID's size is always 16.
115
115
So the UUID MessagePack representation looks like this:
116
116
@@ -251,12 +251,12 @@ The DATETIME type
251
251
Since version :doc: `2.10.0 </release/2.10.0 >`.
252
252
The MessagePack EXT type ``MP_EXT `` together with the extension type
253
253
``MP_DATETIME `` is a header for values of the DATETIME type.
254
- It creates a container of 8 or 16 bytes long payload .
254
+ It creates a container with a payload of 8 or 16 bytes.
255
255
256
256
``MP_DATETIME `` type is 4.
257
257
258
- The `MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
259
- defines ``d7``to mean ``fixext `` with size 8 or ``d8 `` to mean ``fixext `` with size 16.
258
+ The `MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md >`_
259
+ defines ``d7 `` to mean ``fixext `` with size 8 or ``d8 `` to mean ``fixext `` with size 16.
260
260
261
261
So the datetime MessagePack representation looks like this:
262
262
@@ -269,13 +269,13 @@ So the datetime MessagePack representation looks like this:
269
269
270
270
MessagePack data contains:
271
271
272
- * Seconds (8b ) as full, unencoded, signed 64-bit integer, stored in little-endian order.
272
+ * Seconds (8 bytes ) as an unencoded 64-bit signed integer stored in the little-endian order.
273
273
274
- * The optional fields (8b ), if any of them have a non-zero value.
275
- The fields include nsec, tzoffset, and tzindex, packed in little-endian order.
274
+ * The optional fields (8 bytes ), if any of them have a non-zero value.
275
+ The fields include `` nsec ``, `` tzoffset `` , and `` tzindex `` packed in the little-endian order.
276
276
277
- For more information about datetime, see :ref: `datetime field type details <index-box_datetime >`
278
- and :doc: `module datetime </reference/reference_lua/datetime >`.
277
+ For more information about the datetime type , see :ref: `datetime field type details <index-box_datetime >`
278
+ and :doc: `reference for the datetime module </reference/reference_lua/datetime >`.
279
279
280
280
.. _msgpack_ext-interval :
281
281
@@ -289,8 +289,8 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
289
289
290
290
``MP_INTERVAL `` type is 6.
291
291
292
- The interval is saved as variant of a map with predefined number of known attributes names.
293
- Some attributes might be undefined. In this case , they will be omitted from the generated payload.
292
+ The interval is saved as a variant of a map with a predefined number of known attribute names.
293
+ If some attributes are undefined, they are omitted from the generated payload.
294
294
295
295
The interval MessagePack representation looks like this:
296
296
@@ -302,8 +302,8 @@ The interval MessagePack representation looks like this:
302
302
303
303
Packed interval consists of:
304
304
305
- * packed number of non-zero fields
306
- * packed non-null fields
305
+ * Packed number of non-zero fields.
306
+ * Packed non-null fields.
307
307
308
308
Each packed field has the following structure:
309
309
@@ -330,7 +330,7 @@ List of the field IDs:
330
330
331
331
**Example **
332
332
333
- Interval value ``1 year , 200 months, -77 days `` is encoded in the following way:
333
+ Interval value ``1 years , 200 months, -77 days `` is encoded in the following way:
334
334
335
335
.. code-block :: tarantoolsession
336
336
@@ -343,7 +343,7 @@ Interval value ``1 year, 200 months, -77 days`` is encoded in the following way:
343
343
- +1 years, 200 months, -77 days
344
344
...
345
345
346
- tarantool> M = msgpak .encode(I)
346
+ tarantool> M = msgpack .encode(I)
347
347
---
348
348
...
349
349
@@ -376,5 +376,5 @@ Where:
376
376
* 08 -- field ID (adjust)
377
377
* 01 -- packed value ``1 `` (DT_LIMIT)
378
378
379
- For more information about intervals , see :ref: `interval field type details <index-box_interval >`
380
- and :doc: `module datetime </reference/reference_lua/datetime >`.
379
+ For more information about the interval type , see :ref: `interval field type details <index-box_interval >`
380
+ and :doc: `description of the datetime module </reference/reference_lua/datetime >`.
0 commit comments