Home
last modified time | relevance | path

Searched +full:json +full:- +full:buffer (Results 1 – 25 of 685) sorted by relevance

12345678910>>...28

/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-buffer-deserialize-json.hh2 #line 1 "hb-buffer-deserialize-json.rl"
35 #line 36 "hb-buffer-deserialize-json.hh"
484 #line 108 "hb-buffer-deserialize-json.rl"
488 _hb_buffer_deserialize_json (hb_buffer_t *buffer, in _hb_buffer_deserialize_json() argument
497 (void) hb_buffer_get_glyph_positions (buffer, nullptr); in _hb_buffer_deserialize_json()
501 if (p < pe && *p == (buffer->len ? ',' : '[')) in _hb_buffer_deserialize_json()
511 #line 512 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json()
516 #line 517 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json()
533 (*p) - _keys[0] : _slen ]; in _hb_buffer_deserialize_json()
542 #line 38 "hb-buffer-deserialize-json.rl" in _hb_buffer_deserialize_json()
[all …]
/third_party/mindspore/mindspore-src/source/tests/ut/python/dataset/
Dtest_datasets_clue.py1 # Copyright 2020-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
26 train_file = '../data/dataset/testCLUE/afqmc/train.json'
28 buffer = []
33 buffer.append({
38 assert len(buffer) == 3
47 train_file = '../data/dataset/testCLUE/afqmc/train.json'
49 buffer = []
52 buffer.append({
57 assert len(buffer) == 1
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
Dframe_capture_utils.cpp3 // Use of this source code is governed by a BSD-style license that can be
18 #include "libANGLE/Buffer.h"
111 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope() argument
113 mJson->startGroup(name); in GroupScope()
116 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope() argument
121 mJson->startGroup(buf); in GroupScope()
124 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope() argument
126 ~GroupScope() { mJson->endGroup(); } in ~GroupScope()
132 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF() argument
134 json->addScalar("red", color.red); in SerializeColorF()
[all …]
/third_party/cJSON/tests/
Dparse_array.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
45 static void assert_not_array(const char *json) in assert_not_array() argument
47 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_not_array() local
48 buffer.content = (const unsigned char*)json; in assert_not_array()
49 buffer.length = strlen(json) + sizeof(""); in assert_not_array()
50 buffer.hooks = global_hooks; in assert_not_array()
52 TEST_ASSERT_FALSE(parse_array(item, &buffer)); in assert_not_array()
56 static void assert_parse_array(const char *json) in assert_parse_array() argument
58 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_parse_array() local
59 buffer.content = (const unsigned char*)json; in assert_parse_array()
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-purify.h2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
25 /*! \defgroup pur Sanitize / purify SQL and JSON helpers
27 * ##Sanitize / purify SQL and JSON helpers
29 * APIs for escaping untrusted JSON and SQL safely before use
34 * lws_sql_purify() - like strncpy but with escaping for sql quotes
36 * \param escaped: output buffer
37 * \param string: input buffer ('/0' terminated)
38 * \param len: output buffer max length
41 * possible to do it in-place, ie, with escaped == string
[all …]
Dlws-jwk.h2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
25 /*! \defgroup jwk JSON Web Keys
26 * ## JSON Web Keys API
28 * Lws provides an API to parse JSON Web Keys into a struct lws_gencrypto_keyelem.
72 /** lws_jwk_import() - Create a JSON Web key from the textual representation
75 * \param cb: callback for each jwk-processed key, or NULL if importing a single
76 * key with no parent "keys" JSON
78 * NULL if importing a single key with no parent "keys" JSON
79 * \param in: a single JWK JSON stanza in utf-8
[all …]
/third_party/protobuf/objectivec/
DGPBWrappers.pbobjc.h1 // Generated by the protocol buffer compiler. DO NOT EDIT!
21 …rated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
24 …ated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
30 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
36 #pragma mark - GPBWrappersRoot
51 #pragma mark - GPBDoubleValue
60 * The JSON representation for `DoubleValue` is JSON number.
69 #pragma mark - GPBFloatValue
78 * The JSON representation for `FloatValue` is JSON number.
87 #pragma mark - GPBInt64Value
[all …]
/third_party/mesa3d/docs/relnotes/
D22.2.1.rst1 Mesa 22.2.1 Release Notes / 2022-10-11
18 ---------------
22 0079beac0a33f45e7e0aec59e6913eafbc4268a3f1e2e330017440494f91b13c mesa-22.2.1.tar.xz
27 ------------
29 - None
33 ---------
35 - r600: Shadows incorrecly rendered on Counter-Strike: Global Offensive with the NIR backend
36 - radeonsi/radv: Discrepancy in handling wd_switch_on_eop
37 - Shadows rendering issue in Deathloop
38 - RADV: Regression with RPCS3 where nothing renders
[all …]
D22.1.3.rst1 Mesa 22.1.3 Release Notes / 2022-06-29
18 ---------------
22 b98f32ba7aa2a1ff5725fb36eb999c693079f0ca16f70aa2f103e2b6c3f093e3 mesa-22.1.3.tar.xz
26 ------------
28 - None
32 ---------
34 - [Crocus] - Minecraft with Forge and JourneyMap - Graphical glitches
35 - intel - Minecraft char bar is broken after Mesa upgrade
36 - [wine] RAGE: texture problems
37 - "Unsupported modifier, resource creation failed." on stderr
[all …]
D21.2.5.rst1 Mesa 21.2.5 Release Notes / 2021-10-28
18 ---------------
22 8e49585fb760d973723dab6435d0c86f7849b8305b1e6d99f475138d896bacbb mesa-21.2.5.tar.xz
26 ------------
28 - None
32 ---------
34 - RADV: Resident Evil Village needs invariantgeom when NGG culling is enabled
35 - [radeonsi] Euro Truck Simulator 2: broken mimimap
36 - [regression][bisected] Launching Valheim OpenGL game leads to GPU Hang
37 - Android Meson build regression: hardware/system information apps crash on Raspberry Pi 4
[all …]
D20.0.5.rst1 Mesa 20.0.5 Release Notes / 2020-04-22
20 ---------------
24 2c56a82a28cc924e40ea49752abdf1d701c9952481f53cbc7a080271597f572e mesa-20.0.5.tar.xz
27 ------------
30 ---------
32 - nir: nir_lower_returns can't handle nested loops
33 - Graphic artifacts with Mesa 20.0.4 on intel HD 510 GPU
34 - Mesa 20 regression makes Lightsprint demos crash
35 - Build Fails with Clang Shared Library
36 - dri_common.h:58:8: error: unknown type name '__GLXDRIdrawable'
[all …]
D22.2.4.rst1 Mesa 22.2.4 Release Notes / 2022-11-16
18 ---------------
26 ------------
28 - None
32 ---------
34 - clover: windows: library filename has \`-1` suffix and a \`lib` prefix when built with mingw
35 - radv, dxvk: Rendering errors in World of Tanks after "Switch to dynamic rendering only"
36 - gen9 gt3e/gt4e skus fail dEQP-VK.pipeline.multisample.sample_locations_ext.*
37 - v3d: Wrong colors (pink) in videos in Firefox (likely YUV->RGB shader issue)
38 - panfrost t860 glmark-es2 regression
[all …]
/third_party/pulseaudio/src/pulsecore/
Djson.c27 #include <pulsecore/core-util.h>
29 #include <pulsecore/json.h>
42 pa_hashmap *object_values; /* name -> object */
47 /* JSON encoder context type */
49 /* Top-level context of empty encoder. JSON element can be added. */
51 /* Top-level context of encoder with an element. JSON element cannot be added. */
53 /* JSON array context. JSON elements can be added. */
55 /* JSON object context. JSON object members can be added. */
65 /* JSON encoder structure, a wrapper for pa_strbuf and encoder context */
67 pa_strbuf *buffer; member
[all …]
/third_party/flatbuffers/tests/
DphpTest.php18 // This file was generated from monsterdata_test.json
31 // We set up the same values as monsterdata.json:
32 $str = $fbb->createString("MyMonster");
33 $name = $fbb->createString('Fred');
40 $fred = $fbb->createString('Fred');
48 $test4 = $fbb->endVector();
51 $fbb->createString('test1'),
52 $fbb->createString('test2')
76 test_buffer($assert, $fbb->dataBuffer());
89 …ption '%s' with message '%s. in %s:%d\n", get_class($e), $e->getMessage(), $e->getFile(), $e->getL…
[all …]
/third_party/flatbuffers/docs/source/
DCsharpUsage.md1 Use in C# {#flatbuffers_guide_use_c-sharp}
29 You can build for a specific framework target when using the cross-platform
30 [.NET Core SDK](https://dotnet.microsoft.com/download) by adding the `-f`
34 dotnet build -f netstandard2.1 "FlatBuffers.csproj"
39 below) using the `-p` command line option:
42 …dotnet build -f netstandard2.1 -p:ENABLE_SPAN_T=true -p:UNSAFE_BYTEBUFFER=true "FlatBuffers.csproj"
54 Optionally, you can run this using [Mono](http://www.mono-project.com/) instead.
65 *Note: See [Tutorial](@ref flatbuffers_guide_tutorial) for a more in-depth
71 schema with the `--csharp` option to `flatc`.
101 The performance-enhancing methods to which you can pass an already created
[all …]
DCppUsage.md21 compiler (e.g. `flatc -c mygame.fbs`), you can now start using this in
46 *Note: See [Tutorial](@ref flatbuffers_guide_tutorial) for a more in-depth
52 schema with the `--cpp` option to `flatc`. Then you can include both FlatBuffers
79 buffer (root object pointers are not the same as `buffer_pointer` \!).
84 std::cout << "hp : " << monster->hp() << std::endl; // '80'
85 std::cout << "mana : " << monster->mana() << std::endl; // default value of '150'
86 std::cout << "name : " << monster->name()->c_str() << std::endl; // "MyMonster"
93 - `shared` (on a field): For string fields, this enables the usage of string
103 (requiring pre-order construction of all data, and making mutation harder).
106 can be used (through `--gen-object-api`) that is able to unpack & pack a
[all …]
DFlatBuffers.md9 performance-critical applications.
16 - **Access to serialized data without parsing/unpacking** - What sets
18 binary buffer in such a way that it can still be accessed directly
22 - **Memory efficiency and speed** - The only memory needed to access
23 your data is that of the buffer. It requires 0 additional allocations
26 buffer to be in memory. Access is close to the speed of raw
34 - **Flexible** - Optional fields means not only do you get great
36 long-lived games: don't have to update all data with each new
40 - **Tiny code footprint** - Small amounts of generated code, and just
44 - **Strongly typed** - Errors happen at compile time rather than
[all …]
/third_party/vulkan-loader/
DREADME_OpenHarmony.md1 # Vulkan-Loader
3 本仓库包含开源软件Vulkan-Loader,为OpenHarmony提供对Vulkan的支持能力。
9 Vulkan-Loader会加载这些API的实现并对外提供这些接口给应用开发者使用。Vulkan-Loader安装在`/system/lib[64]/libvulkan.so`中。
11 Vulkan-Loader主要功能概括如下:
19 ![vulkan-loader_location_in_OH](openharmony/imgs/vulkan-loader_location_in_OH.png)
24 在OpenHarmony上,Vulkan-Loader会扫描指定路径下的GPU驱动的**json清单文件**并读取该文件加载GPU驱动。
35 Vulkan-Loader会根据GPU驱动的**json清单文件**中配置的`library_path`找到GPU驱动的动态链接库文件(.so文件)并加载。
39 ```json
51 详细介绍请见:[Driver Manifest File Format](docs/LoaderDriverInterface.md#driver-manifest-file-format)
55 …档:[LoaderDriverInterface](docs/LoaderDriverInterface.md),开发者需要按照文档里的要求实现对应的接口才能够被Vulkan-Loader正确加载。
[all …]
/third_party/flatbuffers/tests/ts/
DJavaScriptTestv1.cjs11 // This file was generated from monsterdata_test.json
35 // the capacity of our buffer shouldn't increase with the same size payload
46 // We set up the same values as monsterdata.json:
84 // Note that the binaries are not necessarily identical, since the JSON
88 fs.writeFileSync('monsterdata_javascript_wire.mon', new Buffer(fbb.asUint8Array()));
91 // part of the byte buffer.
209 var json = JSON.parse(fs.readFileSync('../unicode_test.json', 'utf8'));
214 assert.strictEqual(monster.name(), json.name);
215 …assert.deepEqual(new Buffer(monster.name(flatbuffers.Encoding.UTF8_BYTES)), new Buffer(json.name));
216 assert.strictEqual(monster.testarrayoftablesLength(), json.testarrayoftables.length);
[all …]
DJavaScriptTest.js6 import { Monster, MonsterT } from './my-game/example/monster.js'
7 import { Test, TestT } from './my-game/example/test.js'
8 import { Stat } from './my-game/example/stat.js'
9 import { Vec3 } from './my-game/example/vec3.js'
10 import { Color } from './my-game/example/color.js';
11 import { Any } from './my-game/example/any.js';
16 // This file was generated from monsterdata_test.json
42 // the capacity of our buffer shouldn't increase with the same size payload
57 // We set up the same values as monsterdata.json:
101 // Note that the binaries are not necessarily identical, since the JSON
[all …]
/third_party/flatbuffers/samples/
Dsample_text.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
23 // This is an example of parsing text straight into a buffer and then
24 // generating flatbuffer (JSON) text from the buffer.
26 // load FlatBuffer schema (.fbs) and JSON from disk in main()
30 flatbuffers::LoadFile("samples/monsterdata.json", false, &jsonfile); in main()
43 // here, parser.builder_ contains a binary buffer that is the parsed data. in main()
49 printf("Couldn't serialize parsed data to JSON!\n"); in main()
54 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in main()
57 printf("The FlatBuffer has been parsed from JSON successfully.\n"); in main()
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/ps/core/communicator/
Dhttp_message_handler.cc8 * http://www.apache.org/licenses/LICENSE-2.0
20 #include <event2/buffer.h>
77 size_t len = evbuffer_get_length(event_request_->input_buffer); in ParsePostParam()
82 … *post_message = reinterpret_cast<const char *>(evbuffer_pullup(event_request_->input_buffer, -1)); in ParsePostParam()
86 int ret = evhttp_parse_query_str(post_message_->c_str(), &post_params_); in ParsePostParam()
87 if (ret == -1) { in ParsePostParam()
97 size_t len = evbuffer_get_length(event_request_->input_buffer); in ParsePostMessageToJson()
106 auto buffer = evbuffer_pullup(event_request_->input_buffer, -1); in ParsePostMessageToJson() local
107 if (buffer == nullptr) { in ParsePostMessageToJson()
113 if (memcpy_s(message.data(), dest_size, buffer, src_size) != EOK) { in ParsePostMessageToJson()
[all …]
/third_party/gn/src/gn/
Dinput_conversion.cc2 // Use of this source code is governed by a BSD-style license that can be
11 #include "base/json/json_reader.h"
45 g_scheduler->input_file_manager()->AddDynamicInput(SourceFile(), &input_file, in ParseValueOrScope()
48 input_file->SetContents(input); in ParseValueOrScope()
54 input_file->set_friendly_name("dynamically parsed input that " + in ParseValueOrScope()
55 origin->GetRange().begin().Describe(true) + in ParseValueOrScope()
58 input_file->set_friendly_name("dynamic input"); in ParseValueOrScope()
62 if (err->has_error()) in ParseValueOrScope()
70 if (err->has_error()) in ParseValueOrScope()
72 ParseNode* parse_root = parse_root_ptr->get(); // For nicer syntax below. in ParseValueOrScope()
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/config/chunkindex/
Dbuild-index.js3 // SPDX-License-Identifier: Apache-2.0
8 buffer = [] variable
14 buffer.push(data)
18 var documents = JSON.parse(buffer.join(''))
30 stdout.write("var searchindex = " + JSON.stringify(idx) + ";\n")
38 stdout.write("var searchlookup = " + JSON.stringify(searchlookup) + ";\n")
/third_party/cJSON/
DREADME.md3 Ultralightweight JSON parser in ANSI C.
8 * [Welcome to cJSON](#welcome-to-cjson)
10 * [Copying the source](#copying-the-source)
15 * [Including cJSON](#including-cjson)
16 * [Data Structure](#data-structure)
17 * [Working with the data structure](#working-with-the-data-structure)
18 * [Basic types](#basic-types)
21 * [Parsing JSON](#parsing-json)
22 * [Printing JSON](#printing-json)
27 * [Zero Character](#zero-character)
[all …]

12345678910>>...28