Home
last modified time | relevance | path

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

12345678910>>...35

/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/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/skia/m133/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"
533 #line 111 "hb-buffer-deserialize-json.rl"
537 _hb_buffer_deserialize_json (hb_buffer_t *buffer, in _hb_buffer_deserialize_json() argument
546 (void) hb_buffer_get_glyph_positions (buffer, nullptr); in _hb_buffer_deserialize_json()
550 if (p < pe && *p == (buffer->len ? ',' : '[')) in _hb_buffer_deserialize_json()
558 #line 559 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json()
563 #line 564 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json()
580 (*p) - _keys[0] : _slen ]; in _hb_buffer_deserialize_json()
589 #line 38 "hb-buffer-deserialize-json.rl" in _hb_buffer_deserialize_json()
[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/protobuf/objectivec/
DGPBWrappers.pbobjc.h1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // clang-format off
11 …rated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
14 …ated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
20 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
26 #pragma mark - GPBWrappersRoot
41 #pragma mark - GPBDoubleValue
50 * The JSON representation for `DoubleValue` is JSON number.
59 #pragma mark - GPBFloatValue
[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/mesa3d/docs/relnotes/
D24.2.5.rst1 Mesa 24.2.5 Release Notes / 2024-10-16
18 -------------
22 SHA256: 733d0bea242ed6a5bb5c806fe836792ce7f092d45a2f115b7b7e15897c9dd96f mesa-24.2.5.tar.xz
23 …171043b87b110bfd7e7a3d6e3632ed768e024ef18b97181c4f6bc377cc7d3eb609dd96ebf6a783e mesa-24.2.5.tar.xz
27 ------------
29 - None
33 ---------
35 - [radeonsi] glLinkProgram terminates the application when Shader is passing Bindless Texture into …
36 - gallium: crash when using images obtained from a texture with a bindless handle
37 - gallium: Crash when writing to writeonly image3D passed in via parameter
[all …]
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 …]
D24.3.2.rst1 Mesa 24.3.2 Release Notes / 2024-12-19
18 -------------
22 SHA256: ad9f5f3a6d2169e4786254ee6eb5062f746d11b826739291205d360f1f3ff716 mesa-24.3.2.tar.xz
23 …91c22720197d5947b598ac2c76773bed8150c91360ee5bbc77f3b48780a19502a8c4224baa728b9 mesa-24.3.2.tar.xz
27 ------------
29 - None
33 ---------
35 - crash on video playback
36 - anv: bellwright needs force_vk_vendor=-1 %command% to launch
37 - Up to 60% perf drop in SynMark DrvRes benchmark
[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 …]
D24.2.1.rst1 Mesa 24.2.1 Release Notes / 2024-08-28
18 -------------
22 SHA256: fc9a495f3a9af906838be89367564e10ef335e058f88965ad49ccc3e9a3b420b mesa-24.2.1.tar.xz
23 …3102aa999d9c9fbb65b873eb537ed4f577b5a0811e7f096e7e101510cb50326ea5c439b4b468380 mesa-24.2.1.tar.xz
27 ------------
29 - None
33 ---------
35 - Artifacts on Black Myth Wukong
36 - DCS world radeon rx 7900 flicker
37 - radv/aco: Scheduler bug in ACO somewhere in parallel-gs
[all …]
D23.1.4.rst1 Mesa 23.1.4 Release Notes / 2023-07-21
18 ---------------
22 7261a17fb94867e3dc5a90d8a1f100fa04b0cbbde51d25302c0872b5e9a10959 mesa-23.1.4.tar.xz
26 ------------
28 - None
32 ---------
34 - radeonsi: Deadlock when creating a new GL context in parallel with linking a shader on another GL…
35 - robustness2 raygen tests intermittently fail in Intel Mesa CI
36 - glthread: huge performance regression
37 - DirectX games do not launch on Intel HD Graphics 4000 (IVB GT2) [bisected]
[all …]
D23.1.6.rst1 Mesa 23.1.6 Release Notes / 2023-08-16
18 ---------------
22 f4c7fd8e7b472a88da7d83e9a48f6f3bd17d4ea2cc4386f7231b796f3964157a mesa-23.1.6.tar.xz
26 ------------
28 - None
32 ---------
34 - nouveau prevents hardware acceleration with Chromium (Wayland)
35 - Corrupt text rendering in Blender
36 - DRI2 gallium frontend is using bad format type
37 - Incorrect vlVaCreateBuffer/vlVaMapBuffer behavior for buffer type VAEncCodedBufferType in Gallium
[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 …]
/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/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/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 …]
/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 …]
/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/vulkan-loader/loader/
DcJSON.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
24 /* JSON parser in C. */
78 #define isinf(d) (isnan((d - d)) && !isnan(d))
86 #define NAN sqrt(-1.0)
93 const unsigned char *json; member
98 CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void) { return (const char *)(global_error.json + glob… in cJSON_GetErrorPtr()
105 return item->valuestring; in loader_cJSON_GetStringValue()
113 return item->valuedouble; in loader_cJSON_GetNumberValue()
116 /* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
137 return tolower(*string1) - tolower(*string2); in case_insensitive_strcmp()
[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")

12345678910>>...35