...
When using other languages, the "unflatten from string" operator is not available; in these cases, you can decode the 2D-array fo
The 2D-array is written in memcached as two I32 numbers that report the number of rows and the number o columns of the 2D-array, followed by a series of DBL numbers (ordered line row by linerow). The following example, reports the 2D representation of a 2-rows, 3-cols array with the values: line row 0 = [0,1,2], line row 1 = [10,11,12]
Code Block | ||||
---|---|---|---|---|
| ||||
|< #rows >|< #cols >| a00 | a01 | a02 | a10 | a11 | a12 | | first row | last row | |---------|---------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------| 0000 0002 0000 0003 0000 0000 0000 0000 3FF0 0000 0000 0000 4000 0000 0000 0000 4024 0000 0000 0000 4026 0000 0000 0000 4028 0000 0000 0000 |
...