Home
last modified time | relevance | path

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

12

/external/chromium_org/ppapi/native_client/src/untrusted/nacl_ppapi_util/
Dstring_buffer.cc41 char *new_buffer; in Printf() local
54 new_buffer = reinterpret_cast<char *>(realloc(buffer_, 2 * nbytes_)); in Printf()
55 if (NULL == new_buffer) { in Printf()
61 buffer_ = new_buffer; in Printf()
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
DStreamGobbler.java71 byte[] new_buffer = buffer; in run()
78 new_buffer = new byte[need_space + inc]; in run()
82 System.arraycopy(buffer, read_pos, new_buffer, 0, unread_size); in run()
84 buffer = new_buffer; in run()
/external/chromium_org/media/base/
Dbyte_queue.cc43 scoped_ptr<uint8[]> new_buffer(new uint8[new_size]); in Push() local
47 memcpy(new_buffer.get(), front(), used_); in Push()
49 buffer_.reset(new_buffer.release()); in Push()
/external/v8/src/
Dpreparser-api.cc102 uc16* new_buffer = NewArray<uc16>(pushback_buffer_backing_size_ * 2); in PushBack() local
103 memcpy(new_buffer + pushback_buffer_backing_size_, in PushBack()
107 buffer_cursor_ = new_buffer + pushback_buffer_backing_size_; in PushBack()
108 pushback_buffer_backing_ = pushback_buffer_ = new_buffer; in PushBack()
/external/chromium_org/courgette/
Dversioning_unittest.cc24 std::string new_buffer = FileContents(patch_file); in TestApplyingOldPatch() local
30 patch_stream.Init(new_buffer); in TestApplyingOldPatch()
Dmemory_allocator.h360 T* new_buffer = alloc_.allocate(size); in reserve() local
361 if (!new_buffer) { in reserve()
366 memcpy(new_buffer, buffer_, size_ * sizeof(T)); in reserve()
369 buffer_ = new_buffer; in reserve()
Dcourgette_tool.cc314 std::string new_buffer = ReadOrFail(new_file, "'new' input"); in GenerateEnsemblePatch() local
319 new_stream.Init(new_buffer); in GenerateEnsemblePatch()
391 std::string new_buffer = ReadOrFail(new_file, "'new' input"); in GenerateBSDiffPatch() local
396 new_stream.Init(new_buffer); in GenerateBSDiffPatch()
/external/chromium_org/content/renderer/webcrypto/
Dwebcrypto_util.cc47 blink::WebArrayBuffer new_buffer = blink::WebArrayBuffer::create(new_size, 1); in ShrinkBuffer() local
48 DCHECK(!new_buffer.isNull()); in ShrinkBuffer()
49 memcpy(new_buffer.data(), buffer->data(), new_size); in ShrinkBuffer()
50 *buffer = new_buffer; in ShrinkBuffer()
/external/chromium_org/media/webm/
Dcluster_builder.cc157 scoped_ptr<uint8[]> new_buffer(new uint8[new_buffer_size]); in ExtendBuffer() local
159 memcpy(new_buffer.get(), buffer_.get(), bytes_used_); in ExtendBuffer()
160 buffer_.reset(new_buffer.release()); in ExtendBuffer()
/external/chromium_org/third_party/icu/source/test/cintltst/
Ducnvseltst.c351 char *new_buffer; in serializeAndUnserialize() local
359 new_buffer = (char *)uprv_malloc(ser_len); in serializeAndUnserialize()
361 ser_len2 = ucnvsel_serialize(sel, new_buffer, ser_len, status); in serializeAndUnserialize()
364 uprv_free(new_buffer); in serializeAndUnserialize()
369 *buffer = new_buffer; in serializeAndUnserialize()
370 sel = ucnvsel_openFromSerialized(new_buffer, ser_len, status); in serializeAndUnserialize()
/external/icu4c/test/cintltst/
Ducnvseltst.c351 char *new_buffer; in serializeAndUnserialize() local
359 new_buffer = (char *)uprv_malloc(ser_len); in serializeAndUnserialize()
361 ser_len2 = ucnvsel_serialize(sel, new_buffer, ser_len, status); in serializeAndUnserialize()
364 uprv_free(new_buffer); in serializeAndUnserialize()
369 *buffer = new_buffer; in serializeAndUnserialize()
370 sel = ucnvsel_openFromSerialized(new_buffer, ser_len, status); in serializeAndUnserialize()
/external/chromium_org/net/tools/flip_server/
Dring_buffer.cc212 char* new_buffer = new char[buffer_size]; in Resize() local
229 memcpy(new_buffer + bytes_written, ptr, size); in Resize()
233 buffer_.reset(new_buffer); in Resize()
/external/chromium/net/tools/flip_server/
Dring_buffer.cc250 char* new_buffer = new char[buffer_size]; in Resize() local
266 memcpy(new_buffer + bytes_written, ptr, size); in Resize()
270 buffer_.reset(new_buffer); in Resize()
/external/chromium_org/ppapi/native_client/tests/nacl_browser/manifest_file/
Dpm_manifest_file_test.cc180 char *new_buffer; in EnumerateNames() local
202 new_buffer = reinterpret_cast<char *>(realloc(buffer, nbytes)); in EnumerateNames()
203 if (NULL == new_buffer) { in EnumerateNames()
208 buffer = new_buffer; in EnumerateNames()
209 new_buffer = NULL; in EnumerateNames()
/external/chromium_org/base/process/
Dprocess_metrics_win.cc138 PSAPI_WORKING_SET_INFORMATION* new_buffer = in GetWorkingSetKBytes() local
141 if (!new_buffer) { in GetWorkingSetKBytes()
145 buffer = new_buffer; in GetWorkingSetKBytes()
/external/bison/examples/calc++/
Dcalc++-scanner.cc359 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
363 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
1447 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) in yy_switch_to_buffer() argument
1459 if ( YY_CURRENT_BUFFER == new_buffer ) in yy_switch_to_buffer()
1470 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yy_switch_to_buffer()
1626 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) in yypush_buffer_state() argument
1631 if (new_buffer == NULL) in yypush_buffer_state()
1648 YY_CURRENT_BUFFER_LVALUE = new_buffer; in yypush_buffer_state()
/external/elfutils/libcpu/
Di386_lex.c319 void i386__switch_to_buffer (YY_BUFFER_STATE new_buffer );
323 void i386_push_buffer_state (YY_BUFFER_STATE new_buffer );
1448 void i386__switch_to_buffer (YY_BUFFER_STATE new_buffer ) in i386__switch_to_buffer() argument
1457 if ( YY_CURRENT_BUFFER == new_buffer ) in i386__switch_to_buffer()
1468 YY_CURRENT_BUFFER_LVALUE = new_buffer; in i386__switch_to_buffer()
1597 void i386_push_buffer_state (YY_BUFFER_STATE new_buffer ) in i386_push_buffer_state() argument
1599 if (new_buffer == NULL) in i386_push_buffer_state()
1616 YY_CURRENT_BUFFER_LVALUE = new_buffer; in i386_push_buffer_state()
/external/bison/src/
Dscan-skel.c378 void skel__switch_to_buffer (YY_BUFFER_STATE new_buffer );
382 void skel_push_buffer_state (YY_BUFFER_STATE new_buffer );
1655 void skel__switch_to_buffer (YY_BUFFER_STATE new_buffer ) in skel__switch_to_buffer() argument
1667 if ( YY_CURRENT_BUFFER == new_buffer ) in skel__switch_to_buffer()
1678 YY_CURRENT_BUFFER_LVALUE = new_buffer; in skel__switch_to_buffer()
1834 void skel_push_buffer_state (YY_BUFFER_STATE new_buffer ) in skel_push_buffer_state() argument
1839 if (new_buffer == NULL) in skel_push_buffer_state()
1856 YY_CURRENT_BUFFER_LVALUE = new_buffer; in skel_push_buffer_state()
Dscan-gram.c378 void gram__switch_to_buffer (YY_BUFFER_STATE new_buffer );
382 void gram_push_buffer_state (YY_BUFFER_STATE new_buffer );
2906 void gram__switch_to_buffer (YY_BUFFER_STATE new_buffer ) in gram__switch_to_buffer() argument
2918 if ( YY_CURRENT_BUFFER == new_buffer ) in gram__switch_to_buffer()
2929 YY_CURRENT_BUFFER_LVALUE = new_buffer; in gram__switch_to_buffer()
3085 void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ) in gram_push_buffer_state() argument
3090 if (new_buffer == NULL) in gram_push_buffer_state()
3107 YY_CURRENT_BUFFER_LVALUE = new_buffer; in gram_push_buffer_state()
Dscan-code.c378 void code__switch_to_buffer (YY_BUFFER_STATE new_buffer );
382 void code_push_buffer_state (YY_BUFFER_STATE new_buffer );
1868 void code__switch_to_buffer (YY_BUFFER_STATE new_buffer ) in code__switch_to_buffer() argument
1880 if ( YY_CURRENT_BUFFER == new_buffer ) in code__switch_to_buffer()
1891 YY_CURRENT_BUFFER_LVALUE = new_buffer; in code__switch_to_buffer()
2047 void code_push_buffer_state (YY_BUFFER_STATE new_buffer ) in code_push_buffer_state() argument
2052 if (new_buffer == NULL) in code_push_buffer_state()
2069 YY_CURRENT_BUFFER_LVALUE = new_buffer; in code_push_buffer_state()
/external/chromium_org/content/renderer/pepper/
Dmessage_channel.cc97 ArrayBufferVar* new_buffer = ArrayBufferVar::FromPPVar(new_buffer_var); in CopyPPVar() local
98 DCHECK(new_buffer); in CopyPPVar()
99 if (!new_buffer) in CopyPPVar()
101 memcpy(new_buffer->Map(), buffer->Map(), buffer->ByteLength()); in CopyPPVar()
/external/chromium/net/spdy/
Dspdy_http_stream.cc123 IOBufferWithSize* new_buffer = new IOBufferWithSize(bytes_remaining); in ReadResponseBody() local
124 memcpy(new_buffer->data(), &(data->data()[bytes_to_copy]), in ReadResponseBody()
127 response_body_.push_front(make_scoped_refptr(new_buffer)); in ReadResponseBody()
/external/elfutils/src/
Dldlex.c320 void ld_switch_to_buffer (YY_BUFFER_STATE new_buffer );
324 void ldpush_buffer_state (YY_BUFFER_STATE new_buffer );
2240 void ld_switch_to_buffer (YY_BUFFER_STATE new_buffer ) in ld_switch_to_buffer() argument
2249 if ( YY_CURRENT_BUFFER == new_buffer ) in ld_switch_to_buffer()
2260 YY_CURRENT_BUFFER_LVALUE = new_buffer; in ld_switch_to_buffer()
2389 void ldpush_buffer_state (YY_BUFFER_STATE new_buffer ) in ldpush_buffer_state() argument
2391 if (new_buffer == NULL) in ldpush_buffer_state()
2408 YY_CURRENT_BUFFER_LVALUE = new_buffer; in ldpush_buffer_state()
/external/libpcap/
Dscanner.c279 void pcap__switch_to_buffer (YY_BUFFER_STATE new_buffer );
283 void pcap_push_buffer_state (YY_BUFFER_STATE new_buffer );
3910 void pcap__switch_to_buffer (YY_BUFFER_STATE new_buffer ) in pcap__switch_to_buffer() argument
3919 if ( YY_CURRENT_BUFFER == new_buffer ) in pcap__switch_to_buffer()
3930 YY_CURRENT_BUFFER_LVALUE = new_buffer; in pcap__switch_to_buffer()
4063 void pcap_push_buffer_state (YY_BUFFER_STATE new_buffer ) in pcap_push_buffer_state() argument
4065 if (new_buffer == NULL) in pcap_push_buffer_state()
4082 YY_CURRENT_BUFFER_LVALUE = new_buffer; in pcap_push_buffer_state()
/external/chromium_org/third_party/angle/src/compiler/preprocessor/
DTokenizer.cpp291 void pp_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
295 void pppush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
1585 void pp_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in pp_switch_to_buffer() argument
1595 if ( YY_CURRENT_BUFFER == new_buffer ) in pp_switch_to_buffer()
1606 YY_CURRENT_BUFFER_LVALUE = new_buffer; in pp_switch_to_buffer()
1739 void pppush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in pppush_buffer_state() argument
1742 if (new_buffer == NULL) in pppush_buffer_state()
1759 YY_CURRENT_BUFFER_LVALUE = new_buffer; in pppush_buffer_state()

12