/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | Utf8Test.java | 1 // Protocol Buffers - Google's data interchange format 101 private static void assertIsValid(byte[] data, boolean valid) { in assertIsValid() argument 102 assertEquals("isValidUtf8[ARRAY]", valid, safeProcessor.isValidUtf8(data, 0, data.length)); in assertIsValid() 104 "isValidUtf8[ARRAY_UNSAFE]", valid, unsafeProcessor.isValidUtf8(data, 0, data.length)); in assertIsValid() 106 ByteBuffer buffer = ByteBuffer.wrap(data); in assertIsValid() 113 buffer = ByteBuffer.allocateDirect(data.length); in assertIsValid() 114 buffer.put(data); in assertIsValid()
|
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | unknown_fields.cc | 1 // Protocol Buffers - Google's data interchange format 277 PyObject* data = NULL; in GetData() local 280 data = PyInt_FromLong(field->varint()); in GetData() 283 data = PyInt_FromLong(field->fixed32()); in GetData() 286 data = PyInt_FromLong(field->fixed64()); in GetData() 289 data = PyBytes_FromStringAndSize(field->length_delimited().data(), in GetData() 293 data = PyUnknownFields_FromUnknownFieldSet( in GetData() 297 return data; in GetData() 309 {"data", (gette [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | taxonomy.c | 54 const u8 *data, size_t data_len) in get_wps_name() 62 id = WPA_GET_BE16(data); in get_wps_name() 63 elen = WPA_GET_BE16(data + 2); in get_wps_name() 64 data += 4; in get_wps_name() 73 no_mischief_strncpy(name, (const char *) data, n); in get_wps_name() 77 data += elen; in get_wps_name() 139 const u8 *data = &ie[4]; in ie_to_string() local 143 if (get_wps_name(model_name, WPS_NAME_LEN, data, in ie_to_string() 53 get_wps_name(char *name, size_t name_len, const u8 *data, size_t data_len) get_wps_name() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | taxonomy.c | 54 const u8 *data, size_t data_len) in get_wps_name() 62 id = WPA_GET_BE16(data); in get_wps_name() 63 elen = WPA_GET_BE16(data + 2); in get_wps_name() 64 data += 4; in get_wps_name() 73 no_mischief_strncpy(name, (const char *) data, n); in get_wps_name() 77 data += elen; in get_wps_name() 139 const u8 *data = &ie[4]; in ie_to_string() local 143 if (get_wps_name(model_name, WPS_NAME_LEN, data, in ie_to_string() 53 get_wps_name(char *name, size_t name_len, const u8 *data, size_t data_len) get_wps_name() argument
|
/third_party/zlib/contrib/dotzlib/DotZLib/ |
H A D | UnitTests.cs | 101 byte[] data = { 1,2,3,4,5,6,7 };
in CRC32_Data() 102 crc32.Update(data);
in CRC32_Data() 135 byte[] data = { 1,2,3,4,5,6,7 };
in Adler_Data() 136 adler.Update(data);
in Adler_Data() 186 public void CDataAvail(byte[] data, int startIndex, int count)
in CDataAvail() argument 189 compressedData.Add(data[i+startIndex]);
in CDataAvail() 220 private void DDataAvail(byte[] data, int startIndex, int count)
in DDataAvail() argument 223 uncompressedData.Add(data[i+startIndex]);
in DDataAvail()
|
/third_party/curl/tests/http/clients/ |
H A D | h2-pausing.c | 62 char *data, size_t size, in debug_cb() 93 if(data[i] == '\n') { /* LF */ in debug_cb() 97 (void)fwrite(data + st, i - st + 1, 1, output); in debug_cb() 104 (void)fwrite(data + st, i - st + 1, 1, output); in debug_cb() 106 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 113 (void)fwrite(data, size, 1, output); in debug_cb() 114 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 124 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb() 152 static size_t cb(void *data, size_t size, size_t nmemb, void *clientp) in cb() argument 158 (void)data; in cb() 61 debug_cb(CURL *handle, curl_infotype type, char *data, size_t size, void *userdata) debug_cb() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | eacmv.c | 63 unsigned char *dst = frame->data[0]; in cmv_decode_intra() 102 unsigned char *dst = frame->data[0] + (y*4)*frame->linesize[0] + x*4; in cmv_decode_inter() 113 if (s->last2_frame->data[0]) in cmv_decode_inter() 114 cmv_motcomp(frame->data[0], frame->linesize[0], in cmv_decode_inter() 115 s->last2_frame->data[0], s->last2_frame->linesize[0], in cmv_decode_inter() 122 if (s->last_frame->data[0]) in cmv_decode_inter() 123 cmv_motcomp(frame->data[0], frame->linesize[0], in cmv_decode_inter() 124 s->last_frame->data[0], s->last_frame->linesize[0], in cmv_decode_inter() 175 const uint8_t *buf = avpkt->data; in cmv_decode_frame() 200 memcpy(frame->data[ in cmv_decode_frame() [all...] |
H A D | imm5.c | 93 if (avpkt->size > 24 && avpkt->data[8] <= 1 && AV_RL32(avpkt->data + 4) + 24ULL <= avpkt->size) { in imm5_decode_frame() 94 int codec_type = avpkt->data[1]; in imm5_decode_frame() 95 int index = avpkt->data[10]; in imm5_decode_frame() 96 int new_size = AV_RL32(avpkt->data + 4); in imm5_decode_frame() 120 avpkt->data += 24 - offset; in imm5_decode_frame() 123 memcpy(avpkt->data, IMM5_units[index].bits, IMM5_units[index].len); in imm5_decode_frame() 125 memcpy(avpkt->data + off, IMM5_units[12].bits, IMM5_units[12].len); in imm5_decode_frame() 127 memcpy(avpkt->data + off, IMM5_units[13].bits, IMM5_units[13].len); in imm5_decode_frame() 130 avpkt->data in imm5_decode_frame() [all...] |
/third_party/ffmpeg/libavresample/tests/ |
H A D | avresample.c | 42 static void put_sample_ ## name(void **data, enum AVSampleFormat sample_fmt,\ 47 type **out = (type **)data; \ 60 static void put_sample(void **data, enum AVSampleFormat sample_fmt, in put_sample() argument 65 put_sample_u8(data, sample_fmt, channels, sample, ch, v_dbl); in put_sample() 68 put_sample_s16(data, sample_fmt, channels, sample, ch, v_dbl); in put_sample() 71 put_sample_s32(data, sample_fmt, channels, sample, ch, v_dbl); in put_sample() 74 put_sample_flt(data, sample_fmt, channels, sample, ch, v_dbl); in put_sample() 77 put_sample_dbl(data, sample_fmt, channels, sample, ch, v_dbl); in put_sample() 82 static void audiogen(AVLFG *rnd, void **data, enum AVSampleFormat sample_fmt, in audiogen() argument 91 #define PUT_SAMPLE put_sample(data, sample_fm in audiogen() [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | hap.mak | 50 tests/data/hapq_nosnappy.mov: TAG = GEN 51 tests/data/hapq_nosnappy.mov: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data 56 tests/data/hapalphaonly_nosnappy.mov: TAG = GEN 57 tests/data/hapalphaonly_nosnappy.mov: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data 64 fate-hapqa-extract-nosnappy-to-hapq-mov: tests/data/hapq_nosnappy.mov 65 fate-hapqa-extract-nosnappy-to-hapq-mov: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_packets -show_data_hash adler32 -bitexact -show_streams -select_streams v -v 0 $(TARGET_PATH)/tests/data/hapq_nosnappy.mov 68 fate-hapqa-extract-nosnappy-to-hapalphaonly-mov: tests/data/hapalphaonly_nosnappy.mov 69 fate-hapqa-extract-nosnappy-to-hapalphaonly-mov: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_packets -show_data_hash adler32 -bitexact -show_streams -select_streams v -v 0 $(TARGET_PATH)/tests/data/hapalphaonly_nosnapp [all...] |
/third_party/fsverity-utils/lib/ |
H A D | compute_digest.c | 22 u8 *data; member 34 memset(&cur->data[cur->filled], 0, block_size - cur->filled); in hash_one_block() 38 libfsverity_hash_update(hash, cur->data, block_size); in hash_one_block() 39 libfsverity_hash_final(hash, &next->data[next->filled]); in hash_one_block() 72 int err = cbs->merkle_tree_block(cbs->ctx, block->data, in report_merkle_tree_block() 169 * Allocate the block buffers. Buffer "-1" is for data blocks. in compute_root_hash() 174 buffers[level].data = libfsverity_zalloc(block_size); in compute_root_hash() 175 if (!buffers[level].data) { in compute_root_hash() 180 buffers[num_levels].data = root_hash; in compute_root_hash() 182 /* Hash each data bloc in compute_root_hash() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | rbt_rule.cpp | 69 data(theData) { in TransliterationRule() 122 false, *data); in TransliterationRule() 133 false, *data); in TransliterationRule() 145 false, *data); in TransliterationRule() 153 this->output = new StringReplacer(outputStr, cursorPosition + cursorOffset, data); in TransliterationRule() 173 data(other.data) { in TransliterationRule() 228 return (int16_t)(data->lookupMatcher(c) == NULL ? (c & 0xFF) : -1); in getIndexValue() 363 // Reset segment match data in matchAndReplace() 520 data in setData() [all...] |
/third_party/lzma/CPP/7zip/Crypto/ |
H A D | 7zAes.cpp | 246 Z7_COM7F_IMF(CDecoder::SetDecoderProperties2(const Byte *data, UInt32 size))
in SetDecoderProperties2() argument 258 Byte b0 = data[0];
in SetDecoderProperties2() 267 Byte b1 = data[1];
in SetDecoderProperties2() 275 data += 2;
in SetDecoderProperties2() 277 _key.Salt[i] = *data++;
in SetDecoderProperties2() 279 _iv[i] = *data++;
in SetDecoderProperties2() 285 Z7_COM7F_IMF(CBaseCoder::CryptoSetPassword(const Byte *data, UInt32 size))
in CryptoSetPassword() argument 290 _key.Password.CopyFrom(data, (size_t)size);
in CryptoSetPassword() 312 Z7_COM7F_IMF2(UInt32, CBaseCoder::Filter(Byte *data, UInt32 size))
in Z7_COM7F_IMF2() argument 314 return _aesFilter->Filter(data, siz in Z7_COM7F_IMF2() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_large_constants.c | 40 /* If is_constant, hold the collected constant data for this var. */ 78 assert(var->data.location % var_align == 0); in build_constant_load() 86 .base = var->data.location, in build_constant_load() 158 /** Lower large constant variables to shader constant data 161 * which are statically constant and moves them into shader constant data. 208 deref->var->data.mode == nir_var_function_temp && in nir_opt_large_constants() 246 assert(var->data.mode == nir_var_function_temp); in nir_opt_large_constants() 274 assert(var->data.mode == nir_var_function_temp); in nir_opt_large_constants() 291 /* Allocate constant data space for each variable that just has constant in nir_opt_large_constants() 292 * data in nir_opt_large_constants() [all...] |
H A D | nir_lower_io_to_temporaries.c | 63 if (src->data.mode == nir_var_shader_out && in emit_copies() 64 !src->data.fb_fetch_output) in emit_copies() 71 if (dest->data.read_only) in emit_copies() 238 nir_variable *input = entry->data; in fixup_interpolation_instr() 294 nvar->data.cannot_coalesce = true; in create_shadow_temp() 305 const char *mode = (temp->data.mode == nir_var_shader_in) ? "in" : "out"; in create_shadow_temp() 307 temp->data.mode = nir_var_shader_temp; in create_shadow_temp() 308 temp->data.read_only = false; in create_shadow_temp() 309 temp->data.fb_fetch_output = false; in create_shadow_temp() 310 temp->data in create_shadow_temp() [all...] |
H A D | nir_lower_drawpixels.c | 49 if (var->data.location == VARYING_SLOT_TEX0) { in get_texcoord() 61 texcoord->data.location = VARYING_SLOT_TEX0; in get_texcoord() 135 state->tex->data.binding = state->options->drawpix_sampler; in lower_color() 136 state->tex->data.explicit_binding = true; in lower_color() 137 state->tex->data.how_declared = nir_var_hidden; in lower_color() 173 state->pixelmap->data.binding = state->options->pixelmap_sampler; in lower_color() 174 state->pixelmap->data.explicit_binding = true; in lower_color() 175 state->pixelmap->data.how_declared = nir_var_hidden; in lower_color() 249 if (var->data.location == VARYING_SLOT_COL0) { in lower_drawpixels_block() 253 } else if (var->data in lower_drawpixels_block() [all...] |
/third_party/mesa3d/src/compiler/spirv/ |
H A D | nir_load_libclc.c | 92 const void *data; member 175 clc->data = dest; in map_clc_data() 178 clc->data = clc->file->static_data; in map_clc_data() 193 clc->data = mmap(NULL, len, PROT_READ, MAP_PRIVATE, clc->fd, 0); in map_clc_data() 194 if (clc->data == MAP_FAILED) { in map_clc_data() 211 free((void *)clc->data); in close_clc_data() 218 if (clc->data) in close_clc_data() 219 munmap((void *)clc->data, clc->size); in close_clc_data() 340 nir_shader *nir = spirv_to_nir(clc.data, clc.size / SPIRV_WORD_SIZE, in nir_load_libclc_shader() 364 disk_cache_put(disk_cache, cache_key, blob.data, blo in nir_load_libclc_shader() [all...] |
/third_party/node/lib/ |
H A D | diagnostics_channel.js | 74 function defaultTransform(data) { 75 return data; 78 function wrapStoreRun(store, data, next, transform = defaultTransform) { 82 context = transform(data); 137 publish(data) { 141 onMessage(data, this.name); 150 runStores(data, fn, thisArg, ...args) { 152 this.publish(data); 159 run = wrapStoreRun(store, data, run, transform); 205 runStores(data, f [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | zip_internal.cc | 151 // A struct that contains data required for zlib functions to extract files from 155 const char* data; // weak member 162 // data. (Returning NULL represents an error.) This function initializes the 164 // information needed for uncompressing data. (This function does not support 165 // writing compressed data and it returns NULL for this case.) 172 if (!buffer || !buffer->data || !buffer->length) in OpenZipBuffer() 178 // Reads compressed data from the specified stream. This function copies data 184 if (!buffer || !buffer->data || !remaining_bytes) in ReadZipBuffer() 188 memcpy(buf, &buffer->data[buffe in ReadZipBuffer() 310 PrepareMemoryForUnzipping(const std::string& data) PrepareMemoryForUnzipping() argument [all...] |
/third_party/node/test/fixtures/wpt/streams/transferable/ |
H A D | transfer-with-messageport.window.js | 15 async function postAndTestMessageEvent(data, transfer, title) { 16 postMessage(data, "*", transfer); 31 for (const [key, value] of Object.entries(data)) { 33 ev.data[key] instanceof value.constructor, 34 `data.${key} has correct interface ${value.constructor.name} ${title}` 71 `when transferring [MessagePort, ${stream.constructor.name}, MessagePort] but with empty data` 80 `when transferring [MessagePort, ${stream.constructor.name}, MessagePort] but with data having different order` 89 `when transferring [MessagePort, ${stream.constructor.name}, MessagePort] but with stream not being in the data` 98 `when transferring [MessagePort, ${stream.constructor.name}, MessagePort] but with ports not being in the data` 165 `when transferring [TransformStream, MessagePort, ReadableStream, MessagePort, WritableStream, ReadableStream, WritableStream, TransformStream] but with the data havin [all...] |
/third_party/node/test/node-api/test_threadsafe_function/ |
H A D | binding.c | 26 // Thread data to transmit to JS 29 static void secondary_thread(void* data) { in secondary_thread() argument 30 napi_threadsafe_function ts_fn = data; in secondary_thread() 38 // Source thread producing the data 39 static void data_source_thread(void* data) { in data_source_thread() argument 40 napi_threadsafe_function ts_fn = data; in data_source_thread() 121 // Getting the data into JS 122 static void call_js(napi_env env, napi_value cb, void* hint, void* data) { in call_js() argument 125 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, *(int*)data, &argv)); in call_js() 133 // Getting the data int 134 call_ref(napi_env env, napi_value _, void* hint, void* data) call_ref() argument 167 join_the_threads(napi_env env, void *data, void *hint) join_the_threads() argument [all...] |
/third_party/node/deps/zlib/google/ |
H A D | zip_internal.cc | 151 // A struct that contains data required for zlib functions to extract files from 155 const char* data; // weak member 162 // data. (Returning NULL represents an error.) This function initializes the 164 // information needed for uncompressing data. (This function does not support 165 // writing compressed data and it returns NULL for this case.) 172 if (!buffer || !buffer->data || !buffer->length) in OpenZipBuffer() 178 // Reads compressed data from the specified stream. This function copies data 184 if (!buffer || !buffer->data || !remaining_bytes) in ReadZipBuffer() 188 memcpy(buf, &buffer->data[buffe in ReadZipBuffer() 311 PrepareMemoryForUnzipping(const std::string& data) PrepareMemoryForUnzipping() argument [all...] |
/third_party/node/deps/cares/src/lib/ |
H A D | ares__slist.c | 50 void *data; member 92 /* Refill random data used for coin flips. We pull this in 8 byte chunks. in ares__slist_coin_flip() 157 list->cmp(node->data, list->head[i]->data) > 0) { in ares__slist_node_push() 164 list->cmp(node->data, left->next[i]->data) > 0) { in ares__slist_node_push() 212 node->data = val; in ares__slist_insert() 294 val = node->data; in ares__slist_node_claim() 344 rv = list->cmp(val, node->data); in ares__slist_node_find() 373 while (node->prev[0] != NULL && list->cmp(node->prev[0]->data, va in ares__slist_node_find() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | brkeng.cpp | 172 const LSTMData *data = CreateLSTMDataForScript(code, status); in loadEngineFor() local 174 if (data != nullptr) { in loadEngineFor() 175 engine = CreateLSTMBreakEngine(code, data, status); in loadEngineFor() 183 DeleteLSTMData(data); in loadEngineFor() 271 UDataMemory *file = udata_open(U_ICUDATA_BRKITR, ext.data(), dictnbuf.data(), &status); in loadDictionaryMatcherFor() 274 const uint8_t *data = (const uint8_t *)udata_getMemory(file); in loadDictionaryMatcherFor() local 275 const int32_t *indexes = (const int32_t *)data; in loadDictionaryMatcherFor() 281 const char *characters = (const char *)(data + offset); in loadDictionaryMatcherFor() 285 const char16_t *characters = (const char16_t *)(data in loadDictionaryMatcherFor() [all...] |
/third_party/node/deps/npm/node_modules/ignore-walk/lib/ |
H A D | index.js | 32 emit (ev, data) { 38 data = Array.from(data) 40 this.result = data 44 ret = this.parent.emit('error', data) 46 ret = super.emit(ev, data) 99 fs.readFile(ig, 'utf8', (er, data) => 100 er ? this.emit('error', er) : this.onReadIgnoreFile(file, data, then)) 103 onReadIgnoreFile (file, data, then) { 110 const rules = data [all...] |