Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
To use the <<ref_parser>>, declare an instance. Then call <<ref_parser_write>> once with the buffer containing representing the input JSON. Finally, call <<ref_parser_release>> to take ownership of the resulting <<ref_value>> upon success. This example persists the parser instance in a class member to reuse across calls:要使用 <<ref_parser>>,先声明一个实例。然后调用 <<ref_parser_write>> 一次,传入包含输入 JSON 的缓冲区。最后,在成功时调用 <<ref_parser_release>> 以获取生成的 <<ref_value>> 的所有权。以下示例将解析器实例作为类成员保存,以便在多次调用间复用:</ref_value></ref_parser_release></ref_parser_write></ref_parser>