/external/chromium/net/websockets/ |
websocket_frame_handler.cc | 24 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(length); local 25 memcpy(buffer->data(), data, length); 26 pending_buffers_.push_back(buffer); 37 scoped_refptr<IOBufferWithSize> buffer = pending_buffers_.front(); 43 ParseWebSocketFrame(buffer->data(), buffer->size(), &frame_info); 51 original_current_buffer_size_ = buffer->size(); 52 buffer_size = buffer->size(); 55 current_buffer_ = buffer; 74 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(buffer_size) local [all...] |
/external/chromium_org/chrome/common/ |
partial_circular_buffer.h | 11 // A wrapper around a memory buffer that allows circular read and write with a 12 // selectable wrapping position. Buffer layout (after wrap; H is header): 20 // - Length written to the buffer (not including header). 22 // - End position of buffer. (If the last byte is at x, this will be x + 1.) 23 // Users of wrappers around the same underlying buffer must ensure that writing 29 PartialCircularBuffer(void* buffer, uint32 buffer_size); 34 PartialCircularBuffer(void* buffer, 39 uint32 Read(void* buffer, uint32 buffer_size); 40 void Write(const void* buffer, uint32 buffer_size);
|
/external/chromium_org/cloud_print/common/win/ |
cloud_print_utils.cc | 31 LPCWSTR buffer = NULL; local 34 int count = ::LoadString(module, id, reinterpret_cast<LPWSTR>(&buffer), 0); 35 if (!buffer) 37 return string16(buffer, buffer + count); 41 LPWSTR buffer = NULL; local 44 0, hr, 0, reinterpret_cast<LPWSTR>(&buffer), 0, NULL); 45 string16 result(buffer); 46 ::LocalFree(buffer);
|
/external/chromium_org/device/bluetooth/ |
bluetooth_socket_chromeos.cc | 50 bool BluetoothSocketChromeOS::Receive(net::GrowableIOBuffer *buffer) { 88 buffer->SetCapacity(count); 90 buffer->SetCapacity(1024); 95 if (buffer->RemainingCapacity() == 0) 96 buffer->SetCapacity(buffer->capacity() * 2); 98 HANDLE_EINTR(read(fd_, buffer->data(), buffer->RemainingCapacity())); 100 buffer->set_offset(buffer->offset() + bytes_read) [all...] |
/external/chromium_org/net/spdy/ |
spdy_read_queue.cc | 28 void SpdyReadQueue::Enqueue(scoped_ptr<SpdyBuffer> buffer) { 29 DCHECK_GT(buffer->GetRemainingSize(), 0u); 30 total_size_ += buffer->GetRemainingSize(); 31 queue_.push_back(buffer.release()); 38 SpdyBuffer* buffer = queue_.front(); local 40 std::min(len - bytes_copied, buffer->GetRemainingSize()); 41 memcpy(out + bytes_copied, buffer->GetRemainingData(), bytes_to_copy); 43 if (bytes_to_copy == buffer->GetRemainingSize()) { 47 buffer->Consume(bytes_to_copy);
|
/external/chromium_org/ppapi/c/dev/ |
ppb_crypto_dev.h | 29 * Fills the given buffer with random bytes. This is potentially slow so only 32 void (*GetRandomBytes)(char* buffer, uint32_t num_bytes);
|
/external/chromium_org/ppapi/native_client/tests/nacl_browser/manifest_file/ |
irt_manifest_file_test.cc | 49 char buffer[4096]; local 50 while (fgets(buffer, sizeof buffer, iob) != NULL) { 74 int len = strlen(buffer); 75 if (len >= 2 && buffer[len-1] == '\n' && buffer[len-2] == '\r') { 76 buffer[len-2] = '\n'; 77 buffer[len-1] = '\0'; 79 str += buffer;
|
/external/chromium_org/ppapi/tests/ |
test_memory.cc | 33 char* buffer = static_cast<char*>( local 36 buffer[0] = '1'; 37 buffer[kTestBufferSize - 1] = '1'; 38 memory_dev_interface_->MemFree(buffer);
|
/external/chromium_org/remoting/base/ |
compound_buffer.h | 5 // CompoundBuffer implements a data buffer that is composed of several pieces, 9 // and assembling them into one buffer on the receiving side. 13 // a protocol buffer message. 15 // Mutations to the buffer are not thread-safe. Immutability can be ensured 41 // Adds new chunk to the buffer. |start| defines position of the chunk 42 // within the |buffer|. |size| is the size of the chunk that is being 43 // added, not size of the |buffer|. 44 void Append(net::IOBuffer* buffer, int size); 45 void Append(net::IOBuffer* buffer, const char* start, int size); 46 void Append(const CompoundBuffer& buffer); 88 scoped_refptr<net::IOBuffer> buffer; member in struct:remoting::CompoundBuffer::DataChunk [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8CryptoCustom.cpp | 48 v8::Handle<v8::Value> buffer = args[0]; local 49 if (!V8ArrayBufferView::HasInstance(buffer, args.GetIsolate(), worldType(args.GetIsolate()))) { 54 ArrayBufferView* arrayBufferView = V8ArrayBufferView::toNative(v8::Handle<v8::Object>::Cast(buffer)); 63 v8SetReturnValue(args, buffer);
|
/external/chromium_org/third_party/WebKit/Source/core/fileapi/ |
Stream.cpp | 54 RefPtr<RawData> buffer(RawData::create()); 55 buffer->mutableData()->resize(len); 56 memcpy(buffer->mutableData()->data(), data, len); 57 BlobRegistry::addDataToStream(m_internalURL, buffer);
|
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
fixed-dtoa.h | 39 // The buffer must be big enough to hold the result plus one terminating null 44 // Example: FastFixedDtoa(0.001, 5, ...) is allowed to return buffer = "1", and 47 // FastFixedDtoa(0.15, 2, ...) thus returns buffer = "2", decimal_point = 0. 48 // The returned buffer may contain digits that would be truncated from the 54 Vector<char> buffer, int* length, int* decimal_point);
|
/external/chromium_org/third_party/icu/source/tools/genrb/ |
rbutil.c | 66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) 83 buffer[length++]= digits[digit]; 88 buffer[length++] = '0';/*zero padding */ 93 buffer[length++]='-'; 96 /* null terminate the buffer */ 98 buffer[length] = 0x0000; 106 temp = buffer[(length-1) - j]; 107 buffer[(length-1) - j] = buffer[j]; 108 buffer[j] = temp [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_state_vdecl.c | 66 * buffer offset below. The important thing is that all vertex buffer 77 struct svga_buffer *buffer; local 81 if (!vb->buffer) 84 buffer = svga_buffer(vb->buffer); 85 if (buffer->uploaded.start > offset) { 86 tmp_neg_bias = buffer->uploaded.start - offset; 97 struct svga_buffer *buffer; local 99 if (!vb->buffer) [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/rc4/ |
rc4s.cpp | 39 unsigned char buffer[1024]; local 59 RC4(&ctx,numm,buffer,buffer); 61 RC4(&ctx,numm,buffer,buffer); 64 RC4(&ctx,num,buffer,buffer); 66 RC4(&ctx,num,buffer,buffer);
|
/external/chromium_org/tools/android/common/ |
net.h | 19 // Dumps a binary buffer into a string in a human-readable format. 20 std::string DumpBinary(const char* buffer, size_t length);
|
/external/chromium_org/v8/src/ |
dtoa.cc | 57 Vector<char> buffer, int* sign, int* length, int* point) { 69 buffer[0] = '0'; 70 buffer[1] = '\0'; 77 buffer[0] = '\0'; 85 fast_worked = FastDtoa(v, FAST_DTOA_SHORTEST, 0, buffer, length, point); 88 fast_worked = FastFixedDtoa(v, requested_digits, buffer, length, point); 92 buffer, length, point); 102 BignumDtoa(v, bignum_mode, requested_digits, buffer, length, point); 103 buffer[*length] = '\0';
|
fixed-dtoa.h | 36 // The buffer must be big enough to hold the result plus one terminating null 41 // Example: FastFixedDtoa(0.001, 5, ...) is allowed to return buffer = "1", and 44 // FastFixedDtoa(0.15, 2, ...) thus returns buffer = "2", decimal_point = 0. 45 // The returned buffer may contain digits that would be truncated from the 51 Vector<char> buffer, int* length, int* decimal_point);
|
/external/easymock/src/org/easymock/internal/matchers/ |
Same.java | 37 public void appendTo(StringBuffer buffer) {
38 buffer.append("same(");
39 ArgumentToString.appendArgument(expected, buffer);
40 buffer.append(")");
|
/external/harfbuzz/contrib/ |
harfbuzz-freetype.h | 7 HB_Byte *buffer, HB_UInt *len);
|
/external/icu4c/tools/genrb/ |
rbutil.c | 66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) 83 buffer[length++]= digits[digit]; 88 buffer[length++] = '0';/*zero padding */ 93 buffer[length++]='-'; 96 /* null terminate the buffer */ 98 buffer[length] = 0x0000; 106 temp = buffer[(length-1) - j]; 107 buffer[(length-1) - j] = buffer[j]; 108 buffer[j] = temp [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/output/ |
OutputBufferProvider.java | 20 * Simple Provider interface for the output buffer. 25 * Returns a clean Appendable buffer ready to use while rendering. 30 * Tells the provider that this buffer is free to be reused. 32 * @param buffer the Appendable object handed out by {@link #get} 34 void release(Appendable buffer);
|
/external/jsilver/src/com/google/streamhtmlparser/util/ |
JavascriptTokenBuffer.java | 24 * Implements a circular (ring) buffer of characters with specialized 34 * the buffer. Changing the API would mean changing the test 40 * <li> The buffer size is fixed. There is currently no need to 47 * Size of the ring buffer used to lookup the last token in the javascript 50 * an empty ring buffer slot. 54 /** Storage implementing the circular buffer. */ 55 private final char[] buffer; field in class:JavascriptTokenBuffer 57 /** Index of the first item in our circular buffer. */ 60 /** Index of the last item in our circular buffer. */ 64 * Constructs an empty javascript token buffer. The size is fixed [all...] |
/external/mdnsresponder/mDNSShared/ |
dnssd_ipc.c | 35 static char buffer[1024]; local 37 memset(buffer, 0, sizeof(buffer)); 43 buffer, 44 sizeof(buffer), 49 while ((n > 0) && isspace(((unsigned char *) buffer)[n - 1])) 50 buffer[--n] = '\0'; 52 return buffer; 111 int get_string(const char **ptr, const char *const end, char *buffer, int buflen) 115 *buffer = 0 [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_state_vdecl.c | 66 * buffer offset below. The important thing is that all vertex buffer 77 struct svga_buffer *buffer; local 81 if (!vb->buffer) 84 buffer = svga_buffer(vb->buffer); 85 if (buffer->uploaded.start > offset) { 86 tmp_neg_bias = buffer->uploaded.start - offset; 97 struct svga_buffer *buffer; local 99 if (!vb->buffer) [all...] |