/external/chromium_org/base/ |
H A D | cpu.cc | 140 const size_t len = strlen(key); local 142 if (line.compare(0, len, key) == 0 && 143 line.size() >= len + 1 && 144 (line[len] == '\t' || line[len] == ' ' || line[len] == ':')) { 145 size_t colon_pos = line.find(':', len);
|
H A D | hash.cc | 10 extern "C" uint32_t SuperFastHash(const char* data, int len); 14 uint32 SuperFastHash(const char* data, int len) { argument 15 return ::SuperFastHash(data, len);
|
H A D | logging.cc | 715 DWORD len = FormatMessageA(flags, NULL, error_code, 0, msgbuf, local 717 if (len) {
|
H A D | md5.cc | 172 size_t len = data.size(); local 180 if ((ctx->bits[0] = t + ((uint32)len << 3)) < t) 182 ctx->bits[1] += static_cast<uint32>(len >> 29); 192 if (len < t) { 193 memcpy(p, buf, len); 200 len -= t; 205 while (len >= 64) { 210 len -= 64; 215 memcpy(ctx->in, buf, len);
|
H A D | md5_unittest.cc | 119 int len = 4097; // intentionally not 2^k. local 120 if (len > length - total) 121 len = length - total; 124 StringPiece(reinterpret_cast<char*>(data.get() + total), len)); 125 total += len;
|
H A D | pickle.cc | 134 int len; local 135 if (!ReadInt(&len)) 137 const char* read_from = GetReadPointerAndAdvance(len); 141 result->assign(read_from, len); 146 int len; local 147 if (!ReadInt(&len)) 149 const char* read_from = GetReadPointerAndAdvance(len, sizeof(wchar_t)); 153 result->assign(reinterpret_cast<const wchar_t*>(read_from), len); 158 int len; local 159 if (!ReadInt(&len)) [all...] |
H A D | safe_strerror_posix.cc | 39 size_t len) { 41 char *rc = (*strerror_r_ptr)(err, buf, len); 46 strncat(buf, rc, len - 1); 62 size_t len) { 69 int result = (*strerror_r_ptr)(err, buf, len); 75 buf[len - 1] = '\0'; 95 len, 103 void safe_strerror_r(int err, char *buf, size_t len) { argument 104 if (buf == NULL || len <= 0) { 111 wrap_posix_strerror_r(&strerror_r, err, buf, len); 35 wrap_posix_strerror_r( char *(*strerror_r_ptr)(int, char *, size_t), int err, char *buf, size_t len) argument 58 wrap_posix_strerror_r( int (*strerror_r_ptr)(int, char *, size_t), int err, char *buf, size_t len) argument [all...] |
H A D | sha1_portable.cc | 207 void SHA1HashBytes(const unsigned char* data, size_t len, argument 210 sha.Update(data, len);
|
H A D | sync_socket_posix.cc | 39 const int len = WriteFileDescriptor(handle, charbuffer, length); local 40 return len < 0 ? 0 : static_cast<size_t>(len); 229 const size_t len = SendHelper(handle_, buffer, length); local 236 return len;
|
H A D | sync_socket_win.cc | 146 DWORD len = 0; local 148 file, static_cast<BufferType*>(buffer) + count, chunk, &len, &ol); 166 if (!GetOverlappedResult(file, &ol, &len, TRUE)) 167 len = 0; 183 count += len; 186 if (len != chunk) 249 DWORD len; local 252 chunk, &len, NULL) == FALSE) { 255 count += len; 274 DWORD len; local [all...] |
H A D | sys_info_mac.cc | 82 size_t len = arraysize(name); local 83 if (sysctlbyname("machdep.cpu.brand_string", &name, &len, NULL, 0) == 0)
|
/external/chromium_org/base/debug/ |
H A D | stack_trace_posix.cc | 361 size_t len; local 366 len = static_cast<size_t>( 373 write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1)); 375 len = static_cast<size_t>( 384 write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1)); 386 len = static_cast<size_t>( 395 write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1));
|
/external/chromium_org/base/files/ |
H A D | file_util.cc | 143 size_t len; local 149 while ((len = fread(buf, 1, sizeof(buf), file)) > 0) { 151 contents->append(buf, std::min(len, max_size - size)); 153 if ((max_size - size) < len) { 158 size += len;
|
H A D | file_util_win.cc | 685 DWORD len = ::GetCurrentDirectory(MAX_PATH, system_buffer); local 686 if (len == 0 || len > MAX_PATH)
|
/external/chromium_org/base/json/ |
H A D | json_parser.cc | 884 int len = 0; local 889 ++len; 892 if (len == 0) 895 if (!allow_leading_zeros && len > 1 && first == '0') 943 bool JSONParser::StringsAreEqual(const char* one, const char* two, size_t len) { argument 944 return strncmp(one, two, len) == 0;
|
/external/chromium_org/base/process/ |
H A D | process_handle_openbsd.cc | 32 size_t len; local 36 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) == -1) 38 mib[5] = (len / sizeof(struct kinfo_proc)); 39 if (sysctl(mib, arraysize(mib), &kp, &len, NULL, 0) < 0)
|
H A D | process_info_mac.cc | 20 size_t len = 0; local 21 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) 25 proc(static_cast<struct kinfo_proc*>(malloc(len))); 26 if (sysctl(mib, arraysize(mib), proc.get(), &len, NULL, 0) < 0)
|
H A D | process_iterator_freebsd.cc | 27 size_t len = 0; local 28 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { 33 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); 38 len = num_of_kinfo_proc * sizeof(struct kinfo_proc); 39 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) <0) { 49 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc);
|
H A D | process_iterator_mac.cc | 33 size_t len = 0; local 34 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { 39 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); 44 len = num_of_kinfo_proc * sizeof(struct kinfo_proc); 46 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { 56 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc);
|
H A D | process_iterator_openbsd.cc | 27 size_t len = 0; local 28 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { 33 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); 38 len = num_of_kinfo_proc * sizeof(struct kinfo_proc); 39 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { 49 size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc);
|
H A D | process_metrics_mac.cc | 52 size_t len = sizeof(*cpu_type); local 55 &len,
|
H A D | process_metrics_openbsd.cc | 147 size_t len = sizeof(vmtotal); local 149 if (sysctl(mib, arraysize(mib), &vmtotal, &len, NULL, 0) < 0)
|
/external/chromium_org/base/strings/ |
H A D | safe_sprintf.cc | 171 // Inserts |padding|-|len| bytes worth of padding into the |buffer_|. 177 inline bool Pad(char pad, size_t padding, size_t len) { argument 180 DEBUG_CHECK(len >= 0); 181 for (; padding > len; --padding) { 184 IncrementCount(padding-len); 607 size_t len = 0; 609 ++len; 611 buffer.Pad(' ', padding, len);
|
H A D | safe_sprintf_unittest.cc | 374 size_t len; local 388 len = strlen(tmp.get()); 389 CHECK_GE(needed, len+1); 393 CHECK_LT(len, out_sz); 397 EXPECT_FALSE(tmp[len]); 414 for (size_t i = len+1; i < sz+2; ++i) 445 memcpy(buf, tmp.get(), len+1);
|
H A D | string_piece.h | 186 BasicStringPiece(const value_type* offset, size_type len) argument 187 : ptr_(offset), length_(len) {} 206 void set(const value_type* data, size_type len) { argument 208 length_ = len;
|