/external/chromium/webkit/glue/ |
glue_serialize.cc | 51 // 3: Version 2 was broken, it stored number of WebUChars, not number of bytes. 146 // Otherwise the length is the number of WebUChars (not bytes) in the WebString. 150 // Version 1 writes <length in bytes><string data>. 167 // Version 3+ writes <length in bytes><string data>. 194 // In version 1 and 3 it is the length in bytes. 195 int bytes = length; local 197 bytes *= sizeof(WebUChar); 200 if (!ReadBytes(obj, &data, bytes)) 203 bytes / sizeof(WebUChar));
|
/external/chromium_org/base/ |
pickle_unittest.cc | 205 int bytes = sizeof(int) * 2; local 210 EXPECT_TRUE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes)); 211 EXPECT_FALSE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes + 1)); 316 // Check we can write zero bytes of data and 'data' can be NULL.
|
/external/chromium_org/chromeos/dbus/ |
cryptohome_client.cc | 135 uint8* bytes = NULL; variable 137 if (!reader.PopArrayOfBytes(&bytes, &length)) 139 salt->assign(bytes, bytes + length); 365 uint8* bytes = NULL; variable 367 if (!reader.PopArrayOfBytes(&bytes, &length) || 370 value->assign(bytes, bytes + length); [all...] |
/external/chromium_org/content/test/plugin/ |
plugin_geturl_test.cc | 269 int32 bytes = local 272 // bytes. But this is not likely. 273 if (bytes != len) 326 size_t bytes = fread(read_buffer, 1, sizeof(read_buffer), test_file_); local 327 if (bytes != 0)
|
/external/chromium_org/net/tools/flip_server/ |
sm_connection.cc | 196 VLOG(2) << "SSLWrite(" << chunksize << " bytes): " << rv; 412 char* bytes; local 419 read_buffer_.GetWritablePtr(&bytes, &size); 422 bytes_read = SSL_read(ssl_, bytes, size); 440 bytes_read = recv(fd_, bytes, size, MSG_DONTWAIT); 462 << " bytes"; 478 << "0 bytes read with recv call."; 495 char* bytes; local 497 read_buffer_.GetReadablePtr(&bytes, &size); 499 size_t bytes_consumed = sm_interface_->ProcessReadInput(bytes, size) 559 const char* bytes = data_frame->data; local [all...] |
/external/chromium_org/ppapi/native_client/tests/nacl_browser/fault_injection/ |
fault_pm_nameservice_test.cc | 44 nacl::scoped_array<uint8_t> bytes; local 48 bytes.reset(new uint8_t[nbytes]); 49 if (NULL == bytes.get()) { 56 copied = read(d, bytes.get() + got, nbytes - got); 72 sb->Printf("%02x", bytes[ix]);
|
/external/chromium_org/ppapi/native_client/tests/nacl_browser/nameservice/ |
pm_nameservice_test.cc | 44 nacl::scoped_array<uint8_t> bytes; local 48 bytes.reset(new uint8_t[nbytes]); 49 if (NULL == bytes.get()) { 56 copied = read(d, bytes.get() + got, nbytes - got); 72 sb->Printf("%02x", bytes[ix]);
|
/external/chromium_org/remoting/host/win/ |
launch_process_with_token.cc | 264 DWORD bytes; local 266 if (!ReadFile(pipe, &response, sizeof(response), &bytes, NULL)) { 273 if (bytes != sizeof(response)) { 359 DWORD bytes; local 360 if (!WriteFile(pipe, buffer.get(), size, &bytes, NULL)) {
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
demo.cc | 109 ssize_t bytes = recvmsg(transport, &msg, 0); local 111 *len = bytes > static_cast<int>(sizeof(int)) ? bytes - sizeof(int) : 0; 113 if (bytes != static_cast<ssize_t>(sizeof(int) + iov[1].iov_len)) { 114 if (bytes >= 0) { 120 // "err" is the first four bytes of the payload. If these are non-zero, 148 // bytes. Output will be truncated as needed, and a NUL character is always
|
/external/chromium_org/sandbox/linux/suid/ |
sandbox.c | 115 ssize_t bytes; local 117 bytes = read(sv[0], &msg, 1); 118 } while (bytes == -1 && errno == EINTR); 120 if (bytes == 0) 122 if (bytes != 1) 141 bytes = write(sv[0], &reply, 1); 142 } while (bytes == -1 && errno == EINTR); 144 if (bytes != 1)
|
/external/chromium_org/sandbox/win/src/ |
policy_engine_opcodes.cc | 372 size_t bytes = lenght * sizeof(wchar_t); local 373 if (memory_size() < bytes) { 376 memory_bottom_ -= bytes; 381 memcpy(memory_bottom_, str, bytes);
|
/external/chromium_org/third_party/WebKit/Source/core/loader/ |
DocumentThreadableLoader.cpp | 468 const char* bytes = static_cast<const char*>(data.data()); local 470 didReceiveData(identifier, bytes, len);
|
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/renderer/ |
Image9.cpp | 130 int bytes = d3d9::ComputeRowSize(desc.Format, desc.Width); local 131 ASSERT(bytes <= sourceLock.Pitch && bytes <= destLock.Pitch); 135 memcpy((char*)destLock.pBits + destLock.Pitch * i, (char*)sourceLock.pBits + sourceLock.Pitch * i, bytes);
|
/external/chromium_org/third_party/freetype/src/pshinter/ |
pshrec.h | 102 FT_Byte* bytes; member in struct:PS_MaskRec_
|
/external/chromium_org/third_party/icu/source/common/ |
ucnv_u16.c | 112 /* copy an even number of bytes for complete UChars */ 183 length=2; /* 2 bytes to output */ 196 length=0; /* from here on, length counts the bytes in overflow[] */ 215 length=4; /* 4 bytes to output */ 232 /* output length bytes with overflow (length>targetCapacity>0) */ 317 /* continue collecting bytes for the trail surrogate */ 356 * used for the lead unit's bytes 374 /* copy an even number of bytes for complete UChars */ 536 /* too few (2 or 3) bytes for a surrogate pair: truncated code point */ 537 uint8_t *bytes=pArgs->converter->toUBytes local 554 uint8_t *bytes=pArgs->converter->toUBytes; local 1136 uint8_t *bytes=pArgs->converter->toUBytes; local 1153 uint8_t *bytes=pArgs->converter->toUBytes; local [all...] |
ucnv_u7.c | 213 uint8_t *bytes; local 243 bytes=cnv->toUBytes; 270 bytes[0]=b; 303 * base64 bytes, while nextSourceIndex is precisely parallel to source, 309 bytes[byteIndex++]=b=*source++; 317 /* collect base64 bytes into UChars */ 337 bytes[0]=b; /* keep this byte in case an error occurs */ 348 bytes[0]=b; /* keep this byte in case an error occurs */ 393 bytes[0]=PLUS; 394 bytes[1]=b 870 uint8_t *bytes; local [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
ucsdetst.c | 75 char *bytes = NEW_ARRAY(char, byteCount + 1); local 76 char *dest = bytes, *destLimit = bytes + byteCount + 1; 82 return bytes; 85 static void freeBytes(char *bytes) 87 DELETE_ARRAY(bytes); 125 char *bytes; local 131 bytes = extractBytes(s, sLength, "UTF-8", &byteLength); 133 ucsdet_setText(csd, bytes, byteLength, &status); 155 freeBytes(bytes); 287 char *bytes; local 475 char *bytes = extractBytes(chars, cLength, "IBM424", &bLength); local 553 char *bytes = extractBytes(chars, cLength, "IBM420", &bLength); local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tscoll.cpp | 382 const uint8_t *bytes = source.getByteArray(byteCount); local 392 appendHex(bytes[i], 2, target);
|
uobjtest.cpp | 491 char *bytes = stackMemory.bytes_; local 495 p=new(bytes) UnicodeString(len, (UChar32)0x20ac, len); 496 if((void *)p!=(void *)bytes) { 537 UnicodeString::operator delete(p, bytes);
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
ucm.h | 41 * b if bLen<=4: up to 4 bytes 42 * else index to bLen bytes 44 * bLen number of words containing left-justified bytes 45 * bIsMultipleChars indicates that the bytes contain more than one sequence 54 uint8_t bytes[4]; member in union:UCMapping::__anon13626 74 uint8_t *bytes; member in struct:UCMTable 77 /* index map for mapping by bytes first */ 114 (((m)->bLen<=4) ? (m)->b.bytes : (t)->bytes+(m)->b.idx) 128 /* @return -1 illegal bytes 0 suitable for base table 1 needs to go into extension table * [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
repair.cc | 78 unsigned long long bytes = 0; local 80 bytes += tables_[i].meta.file_size; 84 "recovered %d files; %llu bytes. " 89 bytes); 167 virtual void Corruption(size_t bytes, const Status& s) { 169 Log(info_log, "Log #%llu: dropping %d bytes; %s", 171 static_cast<int>(bytes),
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
macasyncsocket.cc | 388 const UInt8* bytes = reinterpret_cast<UInt8*>(&saddr); local 391 bytes, len);
|
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/client/ |
peer_connection_client.cc | 317 int bytes = socket->Recv(buffer, sizeof(buffer)); local 318 if (bytes <= 0) 320 data->append(buffer, bytes);
|
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/ |
data_socket.cc | 106 int bytes = recv(socket_, buffer, sizeof(buffer), 0); local 107 if (bytes == SOCKET_ERROR || bytes == 0) { 120 data_.append(buffer, bytes); 123 request_headers_.append(buffer, bytes);
|
/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
xmppclient.cc | 93 void WriteOutput(const char* bytes, size_t len); 364 char bytes[4096]; local 373 if (!socket_->Read(bytes, sizeof(bytes), &bytes_read)) { 382 client_->SignalLogInput(bytes, static_cast<int>(bytes_read)); 385 engine_->HandleInput(bytes, bytes_read); 404 void XmppClient::Private::WriteOutput(const char* bytes, size_t len) { 406 client_->SignalLogOutput(bytes, static_cast<int>(len)); 409 socket_->Write(bytes, len);
|