|
1 | 1 | /** |
2 | | - * json-bufferify 0.1.2 |
3 | | - * Date: 2017-11-13 |
4 | | - * © 2017 LangZhai(智能小菜菜) |
| 2 | + * json-bufferify 0.2.0 |
| 3 | + * Date: 2020-10-13 |
| 4 | + * © 2017-2020 LangZhai(智能小菜菜) |
5 | 5 | * This is licensed under the GNU LGPL, version 3 or later. |
6 | 6 | * For details, see: https://www.gnu.org/licenses/lgpl.html |
7 | 7 | * Project home: https://github.com/LangZhai/json-bufferify |
|
68 | 68 | }; |
69 | 69 |
|
70 | 70 | /** |
71 | | - * Convert JSON to ArrayBuffer. |
| 71 | + * Convert JSON data to ArrayBuffer. |
72 | 72 | * @param {number} offset The start of the DataView where to store the data. |
73 | 73 | * @param {Object} data The JSON data. |
74 | 74 | * @return {DataView} The DataView of the ArrayBuffer. |
|
83 | 83 | }; |
84 | 84 |
|
85 | 85 | /** |
86 | | - * Inner function to Convert JSON to ArrayBuffer. |
| 86 | + * Inner function to Convert JSON data to ArrayBuffer. |
87 | 87 | * @param {number} offset The start of the DataView where to store the data. |
88 | 88 | * @param {Array} arr The data Array which for use in function 'encode'. |
89 | 89 | * @param {Object} data The JSON data. |
|
155 | 155 | }; |
156 | 156 |
|
157 | 157 | /** |
158 | | - * Revert ArrayBuffer to JSON. |
| 158 | + * Revert JSON data from ArrayBuffer. |
159 | 159 | * @param {number} offset The start of the DataView where to read the data. |
160 | | - * @param {Object} template The template of the JSON. |
| 160 | + * @param {Object} template The template of the JSON data. |
161 | 161 | * @param {(ArrayBuffer|Buffer|DataView)} source The ArrayBuffer, or the Buffer in Node.js, or the DataView of the ArrayBuffer. |
162 | 162 | * @return {Object} The JSON data. |
163 | 163 | */ |
|
167 | 167 | }; |
168 | 168 |
|
169 | 169 | /** |
170 | | - * Inner function to Revert ArrayBuffer to JSON. |
| 170 | + * Inner function to Revert JSON data from ArrayBuffer. |
171 | 171 | * @param {number} offset The start of the DataView where to read the data. |
172 | | - * @param {Object} template The template of the JSON. |
| 172 | + * @param {Object} template The template of the JSON data. |
173 | 173 | * @param {(ArrayBuffer|Buffer|DataView)} source The ArrayBuffer, or the Buffer in Node.js, or the DataView of the ArrayBuffer. |
174 | 174 | * @return {number} The start of the next call. |
175 | 175 | */ |
|
0 commit comments