Home
last modified time | relevance | path

Searched refs:input_buffer (Results 1 – 25 of 65) sorted by relevance

123

/external/iperf3/src/
Dcjson.c230 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number() argument
238 if ((input_buffer == NULL) || (input_buffer->content == NULL)) in parse_number()
246 for (i = 0; (i < (sizeof(number_c_string) - 1)) && can_access_at_index(input_buffer, i); i++) in parse_number()
248 switch (buffer_at_offset(input_buffer)[i]) in parse_number() local
264 number_c_string[i] = buffer_at_offset(input_buffer)[i]; in parse_number()
302 input_buffer->offset += (size_t)(after_end - number_c_string); in parse_number()
654 static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer) in parse_string() argument
656 const unsigned char *input_pointer = buffer_at_offset(input_buffer) + 1; in parse_string()
657 const unsigned char *input_end = buffer_at_offset(input_buffer) + 1; in parse_string()
662 if (buffer_at_offset(input_buffer)[0] != '\"') in parse_string() local
[all …]
/external/u-boot/drivers/net/
Dnetconsole.c16 static char input_buffer[CONFIG_NETCONSOLE_BUFFER_SIZE]; variable
147 if (input_size == sizeof(input_buffer)) in nc_input_packet()
149 if (len > sizeof(input_buffer) - input_size) in nc_input_packet()
150 len = sizeof(input_buffer) - input_size; in nc_input_packet()
153 if (end >= sizeof(input_buffer)) in nc_input_packet()
154 end -= sizeof(input_buffer); in nc_input_packet()
158 if (end + len >= sizeof(input_buffer)) { in nc_input_packet()
159 chunk = sizeof(input_buffer) - end; in nc_input_packet()
161 memcpy(input_buffer, pkt + chunk, len - chunk); in nc_input_packet()
164 memcpy(input_buffer + end, pkt, chunk); in nc_input_packet()
[all …]
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc40 bool LoadFile(const char* input_file_path, sfntly::ByteVector* input_buffer) { in LoadFile() argument
42 assert(input_buffer); in LoadFile()
56 input_buffer->resize(file_size); in LoadFile()
57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
107 sfntly::ByteVector input_buffer; in main() local
108 if (!LoadFile(argv[1], &input_buffer)) { in main()
122 &(input_buffer[0]), in main()
123 input_buffer.size(), in main()
/external/elfutils/libdwfl/
Dgzip.c82 void *input_buffer; member
112 *state->whole = state->input_buffer; in fail()
115 free (state->input_buffer); in fail()
186 .input_buffer = NULL, in unzip()
194 state.input_buffer = malloc (READ_SIZE); in unzip()
195 if (unlikely (state.input_buffer == NULL)) in unzip()
198 ssize_t n = pread_retry (fd, state.input_buffer, READ_SIZE, start_offset); in unzip()
203 mapped = state.input_buffer; in unzip()
208 state.input_buffer = *state.whole; in unzip()
242 if (z.avail_in == 0 && state.input_buffer != NULL) in unzip()
[all …]
/external/brotli/research/
Dbrotli_decoder.c18 uint8_t* input_buffer; member
26 ctx->input_buffer = 0; in init()
34 if (ctx->input_buffer) free(ctx->input_buffer); in cleanup()
57 ctx.input_buffer = (uint8_t*)malloc(BUFFER_SIZE); in main()
58 if (!ctx.input_buffer) fail(&ctx, "out of memory / input buffer"); in main()
69 available_in = fread(ctx.input_buffer, 1, BUFFER_SIZE, ctx.fin); in main()
70 next_in = ctx.input_buffer; in main()
/external/python/cpython3/Modules/
D_bz2module.c46 char *input_buffer; member
479 avail_now = (d->input_buffer + d->input_buffer_size) in decompress()
488 size_t offset = bzs->next_in - d->input_buffer; in decompress()
494 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
499 d->input_buffer = tmp; in decompress()
502 bzs->next_in = d->input_buffer + offset; in decompress()
505 memmove(d->input_buffer, bzs->next_in, in decompress()
507 bzs->next_in = d->input_buffer; in decompress()
548 if (d->input_buffer != NULL && in decompress()
550 PyMem_Free(d->input_buffer); in decompress()
[all …]
D_lzmamodule.c55 uint8_t *input_buffer; member
945 avail_now = (d->input_buffer + d->input_buffer_size) in decompress()
954 size_t offset = lzs->next_in - d->input_buffer; in decompress()
960 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
965 d->input_buffer = tmp; in decompress()
968 lzs->next_in = d->input_buffer + offset; in decompress()
971 memmove(d->input_buffer, lzs->next_in, in decompress()
973 lzs->next_in = d->input_buffer; in decompress()
1014 if (d->input_buffer != NULL && in decompress()
1016 PyMem_Free(d->input_buffer); in decompress()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dsoftmax_test.cc83 static float input_buffer[] = { in TEST() local
90 m.SetInput(0, input_buffer, input_buffer + input_size * batch_size); in TEST()
98 tflite::reference_ops::Softmax(params, input_shape, input_buffer, input_shape, in TEST()
112 static float input_buffer[] = { in TEST() local
119 m.SetInput(0, input_buffer, input_buffer + input_size * batch_size); in TEST()
127 tflite::reference_ops::Softmax(params, input_shape, input_buffer, input_shape, in TEST()
Dlog_softmax_test.cc81 static float input_buffer[] = { in TEST() local
88 m.SetInput(0, input_buffer, input_buffer + input_size * batch_size); in TEST()
95 tflite::reference_ops::LogSoftmax(params, input_shape, input_buffer, in TEST()
/external/sfntly/cpp/src/test/
Dchrome_subsetter.cc36 sfntly::ByteVector input_buffer; in TestChromeSubsetter() local
37 sfntly::LoadFile(kInputFileName, &input_buffer); in TestChromeSubsetter()
38 EXPECT_GT(input_buffer.size(), (size_t)0); in TestChromeSubsetter()
43 &(input_buffer[0]), in TestChromeSubsetter()
44 input_buffer.size(), in TestChromeSubsetter()
Dfont_parsing_test.cc35 ByteVector input_buffer; in TestFontParsing() local
36 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestFontParsing()
46 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array2); in TestFontParsing()
117 ByteVector input_buffer; in TestTTFMemoryBasedReadWrite() local
118 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestTTFMemoryBasedReadWrite()
123 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array); in TestTTFMemoryBasedReadWrite()
129 EXPECT_GE(output_stream.Size(), input_buffer.size()); in TestTTFMemoryBasedReadWrite()
Dtest_font_utils.cc63 void LoadFile(const char* input_file_path, ByteVector* input_buffer) { in LoadFile() argument
65 assert(input_buffer); in LoadFile()
77 input_buffer->resize(file_size); in LoadFile()
78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
Dname_editing_test.cc36 static ByteVector input_buffer; variable
41 if (input_buffer.empty()) { in LoadTestFile()
42 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dserialization.h98 const void* input_buffer = data_num_bytes == 0 ? nullptr : data;
104 bool need_copy = !IsAligned(input_buffer);
109 input_buffer = aligned_input_buffer;
114 input_buffer, static_cast<uint32_t>(data_num_bytes), handles.size(), 0);
116 if (validate_func(input_buffer, &validation_context)) {
120 reinterpret_cast<DataType*>(const_cast<void*>(input_buffer)), output,
/external/nos/test/system-test-harness/src/
Dnugget_core_tests.cc27 static vector<uint8_t> input_buffer; member in __anon69d281500111::NuggetCoreTest
34 vector<uint8_t> NuggetCoreTest::input_buffer; member in __anon69d281500111::NuggetCoreTest
42 input_buffer.reserve(0x4000); in SetUpTestCase()
55 input_buffer.resize(0); in TEST_F()
57 APP_ID_NUGGET, NUGGET_PARAM_VERSION, input_buffer, &output_buffer), ""); in TEST_F()
62 input_buffer.resize(0); in TEST_F()
64 APP_ID_NUGGET, NUGGET_PARAM_DEVICE_ID, input_buffer, &output_buffer), ""); in TEST_F()
Dutil.cc115 input_buffer(PROTO_BUFFER_MAX_LEN, 0), tty_fd(-1) { in TestHarness()
126 input_buffer(PROTO_BUFFER_MAX_LEN, 0), tty_fd(-1) { in TestHarness()
226 input_buffer.resize(msg.data_len + sizeof(msg.type)); in SendSpi()
227 input_buffer[0] = msg.type >> 8; in SendSpi()
228 input_buffer[1] = (uint8_t) msg.type; in SendSpi()
229 std::copy(msg.data, msg.data + msg.data_len, input_buffer.begin() + 2); in SendSpi()
233 for (char c : input_buffer) { in SendSpi()
245 return client->CallApp(APP_ID_PROTOBUF, msg.type, input_buffer, in SendSpi()
419 decoder.buffer_len = input_buffer.size(); in Init()
420 decoder.pdu_buffer = input_buffer.data(); in Init()
/external/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc45 ByteVector input_buffer; in Subset() local
54 input_buffer.resize(file_size); in Subset()
55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset()
63 factory->LoadFonts(&input_buffer, &font_array); in Subset()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtensor_list_utils.cc87 xla::XlaOp input_buffer; in InitializeTensorList() local
88 TF_RETURN_IF_ERROR(GetTensorListBuffer(uninitialized_list, &input_buffer)); in InitializeTensorList()
90 builder->GetShape(input_buffer)); in InitializeTensorList()
/external/grpc-grpc/src/core/tsi/alts/frame_protector/
Dframe_handler.cc61 writer->input_buffer = buffer; in alts_reset_frame_writer()
99 memcpy(output, writer->input_buffer, bytes_to_write); in alts_write_frame_bytes()
100 writer->input_buffer += bytes_to_write; in alts_write_frame_bytes()
108 return writer->input_buffer == nullptr || in alts_is_frame_writer_done()
/external/tensorflow/tensorflow/core/kernels/
Dsubstr_op.cc150 Tensor input_buffer; in Compute() local
152 DT_STRING, output_shape, &input_buffer)); in Compute()
154 input_buffer.shaped<string, 1>(bcast.result_shape()); in Compute()
213 Tensor input_buffer; in Compute() local
215 DT_STRING, output_shape, &input_buffer)); in Compute()
217 input_buffer.shaped<string, 2>(bcast.result_shape()); in Compute()
Ddepthwise_conv_op.cc84 const int64 out_c, const T* filter, const T* input_buffer, in Run()
109 Eigen::internal::ploadu<Packet>(input_buffer + index); in Run()
126 Eigen::internal::ploadu<Packet>(input_buffer + index); in Run()
199 Tensor input_buffer; in operator ()() local
204 &input_buffer)); in operator ()()
205 T* input_buffer_data = input_buffer.template flat<T>().data(); in operator ()()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_fake_quant.cc110 const auto& input_buffer = input_array.GetBuffer<ArrayDataType::kFloat>(); in Run() local
113 const int size = input_buffer.data.size(); in Run()
133 input_buffer.data.data(), output_buffer.data.data(), in Run()
/external/curl/lib/
Dkrb5.c159 gss_buffer_desc input_buffer, output_buffer, _gssresp, *gssresp; in krb5_auth() local
201 input_buffer.value = stringp; in krb5_auth()
202 input_buffer.length = strlen(stringp); in krb5_auth()
203 maj = gss_import_name(&min, &input_buffer, GSS_C_NT_HOSTBASED_SERVICE, in krb5_auth()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen_main.cc42 std::unique_ptr<io::InputBuffer> input_buffer( in ReadOpListFromFile() local
45 Status s = input_buffer->ReadLine(&line_contents); in ReadOpListFromFile()
57 s = input_buffer->ReadLine(&line_contents); in ReadOpListFromFile()
/external/libxaac/decoder/drc_src/
Dimpd_drc_main_qmf_process.c83 FLOAT32 *input_buffer; in impd_init_process_audio_main_qmf() local
90 input_buffer = (FLOAT32 *)p_obj_drc->pp_mem[2]; in impd_init_process_audio_main_qmf()
112 input_buffer[j * p_obj_drc->str_config.num_ch_in + i]; in impd_init_process_audio_main_qmf()
114 input_buffer[p_obj_drc->str_config.num_ch_in * in impd_init_process_audio_main_qmf()

123