Home
last modified time | relevance | path

Searched refs:new_buffer (Results 1 – 25 of 48) sorted by relevance

12

/third_party/cJSON/tests/
Dprint_number.c30 unsigned char new_buffer[26]; in assert_print_number() local
39 buffer.buffer = new_buffer; in assert_print_number()
42 memset(new_buffer, 0, sizeof(new_buffer)); in assert_print_number()
48 for(i = 0;i <sizeof(new_buffer);i++) in assert_print_number()
50 if(i >3 && new_buffer[i] =='0') in assert_print_number()
52 …if((new_buffer[i-3] =='e' && new_buffer[i-2] == '-' && new_buffer[i] =='0') ||(new_buffer[i-2] =='… in assert_print_number()
54 while(new_buffer[i] !='\0') in assert_print_number()
56 new_buffer[i] = new_buffer[i+1]; in assert_print_number()
/third_party/node/deps/v8/src/heap/cppgc/
Dobject-allocator.cc73 Address new_buffer, size_t new_size) { in ReplaceLinearAllocationBuffer() argument
80 lab.Set(new_buffer, new_size); in ReplaceLinearAllocationBuffer()
82 DCHECK_NOT_NULL(new_buffer); in ReplaceLinearAllocationBuffer()
84 auto* page = NormalPage::From(BasePage::FromPayload(new_buffer)); in ReplaceLinearAllocationBuffer()
87 page->object_start_bitmap().ClearBit<AccessMode::kAtomic>(new_buffer); in ReplaceLinearAllocationBuffer()
88 MarkRangeAsYoung(page, new_buffer, new_buffer + new_size); in ReplaceLinearAllocationBuffer()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_cross_containers.hpp351 T *new_buffer = in reserve() local
355 if (!new_buffer) in reserve()
359 if (new_buffer != this->ptr) in reserve()
364 new (&new_buffer[i]) T(std::move(this->ptr[i])); in reserve()
371 this->ptr = new_buffer; in reserve()
400 T *new_buffer = in insert() local
404 if (!new_buffer) in insert()
409 auto *target_itr = new_buffer; in insert()
412 if (new_buffer != this->ptr) in insert()
428 if (new_buffer != this->ptr || insert_begin != insert_end) in insert()
[all …]
/third_party/ffmpeg/libavcodec/
Ddirac_parser.c158 void *new_buffer = in dirac_combine_frame() local
161 if (!new_buffer) in dirac_combine_frame()
163 pc->buffer = new_buffer; in dirac_combine_frame()
171 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, in dirac_combine_frame() local
173 if (!new_buffer) in dirac_combine_frame()
175 pc->buffer = new_buffer; in dirac_combine_frame()
Dparser.c224 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, in ff_combine_frame() local
228 if (!new_buffer) { in ff_combine_frame()
233 pc->buffer = new_buffer; in ff_combine_frame()
246 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, in ff_combine_frame() local
249 if (!new_buffer) { in ff_combine_frame()
255 pc->buffer = new_buffer; in ff_combine_frame()
/third_party/icu/icu4c/source/test/cintltst/
Ducnvseltst.c353 char *new_buffer; in serializeAndUnserialize() local
361 new_buffer = (char *)uprv_malloc(ser_len); in serializeAndUnserialize()
363 ser_len2 = ucnvsel_serialize(sel, new_buffer, ser_len, status); in serializeAndUnserialize()
366 uprv_free(new_buffer); in serializeAndUnserialize()
371 *buffer = new_buffer; in serializeAndUnserialize()
372 sel = ucnvsel_openFromSerialized(new_buffer, ser_len, status); in serializeAndUnserialize()
/third_party/mesa3d/src/gallium/frontends/va/
Dimage.c206 struct pipe_video_buffer *new_buffer = NULL; in vlVaDeriveImage() local
347 new_buffer = drv->pipe->create_video_buffer(drv->pipe, &new_template); in vlVaDeriveImage()
350 if (!new_buffer) { in vlVaDeriveImage()
362 surf->buffer, new_buffer, in vlVaDeriveImage()
367 surfaces = surf->buffer->get_surfaces(new_buffer); in vlVaDeriveImage()
380 w = align(new_buffer->width, 2); in vlVaDeriveImage()
381 h = align(new_buffer->height, 2); in vlVaDeriveImage()
417 img_buf->derived_image_buffer = new_buffer; in vlVaDeriveImage()
/third_party/mesa3d/src/loader/
Dloader_dri3_helper.c2046 struct loader_dri3_buffer *new_buffer; in dri3_get_buffer() local
2050 new_buffer = dri3_alloc_render_buffer(draw, in dri3_get_buffer()
2055 if (!new_buffer) in dri3_get_buffer()
2067 new_buffer->image, in dri3_get_buffer()
2070 MIN2(buffer->width, new_buffer->width), in dri3_get_buffer()
2071 MIN2(buffer->height, new_buffer->height), in dri3_get_buffer()
2074 dri3_fence_reset(draw->conn, new_buffer); in dri3_get_buffer()
2077 new_buffer->pixmap, in dri3_get_buffer()
2081 dri3_fence_trigger(draw->conn, new_buffer); in dri3_get_buffer()
2088 dri3_fence_reset(draw->conn, new_buffer); in dri3_get_buffer()
[all …]
/third_party/node/deps/v8/src/wasm/
Dwasm-module-builder.h141 byte* new_buffer = zone_->NewArray<byte, Buffer>(new_size); in EnsureSpace() local
142 memcpy(new_buffer, buffer_, (pos_ - buffer_)); in EnsureSpace()
143 pos_ = new_buffer + (pos_ - buffer_); in EnsureSpace()
144 buffer_ = new_buffer; in EnsureSpace()
145 end_ = new_buffer + new_size; in EnsureSpace()
/third_party/node/src/
Daliased_buffer-inl.h195 NativeT* new_buffer = static_cast<NativeT*>(ab->Data()); in reserve() local
197 memcpy(new_buffer, buffer_, old_size_in_bytes); in reserve()
205 buffer_ = new_buffer; in reserve()
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
Dpreprocessor_lex_autogen.cpp515 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
519 void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
1810 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) in yy_switch_to_buffer() argument
1820 if (YY_CURRENT_BUFFER == new_buffer) in yy_switch_to_buffer()
1831 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yy_switch_to_buffer()
1965 void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) in yypush_buffer_state() argument
1968 if (new_buffer == NULL) in yypush_buffer_state()
1985 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yypush_buffer_state()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/
DTokenizer.cpp656 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
660 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
2165 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yy_switch_to_buffer() argument
2175 if ( YY_CURRENT_BUFFER == new_buffer ) in yy_switch_to_buffer()
2186 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yy_switch_to_buffer()
2325 void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yypush_buffer_state() argument
2328 if (new_buffer == NULL) in yypush_buffer_state()
2345 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yypush_buffer_state()
/third_party/node/deps/v8/src/codegen/s390/
Dassembler-s390.cc772 std::unique_ptr<AssemblerBuffer> new_buffer = buffer_->Grow(new_size); in GrowBuffer() local
773 DCHECK_EQ(new_size, new_buffer->size()); in GrowBuffer()
774 byte* new_start = new_buffer->start(); in GrowBuffer()
785 buffer_ = std::move(new_buffer); in GrowBuffer()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
Dglslang_lex.cpp441 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
445 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
2806 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yy_switch_to_buffer() argument
2816 if ( YY_CURRENT_BUFFER == new_buffer ) in yy_switch_to_buffer()
2827 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yy_switch_to_buffer()
2966 void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yypush_buffer_state() argument
2969 if (new_buffer == NULL) in yypush_buffer_state()
2986 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yypush_buffer_state()
/third_party/toybox/kconfig/
Dlex.zconf.c_shipped291 void zconf_switch_to_buffer (YY_BUFFER_STATE new_buffer );
295 void zconfpush_buffer_state (YY_BUFFER_STATE new_buffer );
1709 * @param new_buffer The new input buffer.
1712 void zconf_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1718 * zconfpush_buffer_state(new_buffer);
1721 if ( YY_CURRENT_BUFFER == new_buffer )
1732 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1858 * @param new_buffer The new state.
1861 void zconfpush_buffer_state (YY_BUFFER_STATE new_buffer )
1863 if (new_buffer == NULL)
[all …]
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri3.c372 struct vl_dri3_buffer *new_buffer; in dri3_get_back_buffer() local
374 new_buffer = dri3_alloc_back_buffer(scrn); in dri3_get_back_buffer()
375 if (!new_buffer) in dri3_get_back_buffer()
383 buffer = new_buffer; in dri3_get_back_buffer()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dglslang_lex_autogen.cpp352 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
356 void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
2584 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) in yy_switch_to_buffer() argument
2594 if (YY_CURRENT_BUFFER == new_buffer) in yy_switch_to_buffer()
2605 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yy_switch_to_buffer()
2739 void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) in yypush_buffer_state() argument
2742 if (new_buffer == NULL) in yypush_buffer_state()
2759 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yypush_buffer_state()
/third_party/node/deps/v8/src/strings/
Dstring-stream.cc44 char* new_buffer = allocator_->grow(&new_capacity); in Put() local
47 buffer_ = new_buffer; in Put()
/third_party/node/deps/openssl/openssl/crypto/ec/
Dec_asn1.c1162 int new_buffer = 0; in i2o_ECPublicKey() local
1181 new_buffer = 1; in i2o_ECPublicKey()
1186 if (new_buffer) { in i2o_ECPublicKey()
1192 if (!new_buffer) in i2o_ECPublicKey()
/third_party/openssl/crypto/ec/
Dec_asn1.c1162 int new_buffer = 0; in i2o_ECPublicKey() local
1181 new_buffer = 1; in i2o_ECPublicKey()
1186 if (new_buffer) { in i2o_ECPublicKey()
1192 if (!new_buffer) in i2o_ECPublicKey()
/third_party/gn/src/base/containers/
Dcircular_deque.h942 VectorBuffer new_buffer(new_capacity + 1); in SetCapacityTo()
943 MoveBuffer(buffer_, begin_, end_, &new_buffer, &begin_, &end_); in SetCapacityTo()
944 buffer_ = std::move(new_buffer); in SetCapacityTo()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord.cc1760 char* new_buffer; in FlattenSlowPath() local
1767 new_buffer = new_rep->flat()->Data(); in FlattenSlowPath()
1768 CopyToArraySlowPath(new_buffer); in FlattenSlowPath()
1770 new_buffer = std::allocator<char>().allocate(total_size); in FlattenSlowPath()
1771 CopyToArraySlowPath(new_buffer); in FlattenSlowPath()
1773 absl::string_view(new_buffer, total_size), [](absl::string_view s) { in FlattenSlowPath()
1781 return absl::string_view(new_buffer, total_size); in FlattenSlowPath()
/third_party/pcre2/pcre2/src/
Dpcre2grep.c2686 char *new_buffer; in pcre2grep() local
2690 new_buffer = (char *)malloc(3*new_bufthird); in pcre2grep()
2692 if (new_buffer == NULL) in pcre2grep()
2709 memcpy(new_buffer, main_buffer, bufsize); in pcre2grep()
2712 ptr = new_buffer + (ptr - main_buffer); in pcre2grep()
2713 lastmatchrestart = new_buffer + (lastmatchrestart - main_buffer); in pcre2grep()
2715 main_buffer = new_buffer; in pcre2grep()
/third_party/node/test/fixtures/wpt/wasm/jsapi/
Dwasm-module-builder.js480 let new_buffer = new Uint8Array(new_capacity);
481 new_buffer.set(this.buffer);
482 this.buffer = new_buffer;
/third_party/node/deps/v8/src/objects/
Dbacking-store.cc969 Handle<JSArrayBuffer> new_buffer = in UpdateSharedWasmMemoryObjects() local
971 memory_object->update_instances(isolate, new_buffer); in UpdateSharedWasmMemoryObjects()

12