@@ -136,8 +136,8 @@ Lua versus MsgPack
136
136
- Example value
137
137
* - scalar
138
138
- nil
139
- - `nil `_
140
- - `` nil ` `
139
+ - `cdata `_
140
+ - :ref: ` box.NULL < box-null > `
141
141
* - scalar
142
142
- boolean
143
143
- `boolean `_
@@ -182,10 +182,6 @@ Lua versus MsgPack
182
182
- ext (for Tarantool ``uuid ``)
183
183
- `cdata `_
184
184
- ``12a34b5c-de67-8f90-123g-h4567ab8901 ``
185
- * - scalar
186
- - msgpack.NULL
187
- - `cdata `_
188
- - :ref: `box.NULL <box-null >`
189
185
* - compound
190
186
- map
191
187
- `table `_ (with string keys)
@@ -199,18 +195,22 @@ Lua versus MsgPack
199
195
- tuple (`cdata `_)
200
196
- ``[12345, 'A B C'] ``
201
197
198
+ .. _boolean : http://www.lua.org/pil/2.2.html
199
+ .. _string : http://www.lua.org/pil/2.4.html
200
+ .. _number : http://www.lua.org/pil/2.3.html
201
+ .. _table : http://www.lua.org/pil/2.5.html
202
+ .. _cdata : http://luajit.org/ext_ffi.html#call
203
+
202
204
.. note ::
203
205
204
206
MsgPack values have variable lengths.
205
207
So, for example, the smallest number requires only one byte, but the largest number
206
208
requires nine bytes.
207
209
208
- .. _nil : http://www.lua.org/pil/2.1.html
209
- .. _boolean : http://www.lua.org/pil/2.2.html
210
- .. _string : http://www.lua.org/pil/2.4.html
211
- .. _number : http://www.lua.org/pil/2.3.html
212
- .. _table : http://www.lua.org/pil/2.5.html
213
- .. _cdata : http://luajit.org/ext_ffi.html#call
210
+ .. note ::
211
+
212
+ The Lua `nil <http://www.lua.org/pil/2.1.html >`_ type is encoded as MsgPack ``nil `` but
213
+ decoded as :ref: `msgpack.NULL <box-null >`.
214
214
215
215
.. _index_box_field_type_details :
216
216
0 commit comments