buf 80 android_webview/browser/net/android_stream_reader_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 11 base/big_endian.cc BigEndianReader::BigEndianReader(const char* buf, size_t len) buf 12 base/big_endian.cc : ptr_(buf), end_(ptr_ + len) {} buf 58 base/big_endian.cc BigEndianWriter::BigEndianWriter(char* buf, size_t len) buf 59 base/big_endian.cc : ptr_(buf), end_(ptr_ + len) {} buf 68 base/big_endian.cc bool BigEndianWriter::WriteBytes(const void* buf, size_t len) { buf 71 base/big_endian.cc memcpy(ptr_, buf, len); buf 20 base/big_endian.h inline void ReadBigEndian(const char buf[], T* out) { buf 21 base/big_endian.h *out = buf[0]; buf 25 base/big_endian.h *out |= static_cast<uint8>(buf[i]); buf 32 base/big_endian.h inline void WriteBigEndian(char buf[], T val) { buf 34 base/big_endian.h buf[sizeof(T)-i-1] = static_cast<char>(val & 0xFF); buf 41 base/big_endian.h inline void ReadBigEndian<uint8>(const char buf[], uint8* out) { buf 42 base/big_endian.h *out = buf[0]; buf 46 base/big_endian.h inline void WriteBigEndian<uint8>(char buf[], uint8 val) { buf 47 base/big_endian.h buf[0] = static_cast<char>(val); buf 54 base/big_endian.h BigEndianReader(const char* buf, size_t len); buf 80 base/big_endian.h BigEndianWriter(char* buf, size_t len); buf 86 base/big_endian.h bool WriteBytes(const void* buf, size_t len); buf 14 base/big_endian_unittest.cc char buf[2]; buf 24 base/big_endian_unittest.cc EXPECT_TRUE(reader.ReadBytes(buf, sizeof(buf))); buf 25 base/big_endian_unittest.cc EXPECT_EQ(0x2, buf[0]); buf 26 base/big_endian_unittest.cc EXPECT_EQ(0x3, buf[1]); buf 41 base/big_endian_unittest.cc char buf[2]; buf 56 base/big_endian_unittest.cc EXPECT_FALSE(reader.ReadBytes(buf, 2)); buf 66 base/big_endian_unittest.cc char buf[] = { 0x2, 0x3 }; buf 71 base/big_endian_unittest.cc EXPECT_TRUE(writer.WriteBytes(buf, sizeof(buf))); buf 80 base/big_endian_unittest.cc char buf[2]; buf 93 base/big_endian_unittest.cc EXPECT_FALSE(writer.WriteBytes(buf, 2)); buf 157 base/debug/debugger_posix.cc char buf[1024]; buf 159 base/debug/debugger_posix.cc ssize_t num_read = HANDLE_EINTR(read(status_fd, buf, sizeof(buf))); buf 166 base/debug/debugger_posix.cc StringPiece status(buf, num_read); buf 99 base/debug/stack_trace.h char *buf, buf 126 base/debug/stack_trace_posix.cc char buf[17] = { '\0' }; buf 129 base/debug/stack_trace_posix.cc buf, sizeof(buf), 16, 12); buf 130 base/debug/stack_trace_posix.cc handler->HandleOutput(buf); buf 138 base/debug/stack_trace_posix.cc char buf[30] = { '\0' }; buf 140 base/debug/stack_trace_posix.cc internal::itoa_r(frame_id, buf, sizeof(buf), 10, 1); buf 141 base/debug/stack_trace_posix.cc handler->HandleOutput(buf); buf 158 base/debug/stack_trace_posix.cc char buf[1024] = { '\0' }; buf 163 base/debug/stack_trace_posix.cc if (google::Symbolize(address, buf, sizeof(buf))) buf 164 base/debug/stack_trace_posix.cc handler->HandleOutput(buf); buf 218 base/debug/stack_trace_posix.cc char buf[1024] = { 0 }; buf 219 base/debug/stack_trace_posix.cc internal::itoa_r(signal, buf, sizeof(buf), 10, 0); buf 220 base/debug/stack_trace_posix.cc PrintToStderr(buf); buf 277 base/debug/stack_trace_posix.cc buf, sizeof(buf), 16, 12); buf 278 base/debug/stack_trace_posix.cc PrintToStderr(buf); buf 346 base/debug/stack_trace_posix.cc internal::itoa_r(registers[i].value, buf, sizeof(buf), buf 348 base/debug/stack_trace_posix.cc PrintToStderr(buf); buf 365 base/debug/stack_trace_posix.cc snprintf(buf, sizeof(buf), buf 371 base/debug/stack_trace_posix.cc write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1)); buf 374 base/debug/stack_trace_posix.cc snprintf(buf, sizeof(buf), buf 382 base/debug/stack_trace_posix.cc write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1)); buf 385 base/debug/stack_trace_posix.cc snprintf(buf, sizeof(buf), buf 393 base/debug/stack_trace_posix.cc write(STDERR_FILENO, buf, std::min(len, sizeof(buf) - 1)); buf 762 base/debug/stack_trace_posix.cc char *itoa_r(intptr_t i, char *buf, size_t sz, int base, size_t padding) { buf 769 base/debug/stack_trace_posix.cc buf[0] = '\000'; buf 773 base/debug/stack_trace_posix.cc char *start = buf; buf 783 base/debug/stack_trace_posix.cc buf[0] = '\000'; buf 795 base/debug/stack_trace_posix.cc buf[0] = '\000'; buf 819 base/debug/stack_trace_posix.cc return buf; buf 74 base/debug/trace_event_win_unittest.cc const void* buf)); buf 142 base/file_util.cc char buf[1 << 16]; buf 149 base/file_util.cc while ((len = fread(buf, 1, sizeof(buf), file)) > 0) { buf 151 base/file_util.cc contents->append(buf, std::min(len, max_size - size)); buf 87 base/file_util_posix.cc FilePath::CharType buf[PATH_MAX]; buf 88 base/file_util_posix.cc if (!realpath(path.value().c_str(), buf)) buf 91 base/file_util_posix.cc *real_path = FilePath(buf); buf 395 base/file_util_posix.cc char buf[PATH_MAX]; buf 396 base/file_util_posix.cc ssize_t count = ::readlink(symlink_path.value().c_str(), buf, arraysize(buf)); buf 403 base/file_util_posix.cc *target_path = FilePath(FilePath::StringType(buf, count)); buf 38 base/files/dir_reader_posix_unittest.cc char buf[16]; buf 39 base/files/dir_reader_posix_unittest.cc snprintf(buf, sizeof(buf), "%d", i); buf 40 base/files/dir_reader_posix_unittest.cc const int fd = open(buf, O_CREAT | O_RDONLY | O_EXCL, 0600); buf 77 base/files/dir_reader_posix_unittest.cc char buf[16]; buf 78 base/files/dir_reader_posix_unittest.cc snprintf(buf, sizeof(buf), "%d", i); buf 79 base/files/dir_reader_posix_unittest.cc PCHECK(unlink(buf) == 0); buf 86 base/linux_util.cc char buf[256]; buf 87 base/linux_util.cc const ssize_t n = readlink(path, buf, sizeof(buf) - 1); buf 95 base/linux_util.cc buf[n] = 0; buf 97 base/linux_util.cc if (memcmp(kSocketLinkPrefix, buf, sizeof(kSocketLinkPrefix) - 1)) { buf 107 base/linux_util.cc strtoull(buf + sizeof(kSocketLinkPrefix) - 1, &endptr, 10); buf 114 base/linux_util.cc "was too large. Please report this bug: " << buf; buf 186 base/linux_util.cc struct stat buf; buf 187 base/linux_util.cc if (fstat(fd, &buf) < 0) buf 190 base/linux_util.cc if (!S_ISSOCK(buf.st_mode)) buf 193 base/linux_util.cc *inode_out = buf.st_ino; buf 222 base/linux_util.cc char buf[256]; buf 223 base/linux_util.cc snprintf(buf, sizeof(buf), "/proc/%d/fd", current_pid); buf 224 base/linux_util.cc DIR* fd = opendir(buf); buf 229 base/linux_util.cc if (snprintf(buf, sizeof(buf), "/proc/%d/fd/%s", current_pid, buf 230 base/linux_util.cc dent->d_name) >= static_cast<int>(sizeof(buf))) { buf 235 base/linux_util.cc if (ProcPathGetInode(&fd_inode, buf)) { buf 257 base/linux_util.cc char buf[256]; buf 258 base/linux_util.cc snprintf(buf, sizeof(buf), "/proc/%d/task", pid); buf 263 base/linux_util.cc DIR* task = opendir(buf); buf 265 base/linux_util.cc DLOG(WARNING) << "Cannot open " << buf; buf 284 base/linux_util.cc snprintf(buf, sizeof(buf), "/proc/%d/task/%d/syscall", pid, current_tid); buf 285 base/linux_util.cc int fd = open(buf, O_RDONLY); buf 13 base/logging.cc #define write(fd, buf, count) _write(fd, buf, static_cast<unsigned int>(count)) buf 31 base/md5.cc uint32 buf[4]; buf 39 base/md5.cc void byteReverse(unsigned char *buf, unsigned longs) { buf 42 base/md5.cc t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 | buf 43 base/md5.cc ((unsigned)buf[1]<<8 | buf[0]); buf 44 base/md5.cc *(uint32 *)buf = t; buf 45 base/md5.cc buf += 4; buf 66 base/md5.cc void MD5Transform(uint32 buf[4], const uint32 in[16]) { buf 69 base/md5.cc a = buf[0]; buf 70 base/md5.cc b = buf[1]; buf 71 base/md5.cc c = buf[2]; buf 72 base/md5.cc d = buf[3]; buf 142 base/md5.cc buf[0] += a; buf 143 base/md5.cc buf[1] += b; buf 144 base/md5.cc buf[2] += c; buf 145 base/md5.cc buf[3] += d; buf 158 base/md5.cc ctx->buf[0] = 0x67452301; buf 159 base/md5.cc ctx->buf[1] = 0xefcdab89; buf 160 base/md5.cc ctx->buf[2] = 0x98badcfe; buf 161 base/md5.cc ctx->buf[3] = 0x10325476; buf 174 base/md5.cc const unsigned char* buf = (const unsigned char*)inbuf; buf 193 base/md5.cc memcpy(p, buf, len); buf 196 base/md5.cc memcpy(p, buf, t); buf 198 base/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 199 base/md5.cc buf += t; buf 206 base/md5.cc memcpy(ctx->in, buf, 64); buf 208 base/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 209 base/md5.cc buf += 64; buf 215 base/md5.cc memcpy(ctx->in, buf, len); buf 243 base/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 257 base/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 258 base/md5.cc byteReverse((unsigned char *)ctx->buf, 4); buf 259 base/md5.cc memcpy(digest->a, ctx->buf, 16); buf 291 base/message_loop/message_pump_libevent.cc char buf = 0; buf 292 base/message_loop/message_pump_libevent.cc int nwrite = HANDLE_EINTR(write(wakeup_pipe_in_, &buf, 1)); buf 367 base/message_loop/message_pump_libevent.cc char buf; buf 368 base/message_loop/message_pump_libevent.cc int nread = HANDLE_EINTR(read(socket, &buf, 1)); buf 265 base/nix/mime_util_xdg.cc std::string buf = ReadLine(fp); buf 266 base/nix/mime_util_xdg.cc if (buf == "") buf 270 base/nix/mime_util_xdg.cc base::TrimWhitespaceASCII(buf, base::TRIM_ALL, &entry); buf 21 base/posix/unix_domain_socket_linux.cc const void* buf, buf 25 base/posix/unix_domain_socket_linux.cc struct iovec iov = { const_cast<void*>(buf), length }; buf 58 base/posix/unix_domain_socket_linux.cc void* buf, buf 61 base/posix/unix_domain_socket_linux.cc return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds); buf 66 base/posix/unix_domain_socket_linux.cc void* buf, buf 73 base/posix/unix_domain_socket_linux.cc struct iovec iov = { buf, length }; buf 116 base/process/memory_unittest.cc void* buf = NULL; buf 121 base/process/memory_unittest.cc buf = malloc(std::numeric_limits<size_t>::max() - (2 * PAGE_SIZE) - 1); buf 126 base/process/memory_unittest.cc base::debug::Alias(buf); buf 132 base/process/memory_unittest.cc char buf[9]; buf 133 base/process/memory_unittest.cc asm("" : "=r" (buf)); // Prevent clang from being too smart. buf 137 base/process/memory_unittest.cc ASSERT_DEATH(free(buf), ""); buf 141 base/process/memory_unittest.cc ASSERT_DEATH(free(buf), "attempting free on address which " buf 144 base/process/memory_unittest.cc ASSERT_DEATH(free(buf), "being freed.*\\n?\\.*" buf 592 base/process/process_util_unittest.cc char buf[512]; buf 593 base/process/process_util_unittest.cc const ssize_t n = HANDLE_EINTR(read(fds[0], buf, sizeof(buf))); buf 598 base/process/process_util_unittest.cc return std::string(buf, n); buf 30 base/safe_strerror_posix.cc char *buf, buf 33 base/safe_strerror_posix.cc char *rc = (*strerror_r_ptr)(err, buf, len); buf 34 base/safe_strerror_posix.cc if (rc != buf) { buf 37 base/safe_strerror_posix.cc buf[0] = '\0'; buf 38 base/safe_strerror_posix.cc strncat(buf, rc, len - 1); buf 53 base/safe_strerror_posix.cc char *buf, buf 61 base/safe_strerror_posix.cc int result = (*strerror_r_ptr)(err, buf, len); buf 67 base/safe_strerror_posix.cc buf[len - 1] = '\0'; buf 86 base/safe_strerror_posix.cc snprintf(buf, buf 95 base/safe_strerror_posix.cc void safe_strerror_r(int err, char *buf, size_t len) { buf 96 base/safe_strerror_posix.cc if (buf == NULL || len <= 0) { buf 103 base/safe_strerror_posix.cc wrap_posix_strerror_r(&strerror_r, err, buf, len); buf 108 base/safe_strerror_posix.cc char buf[buffer_size]; buf 109 base/safe_strerror_posix.cc safe_strerror_r(err, buf, sizeof(buf)); buf 110 base/safe_strerror_posix.cc return std::string(buf); buf 28 base/safe_strerror_posix.h BASE_EXPORT void safe_strerror_r(int err, char *buf, size_t len); buf 427 base/strings/safe_sprintf.cc ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args, buf 441 base/strings/safe_sprintf.cc Buffer buffer(buf, sz); buf 653 base/strings/safe_sprintf.cc ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) { buf 664 base/strings/safe_sprintf.cc Buffer buffer(buf, sz); buf 178 base/strings/safe_sprintf.h BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, buf 196 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 204 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 210 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 218 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 223 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 231 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 237 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 245 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 250 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 258 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 264 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 272 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 277 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 285 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 291 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 299 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 303 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 308 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 313 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 318 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 322 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 327 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 331 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, T0 arg0, T1 arg1, buf 336 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 340 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 345 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 349 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, buf 354 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 358 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, buf 363 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 367 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, T0 arg0, T1 arg1, buf 372 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 376 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, T0 arg0, T1 arg1) { buf 380 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 384 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, T0 arg0, T1 arg1) { buf 388 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 392 base/strings/safe_sprintf.h ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, T0 arg0) { buf 396 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 400 base/strings/safe_sprintf.h ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, T0 arg0) { buf 404 base/strings/safe_sprintf.h return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); buf 408 base/strings/safe_sprintf.h BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt); buf 410 base/strings/safe_sprintf.h inline ssize_t SafeSPrintf(char (&buf)[N], const char* fmt) { buf 411 base/strings/safe_sprintf.h return SafeSNPrintf(buf, N, fmt); buf 27 base/strings/safe_sprintf_unittest.cc char buf[2] = { 'X', 'X' }; buf 30 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, -1, "")); buf 31 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[0]); buf 32 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[1]); buf 35 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); buf 36 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[0]); buf 37 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[1]); buf 40 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); buf 41 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[0]); buf 42 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[1]); buf 43 base/strings/safe_sprintf_unittest.cc buf[0] = 'X'; buf 46 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); buf 47 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[0]); buf 48 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[1]); buf 49 base/strings/safe_sprintf_unittest.cc buf[0] = 'X'; buf 52 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, SafeSPrintf(buf, "")); buf 53 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[0]); buf 54 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[1]); buf 55 base/strings/safe_sprintf_unittest.cc buf[0] = 'X'; buf 63 base/strings/safe_sprintf_unittest.cc char ref[20], buf[20]; buf 64 base/strings/safe_sprintf_unittest.cc memset(ref, 'X', sizeof(char) * arraysize(buf)); buf 65 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 68 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, -1, text)); buf 69 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf))); buf 72 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text)); buf 73 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf))); buf 76 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text)); buf 77 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[0]); buf 78 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf+1, ref+1, sizeof(buf)-1)); buf 79 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 83 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text)); buf 84 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(text[0], buf[0]); buf 85 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[1]); buf 86 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf+2, ref+2, sizeof(buf)-2)); buf 87 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 92 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, sizeof(buf), text)); buf 93 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(text), std::string(buf)); buf 94 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text), buf 95 base/strings/safe_sprintf_unittest.cc sizeof(buf) - sizeof(text))); buf 96 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 99 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSPrintf(buf, text)); buf 100 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(text), std::string(buf)); buf 101 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text), buf 102 base/strings/safe_sprintf_unittest.cc sizeof(buf) - sizeof(text))); buf 103 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 106 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%%")); buf 107 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%%")); buf 108 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%X")); buf 109 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%%%%X")); buf 111 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%")); buf 112 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%")); buf 113 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%X")); buf 114 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%%%X")); buf 116 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%"), "src.1. == '%'"); buf 117 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%%%"), "src.1. == '%'"); buf 118 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%X"), "src.1. == '%'"); buf 119 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%%%X"), "src.1. == '%'"); buf 127 base/strings/safe_sprintf_unittest.cc char ref[20], buf[20]; buf 128 base/strings/safe_sprintf_unittest.cc memset(ref, 'X', sizeof(buf)); buf 129 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 132 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, -1, fmt, ' ')); buf 133 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf))); buf 136 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(-1, SafeSNPrintf(buf, 0, fmt, ' ')); buf 137 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf))); buf 141 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 1, fmt, ' ')); buf 142 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[0]); buf 143 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf+1, ref+1, sizeof(buf)-1)); buf 144 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 149 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 2, fmt, ' ')); buf 150 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(text[0], buf[0]); buf 151 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[1]); buf 152 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf+2, ref+2, sizeof(buf)-2)); buf 153 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 158 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, sizeof(buf), fmt, ' ')); buf 159 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(text), std::string(buf)); buf 160 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text), buf 161 base/strings/safe_sprintf_unittest.cc sizeof(buf) - sizeof(text))); buf 162 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 165 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSPrintf(buf, fmt, ' ')); buf 166 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(text), std::string(buf)); buf 167 base/strings/safe_sprintf_unittest.cc EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text), buf 168 base/strings/safe_sprintf_unittest.cc sizeof(buf) - sizeof(text))); buf 169 base/strings/safe_sprintf_unittest.cc memcpy(buf, ref, sizeof(buf)); buf 172 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%%", 0)); buf 173 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%%", 0)); buf 174 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%Y", 0)); buf 175 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%Y", 0)); buf 176 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%%%Y", 0)); buf 177 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%%%%Y", 0)); buf 179 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%", 0)); buf 180 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%", 0)); buf 182 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%", 0), "ch"); buf 183 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%%%", 0), "ch"); buf 189 base/strings/safe_sprintf_unittest.cc char buf[20]; buf 190 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%c%c", 'A')); buf 191 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("A%c", std::string(buf)); buf 193 base/strings/safe_sprintf_unittest.cc char buf[20]; buf 194 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%c%c", 'A'), "cur_arg < max_args"); buf 204 base/strings/safe_sprintf_unittest.cc scoped_ptr<char[]> buf(new char[sizeof(kTestString)]); buf 206 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf.get(), sizeof(kTestString), kTestString)); buf 207 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(kTestString), std::string(buf.get())); buf 209 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf.get(), sizeof(kTestString), "%s", kTestString)); buf 210 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(kTestString), std::string(buf.get())); buf 219 base/strings/safe_sprintf_unittest.cc char buf[12]; buf 220 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%c", 1)); buf 221 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1", std::string(buf)); buf 222 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%c%c", 1, 2)); buf 223 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2", std::string(buf)); buf 224 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%c%c%c", 1, 2, 3)); buf 225 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3", std::string(buf)); buf 226 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%c%c%c%c", 1, 2, 3, 4)); buf 227 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4", std::string(buf)); buf 228 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(5, SafeSPrintf(buf, "%c%c%c%c%c", 1, 2, 3, 4, 5)); buf 229 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5", std::string(buf)); buf 230 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(6, SafeSPrintf(buf, "%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6)); buf 231 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6", std::string(buf)); buf 232 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(7, SafeSPrintf(buf, "%c%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6, 7)); buf 233 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7", std::string(buf)); buf 234 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(8, SafeSPrintf(buf, "%c%c%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6, 7, 8)); buf 235 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10", std::string(buf)); buf 236 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(9, SafeSPrintf(buf, "%c%c%c%c%c%c%c%c%c", buf 238 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10\11", std::string(buf)); buf 239 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(10, SafeSPrintf(buf, "%c%c%c%c%c%c%c%c%c%c", buf 243 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10\11\12", std::string(buf)); buf 244 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSNPrintf(buf, 11, "%c", 1)); buf 245 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1", std::string(buf)); buf 246 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSNPrintf(buf, 11, "%c%c", 1, 2)); buf 247 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2", std::string(buf)); buf 248 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSNPrintf(buf, 11, "%c%c%c", 1, 2, 3)); buf 249 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3", std::string(buf)); buf 250 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSNPrintf(buf, 11, "%c%c%c%c", 1, 2, 3, 4)); buf 251 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4", std::string(buf)); buf 252 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(5, SafeSNPrintf(buf, 11, "%c%c%c%c%c", 1, 2, 3, 4, 5)); buf 253 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5", std::string(buf)); buf 254 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(6, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6)); buf 255 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6", std::string(buf)); buf 256 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(7, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c", 1, 2, 3, 4, 5, 6, 7)); buf 257 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7", std::string(buf)); buf 258 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(8, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c", buf 260 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10", std::string(buf)); buf 261 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(9, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c%c", buf 263 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10\11", std::string(buf)); buf 264 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(10, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c%c%c", buf 266 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("\1\2\3\4\5\6\7\10\11\12", std::string(buf)); buf 270 base/strings/safe_sprintf_unittest.cc char buf[40]; buf 273 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (uint8_t)1)); buf 274 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 275 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%d", (uint8_t)-1)); buf 276 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("255", std::string(buf)); buf 277 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (int8_t)1)); buf 278 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 279 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%d", (int8_t)-1)); buf 280 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-1", std::string(buf)); buf 281 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%d", (int8_t)-128)); buf 282 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-128", std::string(buf)); buf 285 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (uint16_t)1)); buf 286 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 287 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(5, SafeSPrintf(buf, "%d", (uint16_t)-1)); buf 288 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("65535", std::string(buf)); buf 289 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (int16_t)1)); buf 290 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 291 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%d", (int16_t)-1)); buf 292 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-1", std::string(buf)); buf 293 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(6, SafeSPrintf(buf, "%d", (int16_t)-32768)); buf 294 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-32768", std::string(buf)); buf 297 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (uint32_t)1)); buf 298 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 299 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(10, SafeSPrintf(buf, "%d", (uint32_t)-1)); buf 300 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("4294967295", std::string(buf)); buf 301 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (int32_t)1)); buf 302 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 303 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%d", (int32_t)-1)); buf 304 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-1", std::string(buf)); buf 306 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(11, SafeSPrintf(buf, "%d", (int32_t)-2147483647-1)); buf 307 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-2147483648", std::string(buf)); buf 310 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (uint64_t)1)); buf 311 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 312 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(20, SafeSPrintf(buf, "%d", (uint64_t)-1)); buf 313 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("18446744073709551615", std::string(buf)); buf 314 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", (int64_t)1)); buf 315 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 316 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%d", (int64_t)-1)); buf 317 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-1", std::string(buf)); buf 319 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(20, SafeSPrintf(buf, "%d", (int64_t)-9223372036854775807LL-1)); buf 320 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-9223372036854775808", std::string(buf)); buf 323 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "test")); buf 324 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("test", std::string(buf)); buf 325 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, buf)); buf 326 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("test", std::string(buf)); buf 330 base/strings/safe_sprintf_unittest.cc sprintf(addr, "0x%llX", (unsigned long long)(uintptr_t)buf); buf 331 base/strings/safe_sprintf_unittest.cc SafeSPrintf(buf, "%p", buf); buf 332 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(addr), std::string(buf)); buf 333 base/strings/safe_sprintf_unittest.cc SafeSPrintf(buf, "%p", (const char *)buf); buf 334 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(addr), std::string(buf)); buf 336 base/strings/safe_sprintf_unittest.cc SafeSPrintf(buf, "%p", sprintf); buf 337 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(addr), std::string(buf)); buf 342 base/strings/safe_sprintf_unittest.cc sprintf(addr, "0x%017llX", (unsigned long long)(uintptr_t)buf); buf 343 base/strings/safe_sprintf_unittest.cc SafeSPrintf(buf, "%019p", buf); buf 344 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(addr), std::string(buf)); buf 345 base/strings/safe_sprintf_unittest.cc sprintf(addr, "0x%llX", (unsigned long long)(uintptr_t)buf); buf 349 base/strings/safe_sprintf_unittest.cc SafeSPrintf(buf, "%19p", buf); buf 350 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(addr), std::string(buf)); buf 354 base/strings/safe_sprintf_unittest.cc void PrintLongString(char* buf, size_t sz) { buf 444 base/strings/safe_sprintf_unittest.cc memcpy(buf, tmp.get(), len+1); buf 476 base/strings/safe_sprintf_unittest.cc char buf[sizeof(ref)]; buf 477 base/strings/safe_sprintf_unittest.cc PrintLongString(buf, i); buf 478 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(ref, i - 1), std::string(buf)); buf 490 base/strings/safe_sprintf_unittest.cc char buf[sizeof(ref)]; buf 491 base/strings/safe_sprintf_unittest.cc PrintLongString(buf, sizeof(buf)); buf 492 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(ref, i - 1), std::string(buf)); buf 498 base/strings/safe_sprintf_unittest.cc char buf[256]; buf 499 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(99, SafeSPrintf(buf, "%99c", ' ')); buf 500 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(99, ' '), std::string(buf)); buf 501 base/strings/safe_sprintf_unittest.cc *buf = '\000'; buf 503 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%100c", ' '), "padding <= max_padding"); buf 505 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, *buf); buf 510 base/strings/safe_sprintf_unittest.cc char buf[40], fmt[40]; buf 513 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%c", 'A')); buf 514 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("A", std::string(buf)); buf 515 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%2c", 'A')); buf 516 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" A", std::string(buf)); buf 517 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%02c", 'A')); buf 518 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" A", std::string(buf)); buf 519 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2c", 'A')); buf 520 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2c", std::string(buf)); buf 522 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::numeric_limits<ssize_t>::max()-1, SafeSPrintf(buf, fmt, 'A')); buf 526 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, 'A')); buf 527 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%c", std::string(buf)); buf 529 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, 'A'), "padding <= max_padding"); buf 533 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%o", 1)); buf 534 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 535 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%2o", 1)); buf 536 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 1", std::string(buf)); buf 537 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%02o", 1)); buf 538 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("01", std::string(buf)); buf 539 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(12, SafeSPrintf(buf, "%12o", -1)); buf 540 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 37777777777", std::string(buf)); buf 541 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(12, SafeSPrintf(buf, "%012o", -1)); buf 542 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("037777777777", std::string(buf)); buf 543 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(23, SafeSPrintf(buf, "%23o", -1LL)); buf 544 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 1777777777777777777777", std::string(buf)); buf 545 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(23, SafeSPrintf(buf, "%023o", -1LL)); buf 546 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("01777777777777777777777", std::string(buf)); buf 547 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%2o", 0111)); buf 548 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("111", std::string(buf)); buf 549 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2o", 1)); buf 550 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2o", std::string(buf)); buf 553 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 554 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 557 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 558 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("000", std::string(buf)); buf 562 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, 1)); buf 563 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%o", std::string(buf)); buf 565 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, 1), "padding <= max_padding"); buf 569 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", 1)); buf 570 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 571 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%2d", 1)); buf 572 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 1", std::string(buf)); buf 573 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%02d", 1)); buf 574 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("01", std::string(buf)); buf 575 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%3d", -1)); buf 576 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" -1", std::string(buf)); buf 577 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%03d", -1)); buf 578 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-01", std::string(buf)); buf 579 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%2d", 111)); buf 580 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("111", std::string(buf)); buf 581 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%2d", -111)); buf 582 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("-111", std::string(buf)); buf 583 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2d", 1)); buf 584 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2d", std::string(buf)); buf 587 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 588 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 591 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 592 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("000", std::string(buf)); buf 596 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, 1)); buf 597 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%d", std::string(buf)); buf 599 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, 1), "padding <= max_padding"); buf 603 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%X", 1)); buf 604 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("1", std::string(buf)); buf 605 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%2X", 1)); buf 606 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 1", std::string(buf)); buf 607 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%02X", 1)); buf 608 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("01", std::string(buf)); buf 609 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(9, SafeSPrintf(buf, "%9X", -1)); buf 610 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" FFFFFFFF", std::string(buf)); buf 611 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(9, SafeSPrintf(buf, "%09X", -1)); buf 612 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0FFFFFFFF", std::string(buf)); buf 613 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(17, SafeSPrintf(buf, "%17X", -1LL)); buf 614 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" FFFFFFFFFFFFFFFF", std::string(buf)); buf 615 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(17, SafeSPrintf(buf, "%017X", -1LL)); buf 616 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0FFFFFFFFFFFFFFFF", std::string(buf)); buf 617 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%2X", 0x111)); buf 618 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("111", std::string(buf)); buf 619 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2X", 1)); buf 620 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2X", std::string(buf)); buf 623 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 624 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 627 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, 1)); buf 628 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("000", std::string(buf)); buf 632 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, 1)); buf 633 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%X", std::string(buf)); buf 635 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, 1), "padding <= max_padding"); buf 639 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%p", (void*)1)); buf 640 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x1", std::string(buf)); buf 641 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%4p", (void*)1)); buf 642 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" 0x1", std::string(buf)); buf 643 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%04p", (void*)1)); buf 644 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x01", std::string(buf)); buf 645 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(5, SafeSPrintf(buf, "%4p", (void*)0x111)); buf 646 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x111", std::string(buf)); buf 647 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2p", (void*)1)); buf 648 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2p", std::string(buf)); buf 651 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, (void*)1)); buf 652 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 655 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, (void*)1)); buf 656 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x0", std::string(buf)); buf 660 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, 1)); buf 661 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%p", std::string(buf)); buf 663 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, 1), "padding <= max_padding"); buf 667 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%s", "A")); buf 668 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("A", std::string(buf)); buf 669 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%2s", "A")); buf 670 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" A", std::string(buf)); buf 671 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%02s", "A")); buf 672 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" A", std::string(buf)); buf 673 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%2s", "AAA")); buf 674 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("AAA", std::string(buf)); buf 675 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(4, SafeSPrintf(buf, "%-2s", "A")); buf 676 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%-2s", std::string(buf)); buf 679 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, "A")); buf 680 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 683 base/strings/safe_sprintf_unittest.cc SafeSNPrintf(buf, 4, fmt, "A")); buf 684 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(" ", std::string(buf)); buf 688 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, fmt, "A")); buf 689 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%s", std::string(buf)); buf 691 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, fmt, "A"), "padding <= max_padding"); buf 696 base/strings/safe_sprintf_unittest.cc char buf[] = { 'X', 'X', 'X', 'X' }; buf 697 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%3c", 0)); buf 698 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(' ', buf[0]); buf 699 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(' ', buf[1]); buf 700 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(0, buf[2]); buf 701 base/strings/safe_sprintf_unittest.cc EXPECT_EQ('X', buf[3]); buf 708 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%")); buf 709 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%%", std::string(buf)); buf 710 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(2, SafeSPrintf(buf, "%%%", 0)); buf 711 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("%%", std::string(buf)); buf 713 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%%%"), "src.1. == '%'"); buf 714 base/strings/safe_sprintf_unittest.cc EXPECT_DEATH(SafeSPrintf(buf, "%%%", 0), "ch"); buf 719 base/strings/safe_sprintf_unittest.cc char buf[40]; buf 724 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(1, SafeSPrintf(buf, "%d", NULL)); buf 725 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0", std::string(buf)); buf 726 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(3, SafeSPrintf(buf, "%p", NULL)); buf 727 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x0", std::string(buf)); buf 728 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(6, SafeSPrintf(buf, "%s", NULL)); buf 729 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("<NULL>", std::string(buf)); buf 743 base/strings/safe_sprintf_unittest.cc char buf[40]; buf 744 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(10, SafeSPrintf(buf, "%p", str)); buf 745 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x80000000", std::string(buf)); buf 746 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(10, SafeSPrintf(buf, "%p", ptr)); buf 747 base/strings/safe_sprintf_unittest.cc EXPECT_EQ("0x80000000", std::string(buf)); buf 85 base/strings/string_piece.cc typename STR::value_type* buf, buf 89 base/strings/string_piece.cc memcpy(buf, self.data() + pos, ret * sizeof(typename STR::value_type)); buf 93 base/strings/string_piece.cc size_t copy(const StringPiece& self, char* buf, size_t n, size_t pos) { buf 94 base/strings/string_piece.cc return copyT(self, buf, n, pos); buf 97 base/strings/string_piece.cc size_t copy(const StringPiece16& self, char16* buf, size_t n, size_t pos) { buf 98 base/strings/string_piece.cc return copyT(self, buf, n, pos); buf 60 base/strings/string_piece.h char* buf, buf 64 base/strings/string_piece.h char16* buf, buf 264 base/strings/string_piece.h size_type copy(value_type* buf, size_type n, size_type pos = 0) const { buf 265 base/strings/string_piece.h return internal::copy(*this, buf, n, pos); buf 215 base/strings/string_piece_unittest.cc typename TypeParam::value_type buf[4] = { '%', '%', '%', '%' }; buf 216 base/strings/string_piece_unittest.cc ASSERT_EQ(a.copy(buf, 4), 4U); buf 217 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[0], a[0]); buf 218 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[1], a[1]); buf 219 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[2], a[2]); buf 220 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[3], a[3]); buf 221 base/strings/string_piece_unittest.cc ASSERT_EQ(a.copy(buf, 3, 7), 3U); buf 222 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[0], a[7]); buf 223 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[1], a[8]); buf 224 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[2], a[9]); buf 225 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[3], a[3]); buf 226 base/strings/string_piece_unittest.cc ASSERT_EQ(c.copy(buf, 99), 3U); buf 227 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[0], c[0]); buf 228 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[1], c[1]); buf 229 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[2], c[2]); buf 230 base/strings/string_piece_unittest.cc ASSERT_EQ(buf[3], a[3]); buf 485 base/strings/string_util.cc char buf[64]; buf 487 base/strings/string_util.cc base::snprintf(buf, arraysize(buf), "%.1lf%s", unit_amount, buf 490 base/strings/string_util.cc base::snprintf(buf, arraysize(buf), "%.0lf%s", unit_amount, buf 494 base/strings/string_util.cc return base::ASCIIToUTF16(buf); buf 53 base/strings/sys_string_conversions_posix.cc char buf[16]; buf 55 base/strings/sys_string_conversions_posix.cc size_t res = src ? wcrtomb(buf, src, &ps) : 0; buf 140 base/third_party/symbolize/symbolize.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { buf 143 base/third_party/symbolize/symbolize.cc char *buf0 = reinterpret_cast<char *>(buf); buf 163 base/third_party/symbolize/symbolize.cc static ssize_t ReadFromOffset(const int fd, void *buf, buf 169 base/third_party/symbolize/symbolize.cc return ReadPersistent(fd, buf, count); buf 176 base/third_party/symbolize/symbolize.cc static bool ReadFromOffsetExact(const int fd, void *buf, buf 178 base/third_party/symbolize/symbolize.cc ssize_t len = ReadFromOffset(fd, buf, count, offset); buf 203 base/third_party/symbolize/symbolize.cc ElfW(Shdr) buf[16]; buf 205 base/third_party/symbolize/symbolize.cc const ssize_t num_bytes_left = (sh_num - i) * sizeof(buf[0]); buf 207 base/third_party/symbolize/symbolize.cc (sizeof(buf) > num_bytes_left) ? num_bytes_left : sizeof(buf); buf 208 base/third_party/symbolize/symbolize.cc const ssize_t len = ReadFromOffset(fd, buf, num_bytes_to_read, buf 209 base/third_party/symbolize/symbolize.cc sh_offset + i * sizeof(buf[0])); buf 210 base/third_party/symbolize/symbolize.cc SAFE_ASSERT(len % sizeof(buf[0]) == 0); buf 211 base/third_party/symbolize/symbolize.cc const ssize_t num_headers_in_buf = len / sizeof(buf[0]); buf 212 base/third_party/symbolize/symbolize.cc SAFE_ASSERT(num_headers_in_buf <= sizeof(buf) / sizeof(buf[0])); buf 214 base/third_party/symbolize/symbolize.cc if (buf[j].sh_type == type) { buf 215 base/third_party/symbolize/symbolize.cc *out = buf[j]; buf 298 base/third_party/symbolize/symbolize.cc ElfW(Sym) buf[NUM_SYMBOLS]; buf 299 base/third_party/symbolize/symbolize.cc const ssize_t len = ReadFromOffset(fd, &buf, sizeof(buf), offset); buf 300 base/third_party/symbolize/symbolize.cc SAFE_ASSERT(len % sizeof(buf[0]) == 0); buf 301 base/third_party/symbolize/symbolize.cc const ssize_t num_symbols_in_buf = len / sizeof(buf[0]); buf 302 base/third_party/symbolize/symbolize.cc SAFE_ASSERT(num_symbols_in_buf <= sizeof(buf)/sizeof(buf[0])); buf 304 base/third_party/symbolize/symbolize.cc const ElfW(Sym)& symbol = buf[j]; buf 398 base/third_party/symbolize/symbolize.cc explicit LineReader(int fd, char *buf, int buf_len) : fd_(fd), buf 399 base/third_party/symbolize/symbolize.cc buf_(buf), buf_len_(buf_len), bol_(buf), eol_(buf), eod_(buf) { buf 524 base/third_party/symbolize/symbolize.cc char buf[1024]; // Big enough for line of sane /proc/self/maps buf 526 base/third_party/symbolize/symbolize.cc LineReader reader(wrapped_maps_fd.get(), buf, sizeof(buf)); buf 637 base/third_party/symbolize/symbolize.cc char *itoa_r(intptr_t i, char *buf, size_t sz, int base, size_t padding) { buf 644 base/third_party/symbolize/symbolize.cc buf[0] = '\000'; buf 648 base/third_party/symbolize/symbolize.cc char *start = buf; buf 658 base/third_party/symbolize/symbolize.cc buf[0] = '\000'; buf 670 base/third_party/symbolize/symbolize.cc buf[0] = '\000'; buf 694 base/third_party/symbolize/symbolize.cc return buf; buf 714 base/third_party/symbolize/symbolize.cc char buf[17] = {'\0'}; buf 715 base/third_party/symbolize/symbolize.cc SafeAppendString(itoa_r(value, buf, sizeof(buf), 16, 0), dest, dest_size); buf 504 base/third_party/xdg_mime/xdgmime.c struct stat buf; buf 526 base/third_party/xdg_mime/xdgmime.c if (stat (file_name, &buf) != 0) buf 529 base/third_party/xdg_mime/xdgmime.c statbuf = &buf; buf 733 base/third_party/xdg_mime/xdgmimecache.c struct stat buf; buf 751 base/third_party/xdg_mime/xdgmimecache.c if (stat (file_name, &buf) != 0) buf 754 base/third_party/xdg_mime/xdgmimecache.c statbuf = &buf; buf 31 base/win/event_trace_provider_unittest.cc char buf[sizeof(EtwTraceProvider)] = {0}; buf 32 base/win/event_trace_provider_unittest.cc EtwTraceProvider& provider = reinterpret_cast<EtwTraceProvider&>(buf); buf 51 base/win/event_trace_provider_unittest.cc new (buf) EtwTraceProvider(kTestProvider); buf 146 base/win/registry.cc wchar_t buf[256]; buf 147 base/win/registry.cc DWORD bufsize = arraysize(buf); buf 148 base/win/registry.cc LONG r = ::RegEnumValue(key_, index, buf, &bufsize, NULL, NULL, NULL, NULL); buf 150 base/win/registry.cc *name = buf; buf 146 chrome/browser/chromeos/drive/drive_url_request_job.cc net::IOBuffer* buf, int buf_size, int* bytes_read) { buf 151 chrome/browser/chromeos/drive/drive_url_request_job.cc buf, buf_size, buf 63 chrome/browser/chromeos/drive/drive_url_request_job.h net::IOBuffer* buf, int buf_size, int* bytes_read) OVERRIDE; buf 69 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc int WebkitFileStreamWriterImpl::Write(net::IOBuffer* buf, buf 78 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc return local_file_writer_->Write(buf, buf_len, callback); buf 89 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc weak_ptr_factory_.GetWeakPtr(), make_scoped_refptr(buf), buf_len)); buf 133 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc net::IOBuffer* buf, buf 174 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc int result = local_file_writer_->Write(buf, buf_len, callback); buf 50 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 58 chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.h net::IOBuffer* buf, buf 109 chrome/browser/chromeos/policy/enterprise_install_attributes.cc char buf[16384]; buf 110 chrome/browser/chromeos/policy/enterprise_install_attributes.cc int len = base::ReadFile(cache_file, buf, sizeof(buf)); buf 111 chrome/browser/chromeos/policy/enterprise_install_attributes.cc if (len == -1 || len >= static_cast<int>(sizeof(buf))) { buf 117 chrome/browser/chromeos/policy/enterprise_install_attributes.cc if (!install_attrs_proto.ParseFromArray(buf, len)) { buf 72 chrome/browser/component_updater/component_unpacker.cc scoped_ptr<uint8[]> buf(new uint8[kBufSize]); buf 73 chrome/browser/component_updater/component_unpacker.cc while ((len = fread(buf.get(), 1, kBufSize, crx_file)) > 0) buf 74 chrome/browser/component_updater/component_unpacker.cc verifier.VerifyUpdate(buf.get(), len); buf 37 chrome/browser/devtools/adb/android_usb_socket.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 39 chrome/browser/devtools/adb/android_usb_socket.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 91 chrome/browser/diagnostics/diagnostics_writer.cc wchar_t buf[256]; buf 92 chrome/browser/diagnostics/diagnostics_writer.cc DWORD read = arraysize(buf); buf 93 chrome/browser/diagnostics/diagnostics_writer.cc ::ReadConsoleW(std_in_, buf, read, &read, NULL); buf 30 chrome/browser/extensions/api/socket/tcp_socket_unittest.cc MOCK_METHOD3(Read, int(net::IOBuffer* buf, int buf_len, buf 32 chrome/browser/extensions/api/socket/tcp_socket_unittest.cc MOCK_METHOD3(Write, int(net::IOBuffer* buf, int buf_len, buf 560 chrome/browser/extensions/sandboxed_unpacker.cc unsigned char buf[1 << 12]; buf 561 chrome/browser/extensions/sandboxed_unpacker.cc while ((len = fread(buf, 1, sizeof(buf), file.get())) > 0) buf 562 chrome/browser/extensions/sandboxed_unpacker.cc verifier.VerifyUpdate(buf, len); buf 11 chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc net::IOBuffer* buf, int64 offset, int buf_len, buf 15 chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc buf(buf), buf 53 chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h net::IOBuffer* buf, int64 offset, int buf_len, buf 59 chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h scoped_refptr<net::IOBuffer> buf; buf 97 chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h net::IOBuffer* buf, int64 offset, int buf_len, buf 45 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc const fileapi::FileSystemURL& url, net::IOBuffer* buf, int64 offset, buf 57 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc make_scoped_refptr(buf), buf 82 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc int MTPFileStreamReader::Read(net::IOBuffer* buf, int buf_len, buf 97 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc header_buf = buf; buf 108 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc make_scoped_refptr(buf), buf_len, callback), buf 113 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc ReadBytes(url_, buf, current_offset_, buf_len, buf 141 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc net::IOBuffer* buf, int buf_len, buf 158 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc if (header_buf == buf) buf 163 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc ReadBytes(url_, buf, current_offset_, buf_len, buf 35 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 43 chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h net::IOBuffer* buf, int buf_len, buf 32 chrome/browser/media_galleries/fileapi/native_media_file_util.cc base::File::Error IsMediaHeader(const char* buf, size_t length) { buf 37 chrome/browser/media_galleries/fileapi/native_media_file_util.cc if (!net::SniffMimeTypeFromLocalData(buf, length, &mime_type)) buf 78 chrome/browser/media_galleries/fileapi/native_media_file_util.cc net::IOBuffer* buf, size_t length) { buf 79 chrome/browser/media_galleries/fileapi/native_media_file_util.cc return IsMediaHeader(buf->data(), length); buf 30 chrome/browser/media_galleries/fileapi/native_media_file_util.h static base::File::Error BufferIsMediaHeader(net::IOBuffer* buf, buf 33 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc net::IOBuffer* buf, int buf_len, const net::CompletionCallback& callback) { buf 40 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc new net::DrainableIOBuffer(buf, buf_len); buf 104 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kBufferSize)); buf 106 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc buf, buf 109 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc weak_factory_.GetWeakPtr(), buf)); buf 112 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc OnFinishReadFromSource(buf, result); buf 115 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc void ReadaheadFileStreamReader::OnFinishReadFromSource(net::IOBuffer* buf, buf 124 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc new net::DrainableIOBuffer(buf, result)); buf 24 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 291 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc net::IOBuffer* buf, int64 offset, int buf_len, buf 300 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc device_file_relative_path, buf, offset, buf_len, buf 76 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h net::IOBuffer* buf, int64 offset, int buf_len, buf 204 chrome/browser/media_galleries/linux/mtp_device_task_helper.cc DCHECK(request.buf); buf 247 chrome/browser/media_galleries/linux/mtp_device_task_helper.cc std::copy(data.begin(), data.end(), request.buf->data()); buf 55 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h net::IOBuffer* buf, int64 offset, int buf_len, buf 451 chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc net::IOBuffer* buf, int64 offset, int buf_len, buf 109 chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h net::IOBuffer* buf, int64 offset, int buf_len, buf 21 chrome/browser/metrics/extension_metrics.cc uint64 CityHash64(const char *buf, size_t len); buf 123 chrome/browser/process_info_snapshot_mac_unittest.cc char buf[1]; buf 124 chrome/browser/process_info_snapshot_mac_unittest.cc PCHECK(HANDLE_EINTR(read(fds[0], buf, 1)) == 1); buf 178 chrome/browser/process_singleton_linux.cc ssize_t ReadFromSocket(int fd, char *buf, size_t bufsize, int timeout) { buf 187 chrome/browser/process_singleton_linux.cc ssize_t rv = HANDLE_EINTR(read(fd, buf + bytes_read, bufsize - bytes_read)); buf 802 chrome/browser/process_singleton_linux.cc char buf[kMaxACKMessageLength + 1]; buf 804 chrome/browser/process_singleton_linux.cc ReadFromSocket(socket.fd(), buf, kMaxACKMessageLength, timeout_seconds); buf 813 chrome/browser/process_singleton_linux.cc buf[len] = '\0'; buf 814 chrome/browser/process_singleton_linux.cc if (strncmp(buf, kShutdownToken, arraysize(kShutdownToken) - 1) == 0) { buf 817 chrome/browser/process_singleton_linux.cc } else if (strncmp(buf, kACKToken, arraysize(kACKToken) - 1) == 0) { buf 834 chrome/browser/process_singleton_linux.cc NOTREACHED() << "The other process returned unknown message: " << buf; buf 230 chrome/browser/process_singleton_linux_unittest.cc char buf[PATH_MAX]; buf 231 chrome/browser/process_singleton_linux_unittest.cc ssize_t len = readlink(lock_path_.value().c_str(), buf, PATH_MAX); buf 237 chrome/browser/process_singleton_linux_unittest.cc len = readlink(socket_path_.value().c_str(), buf, PATH_MAX); buf 239 chrome/browser/process_singleton_linux_unittest.cc base::FilePath socket_target_path = base::FilePath(std::string(buf, len)); buf 244 chrome/browser/process_singleton_linux_unittest.cc len = readlink(cookie_path_.value().c_str(), buf, PATH_MAX); buf 246 chrome/browser/process_singleton_linux_unittest.cc std::string cookie(buf, len); buf 250 chrome/browser/process_singleton_linux_unittest.cc len = readlink(remote_cookie_path.value().c_str(), buf, PATH_MAX); buf 252 chrome/browser/process_singleton_linux_unittest.cc EXPECT_EQ(cookie, std::string(buf, len)); buf 365 chrome/browser/process_singleton_linux_unittest.cc char buf[PATH_MAX]; buf 366 chrome/browser/process_singleton_linux_unittest.cc ssize_t len = readlink(socket_path_.value().c_str(), buf, sizeof(buf)); buf 368 chrome/browser/process_singleton_linux_unittest.cc base::FilePath socket_target_path = base::FilePath(std::string(buf, len)); buf 74 chrome/browser/safe_browsing/malware_details_unittest.cc scoped_refptr<net::WrappedIOBuffer> buf(new net::WrappedIOBuffer( buf 79 chrome/browser/safe_browsing/malware_details_unittest.cc int rv = entry->WriteData(0, 0, buf.get(), len, cb.callback(), true); buf 88 chrome/browser/safe_browsing/malware_details_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(len)); buf 89 chrome/browser/safe_browsing/malware_details_unittest.cc memcpy(buf->data(), data.data(), data.length()); buf 92 chrome/browser/safe_browsing/malware_details_unittest.cc int rv = entry->WriteData(1, 0, buf.get(), len, cb.callback(), true); buf 135 chrome/browser/safe_browsing/prefix_set_unittest.cc char buf[1024]; buf 136 chrome/browser/safe_browsing/prefix_set_unittest.cc size_t nitems = std::min(payload_size - digested_size, sizeof(buf)); buf 137 chrome/browser/safe_browsing/prefix_set_unittest.cc ASSERT_EQ(nitems, fread(buf, 1, nitems, fp)); buf 138 chrome/browser/safe_browsing/prefix_set_unittest.cc base::MD5Update(&context, base::StringPiece(buf, nitems)); buf 479 chrome/browser/safe_browsing/prefix_set_unittest.cc const char buf[] = "im in ur base, killing ur d00dz."; buf 480 chrome/browser/safe_browsing/prefix_set_unittest.cc ASSERT_EQ(strlen(buf), fwrite(buf, 1, strlen(buf), file.get())); buf 675 chrome/browser/safe_browsing/safe_browsing_store_file.cc char buf[4096]; buf 676 chrome/browser/safe_browsing/safe_browsing_store_file.cc const size_t c = std::min(sizeof(buf), bytes_left); buf 677 chrome/browser/safe_browsing/safe_browsing_store_file.cc const size_t ret = fread(buf, 1, c, file_.get()); buf 682 chrome/browser/safe_browsing/safe_browsing_store_file.cc base::MD5Update(&context, base::StringPiece(buf, c)); buf 228 chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc char buf[18]; buf 230 chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc base::snprintf(buf, arraysize(buf), "http://foo.com/%d", i); buf 232 chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc GURL(std::string(buf)), base::Time::Now(), NULL, 1, buf 193 chrome/installer/mac/third_party/bsdiff/goobsdiff.c static inline void offtout(off_t x,u_char *buf) buf 195 chrome/installer/mac/third_party/bsdiff/goobsdiff.c *((off_t*)buf) = htole64(x); buf 244 chrome/installer/mac/third_party/bsdiff/goobsdiff.c static char make_small(u_char **buf, off_t *buf_len) buf 246 chrome/installer/mac/third_party/bsdiff/goobsdiff.c u_char *source = *buf; buf 265 chrome/installer/mac/third_party/bsdiff/goobsdiff.c *buf = bz2; buf 284 chrome/installer/mac/third_party/bsdiff/goobsdiff.c *buf = gz; buf 312 chrome/installer/mac/third_party/bsdiff/goobsdiff.c *buf = lzma; buf 56 chrome/installer/mac/third_party/bsdiff/goobspatch.c static inline off_t offtin(u_char *buf) buf 58 chrome/installer/mac/third_party/bsdiff/goobspatch.c return le64toh(*((off_t*)buf)); buf 162 chrome/installer/mac/third_party/bsdiff/goobspatch.c static size_t xzread(xzfile *xzf, u_char *buf, size_t len, lzma_ret *err) buf 224 chrome/installer/mac/third_party/bsdiff/goobspatch.c memcpy(buf, xzf->read_out, copylen); buf 226 chrome/installer/mac/third_party/bsdiff/goobspatch.c buf += copylen; buf 321 chrome/installer/mac/third_party/bsdiff/goobspatch.c static void cfread(cfile *cf, u_char *buf, size_t len) buf 328 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((nread = fread(buf, 1, len, cf->f)) != len) { buf 336 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((nread = BZ2_bzRead(&bz2_err, cf->u.bz2, buf, len)) != buf 345 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((nread = gzread(cf->u.gz, buf, len)) != len) { buf 354 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((nread = xzread(cf->u.xz, buf, len, &lzma_err)) != len) { buf 373 chrome/installer/mac/third_party/bsdiff/goobspatch.c u_char header[96], buf[8]; buf 468 chrome/installer/mac/third_party/bsdiff/goobspatch.c cfread(&cf, buf, 8); buf 469 chrome/installer/mac/third_party/bsdiff/goobspatch.c ctrl[i]=offtin(buf); buf 549 chrome/renderer/chrome_render_view_observer.cc char buf[128]; buf 550 chrome/renderer/chrome_render_view_observer.cc sprintf_s(buf, "%d chars retrieved for indexing in %gms\n", buf 552 chrome/renderer/chrome_render_view_observer.cc OutputDebugStringA(buf); buf 54 chrome/test/base/chrome_test_suite.cc char buf[80]; buf 55 chrome/test/base/chrome_test_suite.cc int num_read = readlink(base::kProcSelfExe, buf, sizeof(buf) - 1); buf 58 chrome/test/base/chrome_test_suite.cc buf[num_read] = 0; buf 60 chrome/test/base/chrome_test_suite.cc return !strncmp(strrchr(buf, '/'), kPythonPrefix, sizeof(kPythonPrefix) - 1); buf 45 chrome/tools/convert_dict/convert_dict.cc char buf[buf_size]; buf 47 chrome/tools/convert_dict/convert_dict.cc int affix_matches = iter.Advance(buf, buf_size, affix_ids); buf 53 chrome/tools/convert_dict/convert_dict.cc if (org_words[i].first != buf) { buf 54 chrome/tools/convert_dict/convert_dict.cc printf("Word doesn't match, word #%s\n", buf); buf 59 chrome/tools/convert_dict/convert_dict.cc printf("Different number of affix indices, word #%s\n", buf); buf 67 chrome/tools/convert_dict/convert_dict.cc printf("Index doesn't match, word #%s\n", buf); buf 36 chrome/tools/convert_dict/convert_dict_unittest.cc char buf[kBufSize]; buf 41 chrome/tools/convert_dict/convert_dict_unittest.cc int affix_matches = iter.Advance(buf, kBufSize, affix_ids); buf 43 chrome/tools/convert_dict/convert_dict_unittest.cc EXPECT_EQ(org_words[i].first, std::string(buf)); buf 339 chrome/utility/importer/ie_importer_win.cc std::vector<char> buf(info_size); buf 341 chrome/utility/importer/ie_importer_win.cc reinterpret_cast<INTERNET_CACHE_ENTRY_INFO*>(&buf[0]); buf 37 chromeos/cryptohome/cryptohome_util.cc std::vector<uint8> buf; buf 40 chromeos/cryptohome/cryptohome_util.cc InstallAttributesGet(name, &buf, &success); buf 43 chromeos/cryptohome/cryptohome_util.cc DCHECK(!buf.empty()); buf 44 chromeos/cryptohome/cryptohome_util.cc DCHECK_EQ(buf.back(), 0); buf 45 chromeos/cryptohome/cryptohome_util.cc value->assign(reinterpret_cast<char*>(buf.data()), buf.size() - 1); buf 52 chromeos/cryptohome/cryptohome_util.cc std::vector<uint8> buf(value.c_str(), value.c_str() + value.size() + 1); buf 55 chromeos/cryptohome/cryptohome_util.cc InstallAttributesSet(name, buf, &success); buf 51 chromeos/dbus/fake_bluetooth_device_client.cc char buf[1024]; buf 55 chromeos/dbus/fake_bluetooth_device_client.cc len = read(fd, buf, sizeof buf); buf 62 chromeos/dbus/fake_bluetooth_device_client.cc len = write(fd, buf, count); buf 195 chromeos/settings/timezone_settings.cc char buf[256]; buf 196 chromeos/settings/timezone_settings.cc const ssize_t len = readlink(kTimezoneSymlink, buf, buf 197 chromeos/settings/timezone_settings.cc sizeof(buf)-1); buf 204 chromeos/settings/timezone_settings.cc std::string timezone(buf, len); buf 150 cloud_print/gcp20/prototype/dns_sd_server.cc void DnsSdServer::ProcessMessage(int len, net::IOBufferWithSize* buf) { buf 154 cloud_print/gcp20/prototype/dns_sd_server.cc DnsPacketParser parser(buf->data(), len); buf 66 cloud_print/gcp20/prototype/dns_sd_server.h void ProcessMessage(int len, net::IOBufferWithSize* buf); buf 65 cloud_print/service/service_state.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kBufSize)); buf 67 cloud_print/service/service_state.cc while (request->Read(buf.get(), kBufSize, &num_bytes)) { buf 68 cloud_print/service/service_state.cc data_.append(buf->data(), buf->data() + num_bytes); buf 527 components/breakpad/app/breakpad_linux.cc size_t WriteLog(const char* buf, size_t nbytes) { buf 529 components/breakpad/app/breakpad_linux.cc return __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, buf); buf 531 components/breakpad/app/breakpad_linux.cc return sys_write(2, buf, nbytes); buf 98 components/nacl/browser/pnacl_translation_cache_unittest.cc void SetResult(int rv, scoped_refptr<net::DrainableIOBuffer> buf) { buf 101 components/nacl/browser/pnacl_translation_cache_unittest.cc buf_ = buf; buf 113 components/nacl/browser/pnacl_translation_cache_unittest.cc scoped_refptr<net::DrainableIOBuffer> buf(load_cb.GetResult(&rv)); buf 115 components/nacl/browser/pnacl_translation_cache_unittest.cc if (buf.get() == NULL) // for some reason ASSERT macros don't work here. buf 117 components/nacl/browser/pnacl_translation_cache_unittest.cc std::string nexe(buf->data(), buf->size()); buf 282 components/nacl/browser/pnacl_translation_cache_unittest.cc scoped_refptr<net::DrainableIOBuffer> buf(load_cb.GetResult(&rv)); buf 240 components/nacl/loader/nacl_helper_linux.cc char buf[kNaClMaxIPCMessageLength]; buf 242 components/nacl/loader/nacl_helper_linux.cc &buf, sizeof(buf), &fds); buf 259 components/nacl/loader/nacl_helper_linux.cc Pickle read_pickle(buf, msglen); buf 46 components/nacl/loader/nacl_ipc_adapter_unittest.cc int BlockingReceive(void* buf, size_t buf_size) { buf 47 components/nacl/loader/nacl_ipc_adapter_unittest.cc NaClImcMsgIoVec iov = {buf, buf_size}; buf 52 components/nacl/loader/nacl_ipc_adapter_unittest.cc int Send(void* buf, size_t buf_size) { buf 53 components/nacl/loader/nacl_ipc_adapter_unittest.cc NaClImcMsgIoVec iov = {buf, buf_size}; buf 87 components/nacl/loader/nacl_ipc_adapter_unittest.cc char buf[kBufSize]; buf 89 components/nacl/loader/nacl_ipc_adapter_unittest.cc int bytes_read = BlockingReceive(buf, kBufSize); buf 94 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); buf 104 components/nacl/loader/nacl_ipc_adapter_unittest.cc *reinterpret_cast<const int*>(&buf[ buf 116 components/nacl/loader/nacl_ipc_adapter_unittest.cc char buf[buf_size] = {0}; buf 119 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<NaClIPCAdapter::NaClMessageHeader*>(buf); buf 126 components/nacl/loader/nacl_ipc_adapter_unittest.cc &buf[sizeof(NaClIPCAdapter::NaClMessageHeader)]) = value; buf 128 components/nacl/loader/nacl_ipc_adapter_unittest.cc int result = Send(buf, buf_size); buf 145 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = Send(buf, first_chunk_size); buf 154 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = Send(&buf[first_chunk_size], second_chunk_size); buf 161 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = Send(&buf[first_chunk_size + second_chunk_size], buf 191 components/nacl/loader/nacl_ipc_adapter_unittest.cc char buf[kBufSize]; buf 195 components/nacl/loader/nacl_ipc_adapter_unittest.cc int bytes_read = BlockingReceive(buf, bytes_requested); buf 199 components/nacl/loader/nacl_ipc_adapter_unittest.cc bytes_read += BlockingReceive(&buf[bytes_requested], buf 206 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); buf 212 components/nacl/loader/nacl_ipc_adapter_unittest.cc bytes_read = BlockingReceive(buf, kBufSize); buf 216 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); buf 234 components/nacl/loader/nacl_ipc_adapter_unittest.cc char buf[big_buf_size] = {0}; buf 237 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<NaClIPCAdapter::NaClMessageHeader*>(buf); buf 244 components/nacl/loader/nacl_ipc_adapter_unittest.cc &buf[sizeof(NaClIPCAdapter::NaClMessageHeader)]) = value; buf 247 components/nacl/loader/nacl_ipc_adapter_unittest.cc int result = Send(buf, big_buf_size); buf 254 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = Send(buf, first_chunk_size); buf 262 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = Send(&buf[first_chunk_size], second_chunk_size); buf 299 components/nacl/loader/nacl_ipc_adapter_unittest.cc char buf[kBufSize]; buf 300 components/nacl/loader/nacl_ipc_adapter_unittest.cc int result = BlockingReceive(buf, kBufSize); buf 305 components/nacl/loader/nacl_ipc_adapter_unittest.cc result = BlockingReceive(buf, kBufSize); buf 34 components/nacl/loader/nonsfi/irt_fdio.cc int IrtRead(int fd, void* buf, size_t count, size_t* nread) { buf 35 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(read(fd, buf, count), nread); buf 38 components/nacl/loader/nonsfi/irt_fdio.cc int IrtWrite(int fd, const void* buf, size_t count, size_t* nwrote) { buf 39 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(write(fd, buf, count), nwrote); buf 56 components/nacl/loader/nonsfi/irt_fdio.cc int IrtGetDents(int fd, struct nacl_abi_dirent* buf, size_t count, buf 213 components/nacl/zygote/nacl_fork_delegate_linux.cc char buf[kExpectedLength]; buf 216 components/nacl/zygote/nacl_fork_delegate_linux.cc const ssize_t nread = HANDLE_EINTR(read(fds[0], buf, sizeof(buf))); buf 218 components/nacl/zygote/nacl_fork_delegate_linux.cc memcmp(buf, kNaClHelperStartupAck, nread) == 0) { buf 10 components/rappor/bloom_filter.cc extern uint64 CityHash64WithSeed(const char *buf, size_t len, uint64 seed); buf 67 components/storage_monitor/mtab_watcher_linux.cc char buf[512]; buf 71 components/storage_monitor/mtab_watcher_linux.cc while (getmntent_r(fp, &entry, buf, sizeof(buf))) { buf 281 content/browser/appcache/view_appcache_internals_job.cc void EmitHexDump(const char *buf, size_t buf_len, size_t total_len, buf 286 content/browser/appcache/view_appcache_internals_job.cc net::ViewCacheHelper::HexDump(buf, buf_len, out); buf 285 content/browser/download/download_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 289 content/browser/download/download_resource_handler.cc DCHECK(buf && buf_size); buf 295 content/browser/download/download_resource_handler.cc *buf = read_buffer_.get(); buf 76 content/browser/download/download_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 84 content/browser/download/save_file_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 87 content/browser/download/save_file_resource_handler.cc DCHECK(buf && buf_size); buf 92 content/browser/download/save_file_resource_handler.cc *buf = read_buffer_.get(); buf 56 content/browser/download/save_file_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 205 content/browser/fileapi/blob_url_request_job_unittest.cc const char* buf, int buf_size, buf 215 content/browser/fileapi/blob_url_request_job_unittest.cc file_system_context_, url, buf, buf_size)); buf 49 content/browser/fileapi/file_system_file_stream_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf( buf 51 content/browser/fileapi/file_system_file_stream_reader_unittest.cc int rv = reader->Read(buf.get(), buf->size(), callback.callback()); buf 59 content/browser/fileapi/file_system_file_stream_reader_unittest.cc data->append(buf->data(), rv); buf 107 content/browser/fileapi/file_system_file_stream_reader_unittest.cc const char* buf, buf 114 content/browser/fileapi/file_system_file_stream_reader_unittest.cc file_system_context_, url, buf, buf_size)); buf 262 content/browser/fileapi/file_system_file_stream_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf( buf 264 content/browser/fileapi/file_system_file_stream_reader_unittest.cc int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); buf 197 content/browser/fileapi/file_system_url_request_job_unittest.cc const char* buf, int buf_size) { buf 204 content/browser/fileapi/file_system_url_request_job_unittest.cc file_system_context_, url, buf, buf_size)); buf 182 content/browser/fileapi/file_writer_delegate_unittest.cc virtual bool ReadRawData(net::IOBuffer* buf, buf 189 content/browser/fileapi/file_writer_delegate_unittest.cc buf->data()[i] = content_[cursor_++]; buf 73 content/browser/fileapi/upload_file_system_file_element_reader.cc net::IOBuffer* buf, buf 86 content/browser/fileapi/upload_file_system_file_element_reader.cc buf, num_bytes_to_read, buf 40 content/browser/fileapi/upload_file_system_file_element_reader.h virtual int Read(net::IOBuffer* buf, buf 88 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc const char* buf, buf 99 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc file_system_context_, url, buf, buf_size)); buf 127 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 131 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback.callback())); buf 132 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(buf->size(), read_callback.WaitForResult()); buf 134 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_TRUE(std::equal(file_data_.begin(), file_data_.end(), buf->data())); buf 136 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(0, reader_->Read(buf.get(), buf->size(), read_callback.callback())); buf 143 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 148 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback1.callback())); buf 149 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(buf->size(), read_callback1.WaitForResult()); buf 150 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(file_data_.size() - buf->size(), reader_->BytesRemaining()); buf 152 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc buf->data())); buf 156 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback2.callback())); buf 157 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(buf->size(), read_callback2.WaitForResult()); buf 160 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc buf->data())); buf 165 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 169 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback.callback())); buf 172 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_TRUE(std::equal(file_data_.begin(), file_data_.end(), buf->data())); buf 176 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 182 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback1.callback())); buf 183 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(buf->size(), read_callback1.WaitForResult()); buf 185 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_TRUE(std::equal(file_data_.begin(), file_data_.end(), buf->data())); buf 197 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback2.callback())); buf 198 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_EQ(buf->size(), read_callback2.WaitForResult()); buf 200 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc EXPECT_TRUE(std::equal(file_data_.begin(), file_data_.end(), buf->data())); buf 204 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 210 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback1.callback())); buf 249 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = new net::IOBufferWithSize(kLength); buf 252 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc reader_->Read(buf.get(), buf->size(), read_callback.callback())); buf 256 content/browser/fileapi/upload_file_system_file_element_reader_unittest.cc buf->data())); buf 241 content/browser/loader/async_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 253 content/browser/loader/async_resource_handler.cc *buf = new DependentIOBuffer(buffer_.get(), memory); buf 56 content/browser/loader/async_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 66 content/browser/loader/buffered_resource_handler.cc DependentIOBuffer(net::IOBuffer* buf, int offset) buf 67 content/browser/loader/buffered_resource_handler.cc : net::WrappedIOBuffer(buf->data() + offset), buf 68 content/browser/loader/buffered_resource_handler.cc buf_(buf) { buf 150 content/browser/loader/buffered_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 154 content/browser/loader/buffered_resource_handler.cc return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); buf 160 content/browser/loader/buffered_resource_handler.cc *buf = new DependentIOBuffer(read_buffer_.get(), bytes_read_); buf 163 content/browser/loader/buffered_resource_handler.cc if (!next_handler_->OnWillRead(request_id, buf, buf_size, min_size)) buf 166 content/browser/loader/buffered_resource_handler.cc read_buffer_ = *buf; buf 465 content/browser/loader/buffered_resource_handler.cc scoped_refptr<net::IOBuffer> buf; buf 467 content/browser/loader/buffered_resource_handler.cc if (!next_handler_->OnWillRead(request_id, &buf, &buf_len, bytes_read_)) buf 471 content/browser/loader/buffered_resource_handler.cc memcpy(buf->data(), read_buffer_->data(), bytes_read_); buf 40 content/browser/loader/buffered_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 66 content/browser/loader/certificate_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 72 content/browser/loader/certificate_resource_handler.cc DCHECK(buf && buf_size); buf 76 content/browser/loader/certificate_resource_handler.cc *buf = read_buffer_.get(); buf 64 content/browser/loader/certificate_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 219 content/browser/loader/detachable_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 226 content/browser/loader/detachable_resource_handler.cc *buf = read_buffer_; buf 231 content/browser/loader/detachable_resource_handler.cc return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); buf 67 content/browser/loader/detachable_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 67 content/browser/loader/layered_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 71 content/browser/loader/layered_resource_handler.cc return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); buf 42 content/browser/loader/layered_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 74 content/browser/loader/redirect_to_file_resource_handler.cc int Write(net::IOBuffer* buf, int buf_len) { buf 78 content/browser/loader/redirect_to_file_resource_handler.cc buf, buf_len, buf 194 content/browser/loader/redirect_to_file_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 205 content/browser/loader/redirect_to_file_resource_handler.cc *buf = buf_.get(); buf 67 content/browser/loader/redirect_to_file_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 11 content/browser/loader/resource_buffer_unittest.cc scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); buf 12 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->Initialize(100, 5, 10)); buf 13 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 18 content/browser/loader/resource_buffer_unittest.cc char* ptr = buf->Allocate(&size); buf 21 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 23 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 25 content/browser/loader/resource_buffer_unittest.cc buf->ShrinkLastAllocation(2); // Less than our min allocation size. buf 26 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 27 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 33 content/browser/loader/resource_buffer_unittest.cc char* ptr = buf->Allocate(&size); buf 36 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 38 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(5, buf->GetLastAllocationOffset()); buf 40 content/browser/loader/resource_buffer_unittest.cc buf->ShrinkLastAllocation(4); buf 41 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(5, buf->GetLastAllocationOffset()); buf 43 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 48 content/browser/loader/resource_buffer_unittest.cc scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); buf 49 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->Initialize(100, 5, 10)); buf 53 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 54 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 56 content/browser/loader/resource_buffer_unittest.cc buf->RecycleLeastRecentlyAllocated(); buf 59 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 60 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 64 content/browser/loader/resource_buffer_unittest.cc scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); buf 65 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->Initialize(20, 10, 10)); buf 69 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 72 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 76 content/browser/loader/resource_buffer_unittest.cc buf->RecycleLeastRecentlyAllocated(); buf 78 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 81 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 85 content/browser/loader/resource_buffer_unittest.cc scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); buf 86 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->Initialize(30, 10, 10)); buf 90 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 93 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 96 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 99 content/browser/loader/resource_buffer_unittest.cc EXPECT_FALSE(buf->CanAllocate()); buf 102 content/browser/loader/resource_buffer_unittest.cc buf->RecycleLeastRecentlyAllocated(); buf 103 content/browser/loader/resource_buffer_unittest.cc buf->RecycleLeastRecentlyAllocated(); buf 105 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->CanAllocate()); buf 107 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 109 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(0, buf->GetLastAllocationOffset()); buf 111 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 113 content/browser/loader/resource_buffer_unittest.cc EXPECT_EQ(10, buf->GetLastAllocationOffset()); buf 115 content/browser/loader/resource_buffer_unittest.cc EXPECT_FALSE(buf->CanAllocate()); buf 119 content/browser/loader/resource_buffer_unittest.cc scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); buf 120 content/browser/loader/resource_buffer_unittest.cc EXPECT_TRUE(buf->Initialize(20, 10, 10)); buf 123 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 126 content/browser/loader/resource_buffer_unittest.cc buf->Allocate(&size); buf 130 content/browser/loader/resource_buffer_unittest.cc EXPECT_FALSE(buf->CanAllocate()); buf 133 content/browser/loader/resource_buffer_unittest.cc buf->ShrinkLastAllocation(5); buf 134 content/browser/loader/resource_buffer_unittest.cc EXPECT_FALSE(buf->CanAllocate()); buf 93 content/browser/loader/resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 590 content/browser/loader/resource_loader.cc scoped_refptr<net::IOBuffer> buf; buf 592 content/browser/loader/resource_loader.cc if (!handler_->OnWillRead(info->GetRequestID(), &buf, &buf_size, -1)) { buf 597 content/browser/loader/resource_loader.cc DCHECK(buf); buf 600 content/browser/loader/resource_loader.cc request_->Read(buf.get(), buf_size, bytes_read); buf 147 content/browser/loader/resource_loader_unittest.cc scoped_refptr<net::IOBuffer>* buf, buf 66 content/browser/loader/stream_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 71 content/browser/loader/stream_resource_handler.cc DCHECK(buf && buf_size); buf 74 content/browser/loader/stream_resource_handler.cc *buf = read_buffer_.get(); buf 58 content/browser/loader/stream_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 114 content/browser/loader/sync_resource_handler.cc scoped_refptr<net::IOBuffer>* buf, buf 118 content/browser/loader/sync_resource_handler.cc *buf = read_buffer_.get(); buf 53 content/browser/loader/sync_resource_handler.h scoped_refptr<net::IOBuffer>* buf, buf 83 content/browser/loader/temporary_file_stream_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = buf 85 content/browser/loader/temporary_file_stream_unittest.cc memcpy(buf->data(), kTestData, kTestDataSize); buf 87 content/browser/loader/temporary_file_stream_unittest.cc new net::DrainableIOBuffer(buf.get(), buf->size()); buf 45 content/browser/net/view_http_cache_job_factory.cc virtual bool ReadRawData(net::IOBuffer* buf, buf 47 content/browser/net/view_http_cache_job_factory.cc return core_->ReadRawData(buf, buf_size, bytes_read); buf 67 content/browser/net/view_http_cache_job_factory.cc bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); buf 165 content/browser/net/view_http_cache_job_factory.cc bool ViewHttpCacheJob::Core::ReadRawData(net::IOBuffer* buf, buf 172 content/browser/net/view_http_cache_job_factory.cc memcpy(buf->data(), data_.data() + data_offset_, buf_size); buf 56 content/browser/renderer_host/p2p/socket_host_test_utils.cc int FakeSocket::Read(net::IOBuffer* buf, int buf_len, buf 58 content/browser/renderer_host/p2p/socket_host_test_utils.cc DCHECK(buf); buf 62 content/browser/renderer_host/p2p/socket_host_test_utils.cc memcpy(buf->data(), &(*input_data_.begin()) + input_pos_, result); buf 67 content/browser/renderer_host/p2p/socket_host_test_utils.cc read_buffer_ = buf; buf 74 content/browser/renderer_host/p2p/socket_host_test_utils.cc int FakeSocket::Write(net::IOBuffer* buf, int buf_len, buf 76 content/browser/renderer_host/p2p/socket_host_test_utils.cc DCHECK(buf); buf 83 content/browser/renderer_host/p2p/socket_host_test_utils.cc scoped_refptr<net::IOBuffer>(buf), buf_len, callback)); buf 90 content/browser/renderer_host/p2p/socket_host_test_utils.cc buf->data(), buf->data() + buf_len); buf 95 content/browser/renderer_host/p2p/socket_host_test_utils.cc void FakeSocket::DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, buf 101 content/browser/renderer_host/p2p/socket_host_test_utils.cc buf->data(), buf->data() + buf_len); buf 44 content/browser/renderer_host/p2p/socket_host_test_utils.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 46 content/browser/renderer_host/p2p/socket_host_test_utils.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 66 content/browser/renderer_host/p2p/socket_host_test_utils.h void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, buf 67 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc virtual int RecvFrom(net::IOBuffer* buf, int buf_len, buf 72 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc scoped_refptr<net::IOBuffer> buffer(buf); buf 81 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc recv_buffer_ = buf; buf 88 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc virtual int SendTo(net::IOBuffer* buf, int buf_len, buf 91 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc scoped_refptr<net::IOBuffer> buffer(buf); buf 1027 content/browser/renderer_host/render_message_filter.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(data.size())); buf 1028 content/browser/renderer_host/render_message_filter.cc memcpy(buf->data(), &data.front(), data.size()); buf 1032 content/browser/renderer_host/render_message_filter.cc buf.get(), buf 138 content/browser/renderer_host/render_sandbox_host_linux.cc char buf[FontConfigIPC::kMaxFontFamilyLength + 128]; buf 140 content/browser/renderer_host/render_sandbox_host_linux.cc const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); buf 150 content/browser/renderer_host/render_sandbox_host_linux.cc Pickle pickle(buf, len); buf 96 content/browser/service_worker/service_worker_url_request_job.cc net::IOBuffer* buf, int buf_size, int *bytes_read) { buf 50 content/browser/service_worker/service_worker_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 124 content/browser/streams/stream.cc Stream::StreamState Stream::ReadRawData(net::IOBuffer* buf, buf 127 content/browser/streams/stream.cc DCHECK(buf); buf 154 content/browser/streams/stream.cc memcpy(buf->data(), data_->data() + data_bytes_read_, to_read); buf 79 content/browser/streams/stream.h StreamState ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); buf 94 content/browser/streams/stream_url_request_job.cc bool StreamURLRequestJob::ReadRawData(net::IOBuffer* buf, buf 100 content/browser/streams/stream_url_request_job.cc DCHECK(buf); buf 113 content/browser/streams/stream_url_request_job.cc switch (stream_->ReadRawData(buf, to_read, bytes_read)) { buf 119 content/browser/streams/stream_url_request_job.cc pending_buffer_ = buf; buf 32 content/browser/streams/stream_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 112 content/browser/webui/url_data_manager_backend.cc virtual bool ReadRawData(net::IOBuffer* buf, buf 176 content/browser/webui/url_data_manager_backend.cc void CompleteRead(net::IOBuffer* buf, int buf_size, int* bytes_read); buf 326 content/browser/webui/url_data_manager_backend.cc bool URLRequestChromeJob::ReadRawData(net::IOBuffer* buf, int buf_size, buf 331 content/browser/webui/url_data_manager_backend.cc CHECK(buf->data()); buf 332 content/browser/webui/url_data_manager_backend.cc pending_buf_ = buf; buf 338 content/browser/webui/url_data_manager_backend.cc CompleteRead(buf, buf_size, bytes_read); buf 342 content/browser/webui/url_data_manager_backend.cc void URLRequestChromeJob::CompleteRead(net::IOBuffer* buf, int buf_size, buf 348 content/browser/webui/url_data_manager_backend.cc memcpy(buf->data(), data_->front() + data_offset_, buf_size); buf 179 content/browser/zygote_host/zygote_host_impl_linux.cc char buf[kExpectedLength]; buf 180 content/browser/zygote_host/zygote_host_impl_linux.cc const ssize_t len = UnixDomainSocket::RecvMsg(fds[0], buf, sizeof(buf), buf 183 content/browser/zygote_host/zygote_host_impl_linux.cc CHECK(0 == strcmp(buf, kZygoteHelloMessage)) buf 286 content/browser/zygote_host/zygote_host_impl_linux.cc ssize_t ZygoteHostImpl::ReadReply(void* buf, size_t buf_len) { buf 300 content/browser/zygote_host/zygote_host_impl_linux.cc return HANDLE_EINTR(read(control_fd_, buf, buf_len)); buf 343 content/browser/zygote_host/zygote_host_impl_linux.cc char buf[kMaxReplyLength]; buf 344 content/browser/zygote_host/zygote_host_impl_linux.cc const ssize_t len = ReadReply(buf, sizeof(buf)); buf 346 content/browser/zygote_host/zygote_host_impl_linux.cc Pickle reply_pickle(buf, len); buf 484 content/browser/zygote_host/zygote_host_impl_linux.cc char buf[kMaxMessageLength]; buf 490 content/browser/zygote_host/zygote_host_impl_linux.cc len = ReadReply(buf, sizeof(buf)); buf 503 content/browser/zygote_host/zygote_host_impl_linux.cc Pickle read_pickle(buf, len); buf 84 content/browser/zygote_host/zygote_host_impl_linux.h ssize_t ReadReply(void* buf, size_t buflen); buf 205 content/child/npapi/plugin_host.cc bool PluginHost::SetPostData(const char* buf, buf 233 content/child/npapi/plugin_host.cc const char* ptr = static_cast<const char*>(buf); buf 286 content/child/npapi/plugin_host.cc size_t new_body_size = length - static_cast<int>(start - buf); buf 423 content/child/npapi/plugin_host.cc const char* buf, buf 464 content/child/npapi/plugin_host.cc if (!buf) buf 467 content/child/npapi/plugin_host.cc std::string file_path_ascii(buf); buf 486 content/child/npapi/plugin_host.cc buf = post_file_contents.c_str(); buf 500 content/child/npapi/plugin_host.cc plugin->RequestURL(url, "POST", target, buf, len, notify, notify_data); buf 508 content/child/npapi/plugin_host.cc const char* buf, buf 511 content/child/npapi/plugin_host.cc return PostURLNotify(id, url, target, len, buf, file, true, notify_data); buf 518 content/child/npapi/plugin_host.cc const char* buf, buf 541 content/child/npapi/plugin_host.cc return PostURLNotify(id, url, target, len, buf, file, false, 0); buf 39 content/child/npapi/plugin_host.h static bool SetPostData(const char *buf, buf 582 content/child/npapi/plugin_instance.cc const char* buf, buf 593 content/child/npapi/plugin_instance.cc url, method, target, buf, len, notify_id, popups_allowed(), buf 235 content/child/npapi/plugin_instance.h const char* buf, buf 128 content/child/npapi/plugin_stream.cc bool PluginStream::WriteToFile(const char* buf, size_t length) { buf 134 content/child/npapi/plugin_stream.cc bytes = WriteBytes(buf, length); buf 146 content/child/npapi/plugin_stream.cc bool PluginStream::WriteToPlugin(const char* buf, const int length, buf 155 content/child/npapi/plugin_stream.cc int written = TryWriteToPlugin(buf, length, data_offset); buf 165 content/child/npapi/plugin_stream.cc memcpy(&delivery_data_[previous_size], buf + written, remaining); buf 188 content/child/npapi/plugin_stream.cc int PluginStream::TryWriteToPlugin(const char* buf, const int length, buf 206 content/child/npapi/plugin_stream.cc const_cast<char*>(buf + byte_offset)); buf 46 content/child/npapi/plugin_stream.h int Write(const char* buf, const int len, int data_offset); buf 100 content/child/npapi/plugin_stream.h size_t WriteBytes(const char* buf, size_t length); buf 103 content/child/npapi/plugin_stream.h bool WriteToFile(const char* buf, size_t length); buf 107 content/child/npapi/plugin_stream.h bool WriteToPlugin(const char* buf, const int length, const int data_offset); buf 111 content/child/npapi/plugin_stream.h int TryWriteToPlugin(const char* buf, const int length, buf 29 content/child/npapi/plugin_stream_posix.cc size_t PluginStream::WriteBytes(const char* buf, size_t length) { buf 30 content/child/npapi/plugin_stream_posix.cc return fwrite(buf, sizeof(char), length, temp_file_); buf 25 content/child/npapi/plugin_stream_win.cc size_t PluginStream::WriteBytes(const char *buf, size_t length) { buf 28 content/child/npapi/plugin_stream_win.cc if (!WriteFile(temp_file_handle_, buf, length, &bytes, 0)) buf 82 content/child/npapi/plugin_url_fetcher.cc const char* buf, buf 127 content/child/npapi/plugin_url_fetcher.cc PluginHost::SetPostData(buf, len, &names, &values, &body); buf 29 content/child/npapi/plugin_url_fetcher.h const char* buf, buf 79 content/child/npapi/webplugin.h const char* buf, buf 139 content/child/npapi/webplugin_delegate.h const char* buf, buf 312 content/child/npapi/webplugin_delegate_impl.cc const char* buf, buf 327 content/child/npapi/webplugin_delegate_impl.cc plugin_stream, url, first_party_for_cookies, method, buf, len, buf 126 content/child/npapi/webplugin_delegate_impl.h const char* buf, buf 32 content/common/child_process_sandbox_support_impl_linux.cc uint8_t buf[512]; buf 33 content/common/child_process_sandbox_support_impl_linux.cc const ssize_t n = UnixDomainSocket::SendRecvMsg(GetSandboxFD(), buf, buf 34 content/common/child_process_sandbox_support_impl_linux.cc sizeof(buf), NULL, request); buf 40 content/common/child_process_sandbox_support_impl_linux.cc Pickle reply(reinterpret_cast<char*>(buf), n); buf 61 content/common/child_process_sandbox_support_impl_linux.cc uint8_t buf[512]; buf 62 content/common/child_process_sandbox_support_impl_linux.cc const ssize_t n = UnixDomainSocket::SendRecvMsg(GetSandboxFD(), buf, buf 63 content/common/child_process_sandbox_support_impl_linux.cc sizeof(buf), NULL, request); buf 70 content/common/child_process_sandbox_support_impl_linux.cc Pickle reply(reinterpret_cast<char*>(buf), n); buf 84 content/common/gpu/media/exynos_v4l2_video_device.cc const uint64 buf = 1; buf 85 content/common/gpu/media/exynos_v4l2_video_device.cc if (HANDLE_EINTR(write(device_poll_interrupt_fd_, &buf, sizeof(buf))) == -1) { buf 94 content/common/gpu/media/exynos_v4l2_video_device.cc uint64 buf; buf 95 content/common/gpu/media/exynos_v4l2_video_device.cc if (HANDLE_EINTR(read(device_poll_interrupt_fd_, &buf, sizeof(buf))) == -1) { buf 1011 content/common/gpu/media/exynos_video_encode_accelerator.cc const uint64 buf = 1; buf 1012 content/common/gpu/media/exynos_video_encode_accelerator.cc if (HANDLE_EINTR((write(device_poll_interrupt_fd_, &buf, sizeof(buf)))) < buf 1013 content/common/gpu/media/exynos_video_encode_accelerator.cc static_cast<ssize_t>(sizeof(buf))) { buf 1029 content/common/gpu/media/exynos_video_encode_accelerator.cc uint64 buf; buf 1030 content/common/gpu/media/exynos_video_encode_accelerator.cc if (HANDLE_EINTR(read(device_poll_interrupt_fd_, &buf, sizeof(buf))) < buf 1031 content/common/gpu/media/exynos_video_encode_accelerator.cc static_cast<ssize_t>(sizeof(buf))) { buf 1497 content/common/gpu/media/exynos_video_encode_accelerator.cc for (size_t buf = 0; buf < mfc_input_buffer_map_.size(); ++buf) { buf 1498 content/common/gpu/media/exynos_video_encode_accelerator.cc MfcInputRecord& input_record = mfc_input_buffer_map_[buf]; buf 1501 content/common/gpu/media/exynos_video_encode_accelerator.cc close(mfc_input_buffer_map_[buf].fd[plane]); buf 250 content/common/gpu/media/vaapi_h264_decoder_unittest.cc const char* buf = reinterpret_cast<const char*>(frame->data(i)); buf 251 content/common/gpu/media/vaapi_h264_decoder_unittest.cc int written = base::AppendToFile(output_file_, buf, to_write); buf 401 content/common/gpu/media/vaapi_wrapper.cc va_res = vaMapBuffer(va_display_, image->buf, mem); buf 413 content/common/gpu/media/vaapi_wrapper.cc vaUnmapBuffer(va_display_, image->buf); buf 313 content/plugin/webplugin_proxy.cc const char* buf, buf 340 content/plugin/webplugin_proxy.cc memcpy(¶ms.buffer.front(), buf, len); buf 76 content/plugin/webplugin_proxy.h const char* buf, buf 182 content/public/test/async_file_test_helper.cc const char* buf, buf 188 content/public/test/async_file_test_helper.cc if (buf_size != base::WriteFile(local_path, buf, buf_size)) buf 72 content/public/test/async_file_test_helper.h const char* buf, buf 1125 content/renderer/npapi/webplugin_delegate_proxy.cc const char* buf, buf 1141 content/renderer/npapi/webplugin_delegate_proxy.cc memcpy(¶ms.post_data.front(), buf, len); buf 135 content/renderer/npapi/webplugin_delegate_proxy.h const char* buf, buf 149 content/renderer/npapi/webplugin_impl.cc explicit HeaderFlattener(std::string* buf) : buf_(buf) { buf 635 content/renderer/npapi/webplugin_impl.cc const char *buf, buf 640 content/renderer/npapi/webplugin_impl.cc bool rv = PluginHost::SetPostData(buf, length, &names, &values, &body); buf 695 content/renderer/npapi/webplugin_impl.cc const char* buf, buf 751 content/renderer/npapi/webplugin_impl.cc if (!SetPostData(&request, buf, len)) { buf 1156 content/renderer/npapi/webplugin_impl.cc const char* buf, buf 1164 content/renderer/npapi/webplugin_impl.cc url, method, target, buf, len, notify_id, popups_allowed, PLUGIN_SRC, buf 1171 content/renderer/npapi/webplugin_impl.cc const char* buf, buf 1188 content/renderer/npapi/webplugin_impl.cc url, is_javascript_url, popups_allowed, method, target, buf, len, buf 1252 content/renderer/npapi/webplugin_impl.cc first_party_for_cookies, method, buf, len, referrer, buf 1261 content/renderer/npapi/webplugin_impl.cc InitiateHTTPRequest(resource_id, resource_client, complete_url, method, buf, buf 1280 content/renderer/npapi/webplugin_impl.cc const char* buf, buf 1314 content/renderer/npapi/webplugin_impl.cc SetPostData(&info.request, buf, buf_len); buf 66 content/renderer/npapi/webplugin_impl.h const char* buf, buf 118 content/renderer/npapi/webplugin_impl.h const char* buf, buf 177 content/renderer/npapi/webplugin_impl.h const char* buf, buf 192 content/renderer/npapi/webplugin_impl.h const char* buf, buf 246 content/renderer/npapi/webplugin_impl.h const char* buf, buf 210 content/renderer/pepper/pepper_video_capture_host.cc BufferInfo buf; buf 211 content/renderer/pepper/pepper_video_capture_host.cc buf.buffer = static_cast<PPB_Buffer_Impl*>(enter.object()); buf 212 content/renderer/pepper/pepper_video_capture_host.cc buf.data = buf.buffer->Map(); buf 213 content/renderer/pepper/pepper_video_capture_host.cc if (!buf.data) { buf 217 content/renderer/pepper/pepper_video_capture_host.cc buffers_.push_back(buf); buf 315 content/shell/tools/plugin/PluginObject.cpp char* buf = buf 317 content/shell/tools/plugin/PluginObject.cpp strcpy(buf, originalString); buf 318 content/shell/tools/plugin/PluginObject.cpp STRINGZ_TO_NPVARIANT(buf, *result); buf 355 content/shell/tools/plugin/PluginObject.cpp char* buf = static_cast<char*>(browser->memalloc(256)); buf 357 content/shell/tools/plugin/PluginObject.cpp buf, buf 369 content/shell/tools/plugin/PluginObject.cpp STRINGZ_TO_NPVARIANT(buf, *result); buf 100 content/test/net/url_request_abort_on_end_job.cc bool URLRequestAbortOnEndJob::ReadRawData(net::IOBuffer* buf, buf 105 content/test/net/url_request_abort_on_end_job.cc std::memcpy(buf->data(), kPageContent, *bytes_read); buf 32 content/test/net/url_request_abort_on_end_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 138 content/test/net/url_request_slow_download_job.cc net::IOBuffer* buf, int buf_size, int* bytes_written) { buf 143 content/test/net/url_request_slow_download_job.cc buf->data()[i] = '*'; buf 158 content/test/net/url_request_slow_download_job.cc buf->data()[i] = '*'; buf 168 content/test/net/url_request_slow_download_job.cc bool URLRequestSlowDownloadJob::ReadRawData(net::IOBuffer* buf, int buf_size, buf 181 content/test/net/url_request_slow_download_job.cc ReadStatus status = FillBufferHelper(buf, buf_size, bytes_read); buf 186 content/test/net/url_request_slow_download_job.cc buffer_ = buf; buf 41 content/test/net/url_request_slow_download_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 76 content/test/net/url_request_slow_download_job.h net::IOBuffer* buf, buf 126 content/zygote/zygote_linux.cc char buf[kZygoteMaxMessageLength]; buf 127 content/zygote/zygote_linux.cc const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); buf 140 content/zygote/zygote_linux.cc Pickle pickle(buf, len); buf 38 crypto/encryptor.cc void Encryptor::Counter::Write(void* buf) { buf 39 crypto/encryptor.cc uint8* buf_ptr = reinterpret_cast<uint8*>(buf); buf 44 crypto/encryptor.h void Write(void* buf); buf 318 crypto/encryptor_unittest.cc unsigned char buf[16]; buf 325 crypto/encryptor_unittest.cc counter1.Write(buf); buf 326 crypto/encryptor_unittest.cc EXPECT_EQ(0, memcmp(buf, kTest1, 15)); buf 327 crypto/encryptor_unittest.cc EXPECT_TRUE(buf[15] == 10); buf 339 crypto/encryptor_unittest.cc counter2.Write(buf); buf 340 crypto/encryptor_unittest.cc EXPECT_EQ(0, memcmp(buf, kExpect2, kCounterSize)); buf 351 crypto/encryptor_unittest.cc counter3.Write(buf); buf 352 crypto/encryptor_unittest.cc EXPECT_EQ(0, memcmp(buf, kExpect3, kCounterSize)); buf 52 crypto/hkdf.cc scoped_ptr<char[]> buf(new char[kSHA256HashLength + info.size() + 1]); buf 60 crypto/hkdf.cc memcpy(buf.get(), previous.data(), previous.size()); buf 62 crypto/hkdf.cc memcpy(buf.get() + j, info.data(), info.size()); buf 64 crypto/hkdf.cc buf[j++] = static_cast<char>(i + 1); buf 66 crypto/hkdf.cc result = hmac.Sign(base::StringPiece(buf.get(), j), digest, sizeof(digest)); buf 153 crypto/nss_util.cc struct statfs buf; buf 154 crypto/nss_util.cc if (statfs(database_dir.value().c_str(), &buf) == 0) buf 155 crypto/nss_util.cc db_on_nfs = (strcmp(buf.f_fstypename, MOUNT_NFS) == 0); buf 308 crypto/openpgp_symmetric_encryption.cc char* buf = reinterpret_cast<char*>(malloc(length)); buf 309 crypto/openpgp_symmetric_encryption.cc arena_.push_back(buf); buf 316 crypto/openpgp_symmetric_encryption.cc memcpy(buf + j, first_chunk.data(), first_chunk_length); buf 329 crypto/openpgp_symmetric_encryption.cc memcpy(buf + j, chunk.data(), chunk_length); buf 335 crypto/openpgp_symmetric_encryption.cc *out_contents = base::StringPiece(buf, length); buf 1302 crypto/third_party/nss/sha512.cc dumpHash32(const unsigned char *buf, unsigned int bufLen) buf 1306 crypto/third_party/nss/sha512.cc printf(" %02x%02x%02x%02x", buf[i], buf[i+1], buf[i+2], buf[i+3]); buf 1325 crypto/third_party/nss/sha512.cc dumpHash64(const unsigned char *buf, unsigned int bufLen) buf 1332 crypto/third_party/nss/sha512.cc buf[i ], buf[i+1], buf[i+2], buf[i+3], buf 1333 crypto/third_party/nss/sha512.cc buf[i+4], buf[i+5], buf[i+6], buf[i+7]); buf 55 extensions/common/extension_api.cc char buf[128]; buf 56 extensions/common/extension_api.cc base::snprintf(buf, arraysize(buf), "%s: (%d) '%s'", buf 762 gpu/command_buffer/client/gles2_implementation_unittest.cc scoped_ptr<uint8[]> buf(new uint8 [kTestSize]); buf 763 gpu/command_buffer/client/gles2_implementation_unittest.cc uint8* expected_data = buf.get(); buf 947 gpu/command_buffer/client/gles2_implementation_unittest.cc char buf[sizeof(kString) + 1]; buf 948 gpu/command_buffer/client/gles2_implementation_unittest.cc memset(buf, kBad, sizeof(buf)); buf 956 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->GetShaderSource(kShaderId, sizeof(buf), &length, buf); buf 959 gpu/command_buffer/client/gles2_implementation_unittest.cc EXPECT_STREQ(kString.str, buf); buf 960 gpu/command_buffer/client/gles2_implementation_unittest.cc EXPECT_EQ(buf[sizeof(kString)], kBad); buf 1711 gpu/command_buffer/client/gles2_implementation_unittest.cc cmds::BufferSubData buf; buf 1721 gpu/command_buffer/client/gles2_implementation_unittest.cc expected.buf.Init( buf 1737 gpu/command_buffer/client/gles2_implementation_unittest.cc cmds::BufferSubData buf; buf 1746 gpu/command_buffer/client/gles2_implementation_unittest.cc expected.buf.Init( buf 2066 gpu/command_buffer/client/gles2_implementation_unittest.cc char buf[20]; buf 2075 gpu/command_buffer/client/gles2_implementation_unittest.cc memset(buf, kBad, sizeof(buf)); buf 2097 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->GetProgramInfoCHROMIUM(kProgramId, sizeof(buf), &size, &buf); buf 2101 gpu/command_buffer/client/gles2_implementation_unittest.cc EXPECT_STREQ(kString.str, buf); buf 2102 gpu/command_buffer/client/gles2_implementation_unittest.cc EXPECT_EQ(buf[sizeof(kString)], kBad); buf 2110 gpu/command_buffer/client/gles2_implementation_unittest.cc char buf[20]; buf 2146 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->GetProgramInfoCHROMIUM(kProgramId, 6, &size, &buf); buf 2152 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->GetProgramInfoCHROMIUM(kProgramId, -1, &size, &buf); buf 2157 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->GetProgramInfoCHROMIUM(kProgramId, sizeof(buf), NULL, &buf); buf 2741 gpu/command_buffer/client/gles2_implementation_unittest.cc char buf[sizeof(kString) + 1]; buf 2742 gpu/command_buffer/client/gles2_implementation_unittest.cc memset(buf, kBad, sizeof(buf)); buf 2811 gpu/command_buffer/client/gles2_implementation_unittest.cc uint8 buf[kUsableSize * 2] = { 0, }; buf 2818 gpu/command_buffer/client/gles2_implementation_unittest.cc GL_ARRAY_BUFFER, arraysize(buf), 0, 0, GL_DYNAMIC_DRAW); buf 2825 gpu/command_buffer/client/gles2_implementation_unittest.cc gl_->BufferData(GL_ARRAY_BUFFER, arraysize(buf), buf, GL_DYNAMIC_DRAW); buf 224 gpu/command_buffer/service/buffer_manager_unittest.cc const char* buf = buf 226 gpu/command_buffer/service/buffer_manager_unittest.cc ASSERT_TRUE(buf != NULL); buf 229 gpu/command_buffer/service/buffer_manager_unittest.cc EXPECT_EQ(buf + 1, buf1); buf 171 gpu/command_buffer/service/context_group.h void set_draw_buffer(GLenum buf) { buf 172 gpu/command_buffer/service/context_group.h draw_buffer_ = buf; buf 278 gpu/command_buffer/tests/gl_readback_unittest.cc scoped_ptr<GLushort[]> buf( buf 282 gpu/command_buffer/tests/gl_readback_unittest.cc buf.get()); buf 287 gpu/command_buffer/tests/gl_readback_unittest.cc std::abs(HalfToFloat32(buf[jj * read_comp_count + kk]) - buf 295 gpu/command_buffer/tests/gl_readback_unittest.cc scoped_ptr<GLfloat[]> buf( buf 299 gpu/command_buffer/tests/gl_readback_unittest.cc buf.get()); buf 304 gpu/command_buffer/tests/gl_readback_unittest.cc std::abs(buf[jj * read_comp_count + kk] - kDrawColor[kk]), buf 406 ipc/ipc_channel_posix.cc char buf[CMSG_SPACE( buf 429 ipc/ipc_channel_posix.cc msgh.msg_control = buf; buf 70 ipc/ipc_send_fds_test.cc char buf; buf 71 ipc/ipc_send_fds_test.cc ssize_t amt_read = read(fd, &buf, 1); buf 73 ipc/ipc_send_fds_test.cc ASSERT_EQ(buf, 0); // /dev/zero always reads 0 bytes. buf 149 ipc/sync_socket_unittest.cc char buf[kHelloStringLength]; buf 150 ipc/sync_socket_unittest.cc socket_->Receive(static_cast<void*>(buf), kHelloStringLength); buf 151 ipc/sync_socket_unittest.cc EXPECT_EQ(strcmp(str.c_str(), buf), 0); buf 210 ipc/sync_socket_unittest.cc static void BlockingRead(base::SyncSocket* socket, char* buf, buf 212 ipc/sync_socket_unittest.cc DCHECK(buf != NULL); buf 215 ipc/sync_socket_unittest.cc *received = socket->Receive(buf, length); buf 228 ipc/sync_socket_unittest.cc char buf[0xff]; buf 231 ipc/sync_socket_unittest.cc base::Bind(&BlockingRead, &pair[0], &buf[0], arraysize(buf), &received)); buf 258 ipc/sync_socket_unittest.cc char buf[kHelloStringLength] = {0}; buf 261 ipc/sync_socket_unittest.cc base::Bind(&BlockingRead, &pair[0], &buf[0], buf 277 ipc/sync_socket_unittest.cc EXPECT_TRUE(strcmp(buf, kHelloString) == 0); buf 44 jingle/glue/channel_socket_adapter.cc net::IOBuffer* buf, buf 48 jingle/glue/channel_socket_adapter.cc DCHECK(buf); buf 58 jingle/glue/channel_socket_adapter.cc read_buffer_ = buf; buf 46 jingle/glue/channel_socket_adapter.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 48 jingle/glue/channel_socket_adapter.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 400 jingle/glue/chrome_async_socket_unittest.cc scoped_ptr<char[]> buf(new char[buf_size]); buf 404 jingle/glue/chrome_async_socket_unittest.cc chrome_async_socket_->Read(buf.get(), buf_size, &len_read); buf 412 jingle/glue/chrome_async_socket_unittest.cc read.append(buf.get(), len_read); buf 583 jingle/glue/chrome_async_socket_unittest.cc char buf[4096]; buf 585 jingle/glue/chrome_async_socket_unittest.cc EXPECT_TRUE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); buf 599 jingle/glue/chrome_async_socket_unittest.cc char buf[4096]; buf 601 jingle/glue/chrome_async_socket_unittest.cc EXPECT_FALSE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); buf 613 jingle/glue/chrome_async_socket_unittest.cc char buf[4096]; buf 615 jingle/glue/chrome_async_socket_unittest.cc EXPECT_FALSE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); buf 939 jingle/glue/chrome_async_socket_unittest.cc char buf[4096]; buf 941 jingle/glue/chrome_async_socket_unittest.cc EXPECT_TRUE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); buf 951 jingle/glue/chrome_async_socket_unittest.cc EXPECT_TRUE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); buf 952 jingle/glue/chrome_async_socket_unittest.cc EXPECT_EQ(kReadData, std::string(buf, len_read)); buf 92 jingle/glue/fake_ssl_client_socket.cc int FakeSSLClientSocket::Read(net::IOBuffer* buf, int buf_len, buf 96 jingle/glue/fake_ssl_client_socket.cc return transport_socket_->Read(buf, buf_len, callback); buf 99 jingle/glue/fake_ssl_client_socket.cc int FakeSSLClientSocket::Write(net::IOBuffer* buf, int buf_len, buf 103 jingle/glue/fake_ssl_client_socket.cc return transport_socket_->Write(buf, buf_len, callback); buf 48 jingle/glue/fake_ssl_client_socket.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 50 jingle/glue/fake_ssl_client_socket.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 92 jingle/glue/proxy_resolving_client_socket.cc int ProxyResolvingClientSocket::Read(net::IOBuffer* buf, int buf_len, buf 95 jingle/glue/proxy_resolving_client_socket.cc return transport_->socket()->Read(buf, buf_len, callback); buf 101 jingle/glue/proxy_resolving_client_socket.cc net::IOBuffer* buf, buf 105 jingle/glue/proxy_resolving_client_socket.cc return transport_->socket()->Write(buf, buf_len, callback); buf 51 jingle/glue/proxy_resolving_client_socket.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 53 jingle/glue/proxy_resolving_client_socket.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 110 jingle/glue/pseudotcp_adapter_unittest.cc virtual int Read(net::IOBuffer* buf, int buf_len, buf 113 jingle/glue/pseudotcp_adapter_unittest.cc CHECK(buf); buf 116 jingle/glue/pseudotcp_adapter_unittest.cc scoped_refptr<net::IOBuffer> buffer(buf); buf 124 jingle/glue/pseudotcp_adapter_unittest.cc read_buffer_ = buf; buf 130 jingle/glue/pseudotcp_adapter_unittest.cc virtual int Write(net::IOBuffer* buf, int buf_len, buf 132 jingle/glue/pseudotcp_adapter_unittest.cc DCHECK(buf); buf 138 jingle/glue/pseudotcp_adapter_unittest.cc std::vector<char>(buf->data(), buf->data() + buf_len)), buf 524 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java private void playOutputBuffer(byte[] buf) { buf 529 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java int size = mAudioTrack.write(buf, 0, buf.length); buf 530 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java if (buf.length != size) { buf 532 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java buf.length + ", actual size: " + size); buf 151 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java ByteBuffer buf = codecOutputBuffers[outputBufIndex]; buf 171 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java nativeOnChunkDecoded(nativeMediaCodecBridge, buf, info.size, buf 175 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java buf.clear(); buf 201 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java long nativeWebAudioMediaCodecBridge, ByteBuffer buf, int size, buf 600 media/base/android/media_codec_bridge.cc ScopedJavaLocalRef<jobject> buf = buf 602 media/base/android/media_codec_bridge.cc uint8* buffer = static_cast<uint8*>(env->GetDirectBufferAddress(buf.obj())); buf 151 media/base/android/webaudio_media_codec_bridge.cc jobject buf, buf 156 media/base/android/webaudio_media_codec_bridge.cc if (buf_size <= 0 || !buf) buf 160 media/base/android/webaudio_media_codec_bridge.cc static_cast<int8_t*>(env->GetDirectBufferAddress(buf)); buf 169 media/base/android/webaudio_media_codec_bridge.cc int16_t* data = static_cast<int16_t*>(env->GetDirectBufferAddress(buf)); buf 43 media/base/android/webaudio_media_codec_bridge.h jobject buf, buf 7 media/base/djb2.cc uint32 DJB2Hash(const void* buf, size_t len, uint32 seed) { buf 8 media/base/djb2.cc const uint8* src = reinterpret_cast<const uint8*>(buf); buf 38 media/base/djb2.h MEDIA_EXPORT uint32 DJB2Hash(const void* buf, size_t len, uint32 seed); buf 123 media/base/stream_parser.h virtual bool Parse(const uint8* buf, int size) = 0; buf 318 media/cast/test/utility/udp_proxy.cc scoped_refptr<net::IOBuffer> buf = buf 327 media/cast/test/utility/udp_proxy.cc result = udp_socket_->SendTo(buf, buf 332 media/cast/test/utility/udp_proxy.cc buf, buf 346 media/cast/test/utility/udp_proxy.cc void AllowWrite(scoped_refptr<net::IOBuffer> buf, buf 152 media/cast/transport/transport/udp_transport.cc scoped_refptr<net::IOBuffer> buf = buf 154 media/cast/transport/transport/udp_transport.cc memcpy(buf->data(), &packet[0], packet.size()); buf 162 media/cast/transport/transport/udp_transport.cc buf, buf 164 media/cast/transport/transport/udp_transport.cc base::Bind(&UdpTransport::OnSent, weak_factory_.GetWeakPtr(), buf)); buf 167 media/cast/transport/transport/udp_transport.cc buf, buf 170 media/cast/transport/transport/udp_transport.cc base::Bind(&UdpTransport::OnSent, weak_factory_.GetWeakPtr(), buf)); buf 180 media/cast/transport/transport/udp_transport.cc void UdpTransport::OnSent(const scoped_refptr<net::IOBuffer>& buf, int result) { buf 59 media/cast/transport/transport/udp_transport.h void OnSent(const scoped_refptr<net::IOBuffer>& buf, int result); buf 201 media/cast/video_sender/codecs/vp8/vp8_encoder.cc static_cast<const uint8*>(pkt->data.frame.buf), buf 202 media/cast/video_sender/codecs/vp8/vp8_encoder.cc static_cast<const uint8*>(pkt->data.frame.buf) + pkt->data.frame.sz); buf 237 media/filters/chunk_demuxer_unittest.cc const uint8* const buf = reinterpret_cast<const uint8*>(str); buf 238 media/filters/chunk_demuxer_unittest.cc text_track_entry = DecoderBuffer::CopyFrom(buf, len); buf 247 media/filters/chunk_demuxer_unittest.cc uint8* buf = buffer->get(); buf 248 media/filters/chunk_demuxer_unittest.cc memcpy(buf, ebml_header->data(), ebml_header->data_size()); buf 249 media/filters/chunk_demuxer_unittest.cc buf += ebml_header->data_size(); buf 251 media/filters/chunk_demuxer_unittest.cc memcpy(buf, info->data(), info->data_size()); buf 252 media/filters/chunk_demuxer_unittest.cc buf += info->data_size(); buf 254 media/filters/chunk_demuxer_unittest.cc memcpy(buf, kTracksHeader, kTracksHeaderSize); buf 255 media/filters/chunk_demuxer_unittest.cc WriteInt64(buf + kTracksSizeOffset, tracks_element_size); buf 256 media/filters/chunk_demuxer_unittest.cc buf += kTracksHeaderSize; buf 261 media/filters/chunk_demuxer_unittest.cc memcpy(buf, audio_track_entry->data(), buf 264 media/filters/chunk_demuxer_unittest.cc memcpy(buf + audio_track_entry->data_size(), buf 267 media/filters/chunk_demuxer_unittest.cc WriteInt64(buf + kAudioTrackSizeOffset, buf 271 media/filters/chunk_demuxer_unittest.cc buf += audio_content_encodings->data_size(); buf 273 media/filters/chunk_demuxer_unittest.cc buf += audio_track_entry->data_size(); buf 277 media/filters/chunk_demuxer_unittest.cc memcpy(buf, video_track_entry->data(), buf 280 media/filters/chunk_demuxer_unittest.cc memcpy(buf + video_track_entry->data_size(), buf 283 media/filters/chunk_demuxer_unittest.cc WriteInt64(buf + kVideoTrackSizeOffset, buf 287 media/filters/chunk_demuxer_unittest.cc buf += video_content_encodings->data_size(); buf 289 media/filters/chunk_demuxer_unittest.cc buf += video_track_entry->data_size(); buf 293 media/filters/chunk_demuxer_unittest.cc memcpy(buf, text_track_entry->data(), buf 295 media/filters/chunk_demuxer_unittest.cc buf += text_track_entry->data_size(); buf 123 media/filters/ffmpeg_audio_decoder.cc frame->buf[0] = av_buffer_create( buf 396 media/filters/ffmpeg_audio_decoder.cc av_buffer_get_opaque(av_frame_->buf[0])); buf 22 media/filters/ffmpeg_glue.cc static int AVIOReadOperation(void* opaque, uint8_t* buf, int buf_size) { buf 24 media/filters/ffmpeg_glue.cc int result = protocol->Read(buf_size, buf); buf 21 media/filters/in_memory_url_protocol.h InMemoryUrlProtocol(const uint8* buf, int64 size, bool streaming); buf 22 media/formats/common/offset_byte_queue.cc void OffsetByteQueue::Push(const uint8* buf, int size) { buf 23 media/formats/common/offset_byte_queue.cc queue_.Push(buf, size); buf 28 media/formats/common/offset_byte_queue.cc void OffsetByteQueue::Peek(const uint8** buf, int* size) { buf 29 media/formats/common/offset_byte_queue.cc *buf = size_ > 0 ? buf_ : NULL; buf 39 media/formats/common/offset_byte_queue.cc void OffsetByteQueue::PeekAt(int64 offset, const uint8** buf, int* size) { buf 42 media/formats/common/offset_byte_queue.cc *buf = NULL; buf 46 media/formats/common/offset_byte_queue.cc *buf = &buf_[offset - head()]; buf 25 media/formats/common/offset_byte_queue.h void Push(const uint8* buf, int size); buf 26 media/formats/common/offset_byte_queue.h void Peek(const uint8** buf, int* size); buf 35 media/formats/common/offset_byte_queue.h void PeekAt(int64 offset, const uint8** buf, int* size); buf 17 media/formats/common/offset_byte_queue_unittest.cc uint8 buf[256]; buf 19 media/formats/common/offset_byte_queue_unittest.cc buf[i] = i; buf 22 media/formats/common/offset_byte_queue_unittest.cc queue_->Push(buf, sizeof(buf)); buf 23 media/formats/common/offset_byte_queue_unittest.cc queue_->Push(buf, sizeof(buf)); buf 38 media/formats/common/offset_byte_queue_unittest.cc const uint8* buf; buf 41 media/formats/common/offset_byte_queue_unittest.cc queue_->Peek(&buf, &size); buf 43 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(128, buf[0]); buf 44 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(255, buf[size-1]); buf 48 media/formats/common/offset_byte_queue_unittest.cc const uint8* buf; buf 51 media/formats/common/offset_byte_queue_unittest.cc queue_->PeekAt(400, &buf, &size); buf 53 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(400 - 256, buf[0]); buf 55 media/formats/common/offset_byte_queue_unittest.cc queue_->PeekAt(512, &buf, &size); buf 56 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(NULL, buf); buf 70 media/formats/common/offset_byte_queue_unittest.cc const uint8* buf; buf 72 media/formats/common/offset_byte_queue_unittest.cc queue_->PeekAt(400, &buf, &size); buf 74 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(400 - 256, buf[0]); buf 80 media/formats/common/offset_byte_queue_unittest.cc queue_->Peek(&buf, &size); buf 81 media/formats/common/offset_byte_queue_unittest.cc EXPECT_EQ(NULL, buf); buf 28 media/formats/mp2t/es_parser.h virtual bool Parse(const uint8* buf, int size, buf 39 media/formats/mp2t/es_parser_adts.cc static bool isAdtsSyncWord(const uint8* buf) { buf 40 media/formats/mp2t/es_parser_adts.cc return (buf[0] == 0xff) && ((buf[1] & 0xf6) == 0xf0); buf 113 media/formats/mp2t/es_parser_adts.cc bool EsParserAdts::Parse(const uint8* buf, int size, buf 127 media/formats/mp2t/es_parser_adts.cc es_byte_queue_.Push(buf, size); buf 38 media/formats/mp2t/es_parser_adts.h virtual bool Parse(const uint8* buf, int size, buf 40 media/formats/mp2t/es_parser_h264.cc bool EsParserH264::Parse(const uint8* buf, int size, buf 64 media/formats/mp2t/es_parser_h264.cc es_queue_->Push(buf, size); buf 43 media/formats/mp2t/es_parser_h264.h virtual bool Parse(const uint8* buf, int size, buf 223 media/formats/mp2t/mp2t_stream_parser.cc bool Mp2tStreamParser::Parse(const uint8* buf, int size) { buf 227 media/formats/mp2t/mp2t_stream_parser.cc ts_byte_queue_.Push(buf, size); buf 42 media/formats/mp2t/mp2t_stream_parser.h virtual bool Parse(const uint8* buf, int size) OVERRIDE; buf 80 media/formats/mp2t/mp2t_stream_parser_unittest.cc for (StreamParser::BufferQueue::const_iterator buf = buffers.begin(); buf 81 media/formats/mp2t/mp2t_stream_parser_unittest.cc buf != buffers.end(); buf++) { buf 82 media/formats/mp2t/mp2t_stream_parser_unittest.cc DVLOG(3) << " n=" << buf - buffers.begin() buf 83 media/formats/mp2t/mp2t_stream_parser_unittest.cc << ", size=" << (*buf)->data_size() buf 84 media/formats/mp2t/mp2t_stream_parser_unittest.cc << ", dur=" << (*buf)->duration().InMilliseconds(); buf 17 media/formats/mp2t/ts_packet.cc int TsPacket::Sync(const uint8* buf, int size) { buf 29 media/formats/mp2t/ts_packet.cc if (buf[idx] != kTsHeaderSyncword) { buf 32 media/formats/mp2t/ts_packet.cc << std::hex << static_cast<int>(buf[idx]) << std::dec; buf 46 media/formats/mp2t/ts_packet.cc TsPacket* TsPacket::Parse(const uint8* buf, int size) { buf 53 media/formats/mp2t/ts_packet.cc DCHECK_EQ(buf[0], kTsHeaderSyncword); buf 54 media/formats/mp2t/ts_packet.cc if (buf[0] != kTsHeaderSyncword) { buf 57 media/formats/mp2t/ts_packet.cc << std::hex << static_cast<int>(buf[0]) << std::dec; buf 62 media/formats/mp2t/ts_packet.cc bool status = ts_packet->ParseHeader(buf); buf 76 media/formats/mp2t/ts_packet.cc bool TsPacket::ParseHeader(const uint8* buf) { buf 77 media/formats/mp2t/ts_packet.cc BitReader bit_reader(buf, kPacketSize); buf 78 media/formats/mp2t/ts_packet.cc payload_ = buf; buf 22 media/formats/mp2t/ts_packet.h static int Sync(const uint8* buf, int size); buf 27 media/formats/mp2t/ts_packet.h static TsPacket* Parse(const uint8* buf, int size); buf 49 media/formats/mp2t/ts_packet.h bool ParseHeader(const uint8* buf); buf 27 media/formats/mp2t/ts_section.h const uint8* buf, int size) = 0; buf 99 media/formats/mp2t/ts_section_pes.cc const uint8* buf, int size) { buf 124 media/formats/mp2t/ts_section_pes.cc pes_byte_queue_.Push(buf, size); buf 26 media/formats/mp2t/ts_section_pes.h const uint8* buf, int size) OVERRIDE; buf 12 media/formats/mp2t/ts_section_psi.cc static bool IsCrcValid(const uint8* buf, int size) { buf 18 media/formats/mp2t/ts_section_psi.cc uint32 data_msb_aligned = buf[k]; buf 49 media/formats/mp2t/ts_section_psi.cc const uint8* buf, int size) { buf 61 media/formats/mp2t/ts_section_psi.cc int pointer_field = buf[0]; buf 63 media/formats/mp2t/ts_section_psi.cc buf++; buf 70 media/formats/mp2t/ts_section_psi.cc buf += nbytes_to_discard; buf 78 media/formats/mp2t/ts_section_psi.cc psi_byte_queue_.Push(buf, size); buf 25 media/formats/mp2t/ts_section_psi.h const uint8* buf, int size) OVERRIDE; buf 19 media/formats/mp4/avc.cc static bool ConvertAVCToAnnexBInPlaceForLengthSize4(std::vector<uint8>* buf) { buf 22 media/formats/mp4/avc.cc while (pos + kLengthSize < buf->size()) { buf 23 media/formats/mp4/avc.cc int nal_size = (*buf)[pos]; buf 24 media/formats/mp4/avc.cc nal_size = (nal_size << 8) + (*buf)[pos+1]; buf 25 media/formats/mp4/avc.cc nal_size = (nal_size << 8) + (*buf)[pos+2]; buf 26 media/formats/mp4/avc.cc nal_size = (nal_size << 8) + (*buf)[pos+3]; buf 28 media/formats/mp4/avc.cc buf->begin() + pos); buf 31 media/formats/mp4/avc.cc return pos == buf->size(); buf 29 media/formats/mp4/avc_unittest.cc void MakeInputForLength(int length_size, std::vector<uint8>* buf) { buf 30 media/formats/mp4/avc_unittest.cc buf->clear(); buf 32 media/formats/mp4/avc_unittest.cc buf->push_back(0); buf 33 media/formats/mp4/avc_unittest.cc buf->push_back(sizeof(kNALU1)); buf 34 media/formats/mp4/avc_unittest.cc buf->insert(buf->end(), kNALU1, kNALU1 + sizeof(kNALU1)); buf 37 media/formats/mp4/avc_unittest.cc buf->push_back(0); buf 38 media/formats/mp4/avc_unittest.cc buf->push_back(sizeof(kNALU2)); buf 39 media/formats/mp4/avc_unittest.cc buf->insert(buf->end(), kNALU2, kNALU2 + sizeof(kNALU2)); buf 44 media/formats/mp4/avc_unittest.cc std::vector<uint8> buf; buf 45 media/formats/mp4/avc_unittest.cc MakeInputForLength(GetParam(), &buf); buf 46 media/formats/mp4/avc_unittest.cc EXPECT_TRUE(AVC::ConvertFrameToAnnexB(GetParam(), &buf)); buf 47 media/formats/mp4/avc_unittest.cc EXPECT_EQ(buf.size(), sizeof(kExpected)); buf 48 media/formats/mp4/avc_unittest.cc EXPECT_EQ(0, memcmp(kExpected, &buf[0], sizeof(kExpected))); buf 52 media/formats/mp4/avc_unittest.cc std::vector<uint8> buf; buf 53 media/formats/mp4/avc_unittest.cc MakeInputForLength(GetParam(), &buf); buf 54 media/formats/mp4/avc_unittest.cc buf.pop_back(); buf 55 media/formats/mp4/avc_unittest.cc EXPECT_FALSE(AVC::ConvertFrameToAnnexB(GetParam(), &buf)); buf 59 media/formats/mp4/avc_unittest.cc MakeInputForLength(GetParam(), &buf); buf 60 media/formats/mp4/avc_unittest.cc buf.erase(buf.end() - (sizeof(kNALU2) + 1), buf.end()); buf 61 media/formats/mp4/avc_unittest.cc EXPECT_FALSE(AVC::ConvertFrameToAnnexB(GetParam(), &buf)); buf 66 media/formats/mp4/avc_unittest.cc std::vector<uint8> buf; buf 67 media/formats/mp4/avc_unittest.cc EXPECT_TRUE(AVC::ConvertFrameToAnnexB(GetParam(), &buf)); buf 68 media/formats/mp4/avc_unittest.cc EXPECT_EQ(0u, buf.size()); buf 87 media/formats/mp4/avc_unittest.cc std::vector<uint8> buf; buf 88 media/formats/mp4/avc_unittest.cc EXPECT_TRUE(AVC::ConvertConfigToAnnexB(avc_config, &buf)); buf 89 media/formats/mp4/avc_unittest.cc EXPECT_EQ(0, memcmp(kExpectedParamSets, &buf[0], buf 82 media/formats/mp4/box_reader.cc BoxReader::BoxReader(const uint8* buf, const int size, buf 84 media/formats/mp4/box_reader.cc : BufferReader(buf, size), buf 102 media/formats/mp4/box_reader.cc BoxReader* BoxReader::ReadTopLevelBox(const uint8* buf, buf 106 media/formats/mp4/box_reader.cc scoped_ptr<BoxReader> reader(new BoxReader(buf, buf_size, log_cb)); buf 122 media/formats/mp4/box_reader.cc bool BoxReader::StartTopLevelBox(const uint8* buf, buf 128 media/formats/mp4/box_reader.cc BoxReader reader(buf, buf_size, log_cb); buf 31 media/formats/mp4/box_reader.h BufferReader(const uint8* buf, const int size) buf 32 media/formats/mp4/box_reader.h : buf_(buf), size_(size), pos_(0) {} buf 80 media/formats/mp4/box_reader.h static BoxReader* ReadTopLevelBox(const uint8* buf, buf 91 media/formats/mp4/box_reader.h static bool StartTopLevelBox(const uint8* buf, buf 140 media/formats/mp4/box_reader.h BoxReader(const uint8* buf, const int size, const LogCB& log_cb); buf 86 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 89 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 108 media/formats/mp4/box_reader_unittest.cc EXPECT_EQ(buf.size(), static_cast<uint64>(reader->size() + 1)); buf 112 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 117 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size() - 2, LogCB(), &err)); buf 124 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 128 media/formats/mp4/box_reader_unittest.cc buf[25] = 1; buf 130 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 137 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 141 media/formats/mp4/box_reader_unittest.cc buf[5] = 1; buf 143 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 149 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 152 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 171 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf = GetBuf(); buf 173 media/formats/mp4/box_reader_unittest.cc buf[3] = 0x38; buf 176 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 186 media/formats/mp4/box_reader_unittest.cc std::vector<uint8> buf(data, data + size); buf 190 media/formats/mp4/box_reader_unittest.cc BoxReader::ReadTopLevelBox(&buf[0], buf.size(), LogCB(), &err)); buf 89 media/formats/mp4/fourccs.h char buf[5]; buf 90 media/formats/mp4/fourccs.h buf[0] = (fourcc >> 24) & 0xff; buf 91 media/formats/mp4/fourccs.h buf[1] = (fourcc >> 16) & 0xff; buf 92 media/formats/mp4/fourccs.h buf[2] = (fourcc >> 8) & 0xff; buf 93 media/formats/mp4/fourccs.h buf[3] = (fourcc) & 0xff; buf 94 media/formats/mp4/fourccs.h buf[4] = 0; buf 95 media/formats/mp4/fourccs.h return std::string(buf); buf 84 media/formats/mp4/mp4_stream_parser.cc bool MP4StreamParser::Parse(const uint8* buf, int size) { buf 90 media/formats/mp4/mp4_stream_parser.cc queue_.Push(buf, size); buf 125 media/formats/mp4/mp4_stream_parser.cc const uint8* buf; buf 127 media/formats/mp4/mp4_stream_parser.cc queue_.Peek(&buf, &size); buf 131 media/formats/mp4/mp4_stream_parser.cc BoxReader::ReadTopLevelBox(buf, size, log_cb_, err)); buf 424 media/formats/mp4/mp4_stream_parser.cc const uint8* buf; buf 426 media/formats/mp4/mp4_stream_parser.cc queue_.Peek(&buf, &buf_size); buf 444 media/formats/mp4/mp4_stream_parser.cc queue_.PeekAt(runs_->aux_info_offset() + moof_head_, &buf, &buf_size); buf 446 media/formats/mp4/mp4_stream_parser.cc *err = !runs_->CacheAuxInfo(buf, buf_size); buf 450 media/formats/mp4/mp4_stream_parser.cc queue_.PeekAt(runs_->sample_offset() + moof_head_, &buf, &buf_size); buf 464 media/formats/mp4/mp4_stream_parser.cc std::vector<uint8> frame_buf(buf, buf + runs_->sample_size()); buf 552 media/formats/mp4/mp4_stream_parser.cc const uint8* buf; buf 554 media/formats/mp4/mp4_stream_parser.cc queue_.PeekAt(mdat_tail_, &buf, &size); buf 558 media/formats/mp4/mp4_stream_parser.cc if (!BoxReader::StartTopLevelBox(buf, size, log_cb_, buf 39 media/formats/mp4/mp4_stream_parser.h virtual bool Parse(const uint8* buf, int size) OVERRIDE; buf 81 media/formats/mp4/mp4_stream_parser_unittest.cc for (StreamParser::BufferQueue::const_iterator buf = buffers.begin(); buf 82 media/formats/mp4/mp4_stream_parser_unittest.cc buf != buffers.end(); buf++) { buf 83 media/formats/mp4/mp4_stream_parser_unittest.cc DVLOG(3) << " n=" << buf - buffers.begin() buf 84 media/formats/mp4/mp4_stream_parser_unittest.cc << ", size=" << (*buf)->data_size() buf 85 media/formats/mp4/mp4_stream_parser_unittest.cc << ", dur=" << (*buf)->duration().InMilliseconds(); buf 332 media/formats/mp4/track_run_iterator.cc bool TrackRunIterator::CacheAuxInfo(const uint8* buf, int buf_size) { buf 342 media/formats/mp4/track_run_iterator.cc BufferReader reader(buf + pos, info_size); buf 55 media/formats/mp4/track_run_iterator.h bool CacheAuxInfo(const uint8* buf, int size); buf 29 media/formats/mpeg/mpeg_audio_stream_parser_base.cc static int LocateEndOfHeaders(const uint8_t* buf, int buf_len, int i) { buf 33 media/formats/mpeg/mpeg_audio_stream_parser_base.cc char c = buf[i]; buf 83 media/formats/mpeg/mpeg_audio_stream_parser_base.cc bool MPEGAudioStreamParserBase::Parse(const uint8* buf, int size) { buf 85 media/formats/mpeg/mpeg_audio_stream_parser_base.cc DCHECK(buf); buf 94 media/formats/mpeg/mpeg_audio_stream_parser_base.cc queue_.Push(buf, size); buf 39 media/formats/mpeg/mpeg_audio_stream_parser_base.h virtual bool Parse(const uint8* buf, int size) OVERRIDE; buf 247 media/formats/webm/chromeos/webm_encoder.cc EbmlWrite(packet->data.frame.buf, packet->data.frame.sz); buf 61 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + kClusterTimecodeOffset; buf 63 media/formats/webm/cluster_builder.cc buf[i] = cluster_timecode & 0xff; buf 75 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + bytes_used_; buf 77 media/formats/webm/cluster_builder.cc memcpy(buf, kSimpleBlockHeader, sizeof(kSimpleBlockHeader)); buf 79 media/formats/webm/cluster_builder.cc buf += sizeof(kSimpleBlockHeader); buf 81 media/formats/webm/cluster_builder.cc WriteBlock(buf, track_num, timecode, flags, data, size); buf 95 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + bytes_used_; buf 97 media/formats/webm/cluster_builder.cc memcpy(buf, kBlockGroupHeader, sizeof(kBlockGroupHeader)); buf 101 media/formats/webm/cluster_builder.cc buf += sizeof(kBlockGroupHeader); buf 107 media/formats/webm/cluster_builder.cc WriteBlock(buf, track_num, timecode, flags, data, size); buf 112 media/formats/webm/cluster_builder.cc void ClusterBuilder::WriteBlock(uint8* buf, int track_num, int64 timecode, buf 126 media/formats/webm/cluster_builder.cc buf[0] = 0x80 | (track_num & 0x7F); buf 127 media/formats/webm/cluster_builder.cc buf[1] = (timecode_delta >> 8) & 0xff; buf 128 media/formats/webm/cluster_builder.cc buf[2] = timecode_delta & 0xff; buf 129 media/formats/webm/cluster_builder.cc buf[3] = flags & 0xff; buf 130 media/formats/webm/cluster_builder.cc memcpy(buf + 4, data, size); buf 166 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + offset; buf 170 media/formats/webm/cluster_builder.cc buf[i] = value & 0xff; buf 46 media/formats/webm/cluster_builder.h void WriteBlock(uint8* buf, int track_num, int64 timecode, int flags, buf 70 media/formats/webm/tracks_builder.cc uint8*& buf = *buf_ptr; buf 74 media/formats/webm/tracks_builder.cc *buf++ = static_cast<uint8>(value >> ((size - idx) * 8)); buf 92 media/formats/webm/tracks_builder.cc static void WriteElementId(uint8** buf, int* buf_size, int element_id) { buf 93 media/formats/webm/tracks_builder.cc SerializeInt(buf, buf_size, element_id, GetUIntSize(element_id)); buf 96 media/formats/webm/tracks_builder.cc static void WriteUInt(uint8** buf, int* buf_size, uint64 value) { buf 99 media/formats/webm/tracks_builder.cc SerializeInt(buf, buf_size, value, size); buf 102 media/formats/webm/tracks_builder.cc static void WriteMasterElement(uint8** buf, int* buf_size, buf 104 media/formats/webm/tracks_builder.cc WriteElementId(buf, buf_size, element_id); buf 105 media/formats/webm/tracks_builder.cc WriteUInt(buf, buf_size, payload_size); buf 108 media/formats/webm/tracks_builder.cc static void WriteIntElement(uint8** buf, int* buf_size, buf 110 media/formats/webm/tracks_builder.cc WriteElementId(buf, buf_size, element_id); buf 113 media/formats/webm/tracks_builder.cc WriteUInt(buf, buf_size, size); buf 115 media/formats/webm/tracks_builder.cc SerializeInt(buf, buf_size, value, size); buf 118 media/formats/webm/tracks_builder.cc static void WriteDoubleElement(uint8** buf, int* buf_size, buf 120 media/formats/webm/tracks_builder.cc WriteElementId(buf, buf_size, element_id); buf 121 media/formats/webm/tracks_builder.cc WriteUInt(buf, buf_size, 8); buf 122 media/formats/webm/tracks_builder.cc SerializeDouble(buf, buf_size, value); buf 127 media/formats/webm/tracks_builder.cc uint8*& buf = *buf_ptr; buf 130 media/formats/webm/tracks_builder.cc WriteElementId(&buf, &buf_size, element_id); buf 133 media/formats/webm/tracks_builder.cc WriteUInt(&buf, &buf_size, size); buf 135 media/formats/webm/tracks_builder.cc memcpy(buf, value.data(), size); buf 136 media/formats/webm/tracks_builder.cc buf += size; buf 228 media/formats/webm/tracks_builder.cc void TracksBuilder::WriteTracks(uint8* buf, int buf_size) const { buf 229 media/formats/webm/tracks_builder.cc WriteMasterElement(&buf, &buf_size, kWebMIdTracks, GetTracksPayloadSize()); buf 233 media/formats/webm/tracks_builder.cc itr->Write(&buf, &buf_size); buf 342 media/formats/webm/tracks_builder.cc void TracksBuilder::Track::Write(uint8** buf, int* buf_size) const { buf 343 media/formats/webm/tracks_builder.cc WriteMasterElement(buf, buf_size, kWebMIdTrackEntry, GetPayloadSize()); buf 345 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdTrackNumber, track_num_); buf 346 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdTrackType, track_type_); buf 347 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdTrackUID, track_uid_); buf 350 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdDefaultDuration, default_duration_); buf 353 media/formats/webm/tracks_builder.cc WriteStringElement(buf, buf_size, kWebMIdCodecID, codec_id_); buf 356 media/formats/webm/tracks_builder.cc WriteStringElement(buf, buf_size, kWebMIdName, name_); buf 359 media/formats/webm/tracks_builder.cc WriteStringElement(buf, buf_size, kWebMIdLanguage, language_); buf 362 media/formats/webm/tracks_builder.cc WriteMasterElement(buf, buf_size, kWebMIdVideo, GetVideoPayloadSize()); buf 365 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdPixelWidth, video_pixel_width_); buf 368 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdPixelHeight, video_pixel_height_); buf 372 media/formats/webm/tracks_builder.cc WriteMasterElement(buf, buf_size, kWebMIdAudio, GetAudioPayloadSize()); buf 375 media/formats/webm/tracks_builder.cc WriteIntElement(buf, buf_size, kWebMIdChannels, audio_channels_); buf 378 media/formats/webm/tracks_builder.cc WriteDoubleElement(buf, buf_size, kWebMIdSamplingFrequency, buf 63 media/formats/webm/tracks_builder.h void Write(uint8** buf, int* buf_size) const; buf 76 media/formats/webm/webm_cluster_parser.cc int WebMClusterParser::Parse(const uint8* buf, int size) { buf 81 media/formats/webm/webm_cluster_parser.cc int result = parser_.Parse(buf, size); buf 216 media/formats/webm/webm_cluster_parser.cc bool WebMClusterParser::ParseBlock(bool is_simple_block, const uint8* buf, buf 225 media/formats/webm/webm_cluster_parser.cc if (!(buf[0] & 0x80)) { buf 230 media/formats/webm/webm_cluster_parser.cc int track_num = buf[0] & 0x7f; buf 231 media/formats/webm/webm_cluster_parser.cc int timecode = buf[1] << 8 | buf[2]; buf 232 media/formats/webm/webm_cluster_parser.cc int flags = buf[3] & 0xff; buf 244 media/formats/webm/webm_cluster_parser.cc const uint8* frame_data = buf + 4; buf 245 media/formats/webm/webm_cluster_parser.cc int frame_size = size - (frame_data - buf); buf 118 media/formats/webm/webm_cluster_parser.h int Parse(const uint8* buf, int size); buf 145 media/formats/webm/webm_cluster_parser.h bool ParseBlock(bool is_simple_block, const uint8* buf, int size, buf 19 media/formats/webm/webm_content_encodings_client_unittest.cc void ParseAndExpectToFail(const uint8* buf, int size) { buf 20 media/formats/webm/webm_content_encodings_client_unittest.cc int result = parser_.Parse(buf, size); buf 23 media/formats/webm/webm_info_parser.cc int WebMInfoParser::Parse(const uint8* buf, int size) { buf 28 media/formats/webm/webm_info_parser.cc int result = parser.Parse(buf, size); buf 25 media/formats/webm/webm_info_parser.h int Parse(const uint8* buf, int size); buf 425 media/formats/webm/webm_parser.cc static int ParseWebMElementHeaderField(const uint8* buf, int size, buf 428 media/formats/webm/webm_parser.cc DCHECK(buf); buf 438 media/formats/webm/webm_parser.cc uint8 ch = buf[0]; buf 462 media/formats/webm/webm_parser.cc ch = buf[bytes_used++]; buf 473 media/formats/webm/webm_parser.cc int WebMParseElementHeader(const uint8* buf, int size, buf 475 media/formats/webm/webm_parser.cc DCHECK(buf); buf 484 media/formats/webm/webm_parser.cc int num_id_bytes = ParseWebMElementHeaderField(buf, size, 4, false, &tmp); buf 494 media/formats/webm/webm_parser.cc int num_size_bytes = ParseWebMElementHeaderField(buf + num_id_bytes, buf 545 media/formats/webm/webm_parser.cc static int ParseUInt(const uint8* buf, int size, int id, buf 553 media/formats/webm/webm_parser.cc value = (value << 8) | buf[i]; buf 561 media/formats/webm/webm_parser.cc static int ParseFloat(const uint8* buf, int size, int id, buf 572 media/formats/webm/webm_parser.cc tmp = (tmp << 8) | buf[i]; buf 600 media/formats/webm/webm_parser.cc static int ParseBinary(const uint8* buf, int size, int id, buf 602 media/formats/webm/webm_parser.cc return client->OnBinary(id, buf, size) ? size : -1; buf 605 media/formats/webm/webm_parser.cc static int ParseString(const uint8* buf, int size, int id, buf 607 media/formats/webm/webm_parser.cc const uint8* end = static_cast<const uint8*>(memchr(buf, '\0', size)); buf 608 media/formats/webm/webm_parser.cc int length = (end != NULL) ? static_cast<int>(end - buf) : size; buf 609 media/formats/webm/webm_parser.cc std::string str(reinterpret_cast<const char*>(buf), length); buf 614 media/formats/webm/webm_parser.cc const uint8* buf, int size, buf 625 media/formats/webm/webm_parser.cc result = ParseUInt(buf, element_size, id, client); buf 628 media/formats/webm/webm_parser.cc result = ParseFloat(buf, element_size, id, client); buf 631 media/formats/webm/webm_parser.cc result = ParseBinary(buf, element_size, id, client); buf 634 media/formats/webm/webm_parser.cc result = ParseString(buf, element_size, id, client); buf 697 media/formats/webm/webm_parser.cc int WebMListParser::Parse(const uint8* buf, int size) { buf 698 media/formats/webm/webm_parser.cc DCHECK(buf); buf 706 media/formats/webm/webm_parser.cc const uint8* cur = buf; buf 67 media/formats/webm/webm_parser.h int Parse(const uint8* buf, int size); buf 153 media/formats/webm/webm_parser.h int MEDIA_EXPORT WebMParseElementHeader(const uint8* buf, int size, buf 69 media/formats/webm/webm_stream_parser.cc bool WebMStreamParser::Parse(const uint8* buf, int size) { buf 75 media/formats/webm/webm_stream_parser.cc byte_queue_.Push(buf, size); buf 34 media/formats/webm/webm_stream_parser.h virtual bool Parse(const uint8* buf, int size) OVERRIDE; buf 65 media/formats/webm/webm_tracks_parser.cc int WebMTracksParser::Parse(const uint8* buf, int size) { buf 82 media/formats/webm/webm_tracks_parser.cc int result = parser.Parse(buf, size); buf 38 media/formats/webm/webm_tracks_parser.h int Parse(const uint8* buf, int size); buf 55 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 56 media/formats/webm/webm_tracks_parser_unittest.cc VerifyTextTrackInfo(&buf[0], buf.size(), kTextSubtitles, "", ""); buf 65 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 66 media/formats/webm/webm_tracks_parser_unittest.cc VerifyTextTrackInfo(&buf[0], buf.size(), kTextSubtitles, "Spock", ""); buf 75 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 76 media/formats/webm/webm_tracks_parser_unittest.cc VerifyTextTrackInfo(&buf[0], buf.size(), kTextSubtitles, "", "eng"); buf 85 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 86 media/formats/webm/webm_tracks_parser_unittest.cc VerifyTextTrackInfo(&buf[0], buf.size(), kTextSubtitles, "Picard", "fre"); buf 96 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 99 media/formats/webm/webm_tracks_parser_unittest.cc int result = parser->Parse(&buf[0], buf.size()); buf 101 media/formats/webm/webm_tracks_parser_unittest.cc EXPECT_EQ(result, static_cast<int>(buf.size())); buf 112 media/formats/webm/webm_tracks_parser_unittest.cc result = parser->Parse(&buf[0], buf.size()); buf 128 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 131 media/formats/webm/webm_tracks_parser_unittest.cc int result = parser->Parse(&buf[0], buf.size()); buf 133 media/formats/webm/webm_tracks_parser_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), result); buf 157 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 160 media/formats/webm/webm_tracks_parser_unittest.cc int result = parser->Parse(&buf[0], buf.size()); buf 162 media/formats/webm/webm_tracks_parser_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), result); buf 179 media/formats/webm/webm_tracks_parser_unittest.cc const std::vector<uint8> buf = tb.Finish(); buf 182 media/formats/webm/webm_tracks_parser_unittest.cc EXPECT_EQ(-1, parser->Parse(&buf[0], buf.size())); buf 19 media/formats/webm/webm_webvtt_parser_unittest.cc const uint8* const buf = reinterpret_cast<const uint8*>(result.data()); buf 20 media/formats/webm/webm_webvtt_parser_unittest.cc return Cue(buf, buf + result.length()); buf 16 mojo/common/common_type_converters.cc Buffer* buf) { buf 19 mojo/common/common_type_converters.cc String::Builder result(input.size(), buf); buf 33 mojo/common/common_type_converters.cc Buffer* buf) { buf 35 mojo/common/common_type_converters.cc base::UTF16ToUTF8(input), buf); buf 19 mojo/common/common_type_converters.h static String ConvertFrom(const base::StringPiece& input, Buffer* buf); buf 26 mojo/common/common_type_converters.h static String ConvertFrom(const base::string16& input, Buffer* buf); buf 16 mojo/environment/buffer_tls.cc Buffer* SetCurrentBuffer(Buffer* buf) { buf 17 mojo/environment/buffer_tls.cc return SetCurrentBufferImpl(buf); buf 23 mojo/environment/buffer_tls_impl.cc Buffer* SetCurrentBufferImpl(Buffer* buf) { buf 25 mojo/environment/buffer_tls_impl.cc lazy_tls_ptr.Pointer()->Set(buf); buf 19 mojo/examples/pepper_container_app/type_converters.h static Point ConvertFrom(const PP_Point& input, Buffer* buf) { buf 20 mojo/examples/pepper_container_app/type_converters.h Point::Builder point(buf); buf 35 mojo/examples/pepper_container_app/type_converters.h static Size ConvertFrom(const PP_Size& input, Buffer* buf) { buf 36 mojo/examples/pepper_container_app/type_converters.h Size::Builder size(buf); buf 51 mojo/examples/pepper_container_app/type_converters.h static Rect ConvertFrom(const PP_Rect& input, Buffer* buf) { buf 52 mojo/examples/pepper_container_app/type_converters.h Rect::Builder rect(buf); buf 31 mojo/public/cpp/bindings/array.h Array(const U& u, Buffer* buf = Buffer::current()) { buf 32 mojo/public/cpp/bindings/array.h *this = TypeConverter<Array<T>,U>::ConvertFrom(u, buf); buf 67 mojo/public/cpp/bindings/array.h explicit Builder(size_t num_elements, Buffer* buf = mojo::Buffer::current()) buf 68 mojo/public/cpp/bindings/array.h : data_(Data::New(num_elements, buf)) { buf 104 mojo/public/cpp/bindings/array.h static String ConvertFrom(const std::string& input, Buffer* buf); buf 111 mojo/public/cpp/bindings/array.h static String ConvertFrom(const char input[N], Buffer* buf) { buf 112 mojo/public/cpp/bindings/array.h String::Builder result(N - 1, buf); buf 122 mojo/public/cpp/bindings/array.h static String ConvertFrom(const char input[N], Buffer* buf) { buf 123 mojo/public/cpp/bindings/array.h return TypeConverter<String, char[N]>::ConvertFrom(input, buf); buf 130 mojo/public/cpp/bindings/array.h static String ConvertFrom(const char* input, Buffer* buf); buf 138 mojo/public/cpp/bindings/array.h static Array<T> ConvertFrom(const std::vector<E>& input, Buffer* buf) { buf 139 mojo/public/cpp/bindings/array.h typename Array<T>::Builder result(input.size(), buf); buf 141 mojo/public/cpp/bindings/array.h result[i] = TypeConverter<T, E>::ConvertFrom(input[i], buf); buf 11 mojo/public/cpp/bindings/lib/array.cc Buffer* buf) { buf 12 mojo/public/cpp/bindings/lib/array.cc String::Builder result(input.size(), buf); buf 27 mojo/public/cpp/bindings/lib/array.cc Buffer* buf) { buf 32 mojo/public/cpp/bindings/lib/array.cc String::Builder result(size, buf); buf 111 mojo/public/cpp/bindings/lib/array_internal.h Buffer* buf) { buf 137 mojo/public/cpp/bindings/lib/array_internal.h Buffer* buf) { buf 165 mojo/public/cpp/bindings/lib/array_internal.h Buffer* buf) { buf 168 mojo/public/cpp/bindings/lib/array_internal.h elements[i].ptr = elements[i].ptr->Clone(buf); buf 199 mojo/public/cpp/bindings/lib/array_internal.h static Array_Data<T>* New(size_t num_elements, Buffer* buf) { buf 202 mojo/public/cpp/bindings/lib/array_internal.h return new (buf->Allocate(num_bytes)) Array_Data<T>(num_bytes, buf 233 mojo/public/cpp/bindings/lib/array_internal.h Array_Data<T>* Clone(Buffer* buf) const { buf 234 mojo/public/cpp/bindings/lib/array_internal.h Array_Data<T>* clone = New(header_.num_elements, buf); buf 240 mojo/public/cpp/bindings/lib/array_internal.h clone->storage(), buf); buf 19 mojo/public/cpp/bindings/lib/buffer.cc Buffer* buf MOJO_ALLOW_UNUSED = internal::SetCurrentBuffer(previous_); buf 20 mojo/public/cpp/bindings/lib/buffer.cc assert(buf == this); buf 13 mojo/public/cpp/bindings/lib/message_builder.cc void Allocate(Buffer* buf, Header** header) { buf 14 mojo/public/cpp/bindings/lib/message_builder.cc *header = static_cast<Header*>(buf->Allocate(sizeof(Header))); buf 21 mojo/public/cpp/bindings/tests/array_unittest.cc internal::FixedBuffer buf(8 + 8*sizeof(char)); buf 22 mojo/public/cpp/bindings/tests/array_unittest.cc EXPECT_EQ(16u, buf.size()); buf 44 mojo/public/cpp/bindings/tests/array_unittest.cc internal::FixedBuffer buf(8 + 3); buf 45 mojo/public/cpp/bindings/tests/array_unittest.cc EXPECT_EQ(16u, buf.size()); buf 19 mojo/public/cpp/bindings/tests/buffer_unittest.cc char* buf = reinterpret_cast<char*>(p_buf); buf 21 mojo/public/cpp/bindings/tests/buffer_unittest.cc if (buf[i] != 0) buf 32 mojo/public/cpp/bindings/tests/buffer_unittest.cc internal::ScratchBuffer buf; buf 33 mojo/public/cpp/bindings/tests/buffer_unittest.cc void* small = buf.Allocate(10); buf 34 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_TRUE(small >= &buf && small < (&buf + sizeof(buf))); buf 38 mojo/public/cpp/bindings/tests/buffer_unittest.cc void* large = buf.Allocate(100*1024); buf 40 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_FALSE(large >= &buf && large < (&buf + sizeof(buf))); buf 43 mojo/public/cpp/bindings/tests/buffer_unittest.cc small = buf.Allocate(10); buf 45 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_TRUE(small >= &buf && small < (&buf + sizeof(buf))); buf 71 mojo/public/cpp/bindings/tests/buffer_unittest.cc internal::FixedBuffer buf(internal::Align(10) * 2); buf 72 mojo/public/cpp/bindings/tests/buffer_unittest.cc ASSERT_EQ(buf.size(), 16u * 2); buf 74 mojo/public/cpp/bindings/tests/buffer_unittest.cc void* a = buf.Allocate(10); buf 79 mojo/public/cpp/bindings/tests/buffer_unittest.cc void* b = buf.Allocate(10); buf 94 mojo/public/cpp/bindings/tests/buffer_unittest.cc internal::FixedBuffer buf(8); buf 95 mojo/public/cpp/bindings/tests/buffer_unittest.cc ASSERT_EQ(8u, buf.size()); buf 97 mojo/public/cpp/bindings/tests/buffer_unittest.cc ptr = buf.Allocate(8); buf 99 mojo/public/cpp/bindings/tests/buffer_unittest.cc void* buf_ptr = buf.Leak(); buf 106 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_EQ(0u, buf.size()); buf 107 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_FALSE(buf.Leak()); buf 120 mojo/public/cpp/bindings/tests/buffer_unittest.cc internal::FixedBuffer buf(24); buf 123 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_EQ(reinterpret_cast<void*>(0), buf.Allocate(32)); buf 126 mojo/public/cpp/bindings/tests/buffer_unittest.cc EXPECT_NE(reinterpret_cast<void*>(0), buf.Allocate(16)); buf 130 mojo/public/cpp/bindings/tests/buffer_unittest.cc buf.Allocate(std::numeric_limits<size_t>::max() - 8u)); buf 52 mojo/public/cpp/bindings/tests/request_response_unittest.cc StringRecorder(std::string* buf) : buf_(buf) { buf 91 mojo/public/cpp/bindings/tests/request_response_unittest.cc std::string buf; buf 94 mojo/public/cpp/bindings/tests/request_response_unittest.cc provider->EchoString("hello", StringRecorder(&buf)); buf 99 mojo/public/cpp/bindings/tests/request_response_unittest.cc EXPECT_EQ(std::string("hello"), buf); buf 107 mojo/public/cpp/bindings/tests/request_response_unittest.cc std::string buf; buf 110 mojo/public/cpp/bindings/tests/request_response_unittest.cc provider->EchoStrings("hello", " world", StringRecorder(&buf)); buf 115 mojo/public/cpp/bindings/tests/request_response_unittest.cc EXPECT_EQ(std::string("hello world"), buf); buf 200 mojo/public/cpp/bindings/tests/sample_service_unittest.cc std::stringstream buf; buf 201 mojo/public/cpp/bindings/tests/sample_service_unittest.cc buf << i; buf 202 mojo/public/cpp/bindings/tests/sample_service_unittest.cc Print(depth, buf.str().data(), array.at(i)); buf 30 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc static test_structs::Rect ConvertFrom(const RedmondRect& input, Buffer* buf) { buf 31 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc test_structs::Rect::Builder rect(buf); buf 52 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc Buffer* buf) { buf 53 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc test_structs::NamedRegion::Builder region(buf); buf 54 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc region.set_name(String(input.name, buf)); buf 55 mojo/public/cpp/bindings/tests/type_conversion_unittest.cc region.set_rects(mojo::Array<test_structs::Rect>(input.rects, buf)); buf 30 mojo/public/cpp/environment/lib/buffer_tls.cc Buffer* SetCurrentBuffer(Buffer* buf) { buf 32 mojo/public/cpp/environment/lib/buffer_tls.cc current_buffer.Set(buf); buf 16 mojo/services/native_viewport/geometry_conversions.h static Point ConvertFrom(const gfx::Point& input, Buffer* buf) { buf 17 mojo/services/native_viewport/geometry_conversions.h Point::Builder point(buf); buf 30 mojo/services/native_viewport/geometry_conversions.h static Size ConvertFrom(const gfx::Size& input, Buffer* buf) { buf 31 mojo/services/native_viewport/geometry_conversions.h Size::Builder size(buf); buf 44 mojo/services/native_viewport/geometry_conversions.h static Rect ConvertFrom(const gfx::Rect& input, Buffer* buf) { buf 45 mojo/services/native_viewport/geometry_conversions.h Rect::Builder rect(buf); buf 337 native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc char buf[512]; buf 338 native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc vsnprintf(buf, sizeof(buf) - 1, format, args); buf 339 native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc buf[sizeof(buf) - 1] = '\0'; buf 342 native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc pp::Var value(buf); buf 494 native_client_sdk/src/examples/demo/nacl_io/handlers.c struct stat buf; buf 503 native_client_sdk/src/examples/demo/nacl_io/handlers.c memset(&buf, 0, sizeof(buf)); buf 504 native_client_sdk/src/examples/demo/nacl_io/handlers.c result = stat(filename, &buf); buf 510 native_client_sdk/src/examples/demo/nacl_io/handlers.c *output = PrintfToNewString("stat\1%s\1%d", filename, buf.st_size); buf 15 native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc char* getcwd(char* buf, size_t size) __attribute__ ((weak)); buf 19 native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc char* getcwd(char* buf, size_t size) { buf 25 native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc return strncpy(buf, ".", size); buf 40 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 44 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 58 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 62 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 72 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 85 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 89 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 99 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 103 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 119 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 125 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc int err = _real_read(fd_, buf, count, &readcnt); buf 134 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 140 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc int err = _real_write(fd_, buf, count, &writecnt); buf 151 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 159 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 170 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 181 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const char* var_data = static_cast<const char*>(buf); buf 195 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 198 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc memset(buf, 0, count); buf 204 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 221 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc void* buf, buf 231 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc int error = (*random_interface_.get_random_bytes)(buf, count, &nread); buf 235 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc char* out = static_cast<char*>(buf); buf 257 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc const void* buf, buf 20 native_client_sdk/src/libraries/nacl_io/devfs/jspipe_node.cc const void* buf, buf 40 native_client_sdk/src/libraries/nacl_io/devfs/jspipe_node.cc memcpy(buffer_iface->Map(buffer), buf, count); buf 23 native_client_sdk/src/libraries/nacl_io/devfs/jspipe_node.h const void* buf, buf 82 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc const void* buf, buf 93 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc static_cast<const char*>(buf), count, output_handler_.user_data); buf 105 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc void* buf, buf 132 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc static_cast<char*>(buf)); buf 28 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.h void* buf, buf 33 native_client_sdk/src/libraries/nacl_io/devfs/tty_node.h const void* buf, buf 39 native_client_sdk/src/libraries/nacl_io/dir_node.cc void* buf, buf 49 native_client_sdk/src/libraries/nacl_io/dir_node.cc const void* buf, buf 39 native_client_sdk/src/libraries/nacl_io/dir_node.h void* buf, buf 43 native_client_sdk/src/libraries/nacl_io/dir_node.h const void* buf, buf 59 native_client_sdk/src/libraries/nacl_io/fifo_char.cc size_t FIFOChar::Peek(void* buf, size_t len) { buf 60 native_client_sdk/src/libraries/nacl_io/fifo_char.cc char* ptr = static_cast<char*>(buf); buf 83 native_client_sdk/src/libraries/nacl_io/fifo_char.cc size_t FIFOChar::Read(void* buf, size_t len) { buf 84 native_client_sdk/src/libraries/nacl_io/fifo_char.cc size_t read_len = Peek(buf, len); buf 92 native_client_sdk/src/libraries/nacl_io/fifo_char.cc size_t FIFOChar::Write(const void* buf, size_t len) { buf 93 native_client_sdk/src/libraries/nacl_io/fifo_char.cc const char* ptr = static_cast<const char*>(buf); buf 33 native_client_sdk/src/libraries/nacl_io/fifo_char.h size_t Peek(void* buf, size_t len); buf 37 native_client_sdk/src/libraries/nacl_io/fifo_char.h size_t Read(void* buf, size_t len); buf 41 native_client_sdk/src/libraries/nacl_io/fifo_char.h size_t Write(const void* buf, size_t len); buf 54 native_client_sdk/src/libraries/nacl_io/fuse.h typedef int (*fuse_fill_dir_t)(void* buf, buf 122 native_client_sdk/src/libraries/nacl_io/fuse.h int (*read)(const char* path, char* buf, size_t count, off_t, buf 170 native_client_sdk/src/libraries/nacl_io/fuse.h int (*readdir)(const char* path, void* buf, fuse_fill_dir_t filldir, off_t, buf 190 native_client_sdk/src/libraries/nacl_io/fuse.h int (*write)(const char* path, const char* buf, size_t count, off_t, buf 218 native_client_sdk/src/libraries/nacl_io/fuse.h int (*write_buf)(const char*, struct fuse_bufvec* buf, off_t off, buf 304 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc void* buf, buf 310 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc char* cbuf = static_cast<char*>(buf); buf 327 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc const void* buf, buf 334 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc path_.c_str(), static_cast<const char*>(buf), count, attr.offs, &info_); buf 420 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc int DirFuseFsNode::FillDirCallback(void* buf, buf 424 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc FillDirInfo* fill_info = static_cast<FillDirInfo*>(buf); buf 78 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h void* buf, buf 82 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h const void* buf, buf 109 native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h static int FillDirCallback(void* buf, buf 176 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc void* buf, buf 187 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc static_cast<char*>(buf), buf 209 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc const void* buf, buf 220 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc static_cast<const char*>(buf), buf 27 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.h void* buf, buf 32 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.h const void* buf, buf 171 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc void* buf, buf 184 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc return ReadPartialFromCache(attr, buf, count, out_bytes); buf 187 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc return DownloadPartial(attr, buf, count, out_bytes); buf 193 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc const void* buf, buf 394 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc void* buf, buf 406 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc memcpy(buf, &cached_data_.data()[attr.offs], count); buf 412 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc void* buf, buf 501 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc return ReadResponseToBuffer(loader, buf, count, out_bytes); buf 560 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc void* buf = cached_data_.data() + *out_bytes; buf 563 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc Error error = ReadResponseToBuffer(loader, buf, kBytesToRead, &bytes_read); buf 606 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc void* buf, buf 614 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc char* out_buffer = static_cast<char*>(buf); buf 29 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h void* buf, buf 34 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h const void* buf, buf 59 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h void* buf, buf 63 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h void* buf, buf 83 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h void* buf, buf 22 native_client_sdk/src/libraries/nacl_io/include/sys/utsname.h int uname(struct utsname *buf); buf 46 native_client_sdk/src/libraries/nacl_io/ioctl.h typedef ssize_t (*tioc_nacl_output_handler_t)(const char* buf, buf 96 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::Read(void* buf, size_t nbytes, int* cnt) { buf 100 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error error = node_->Read(handle_attr_, buf, nbytes, cnt); buf 106 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::Write(const void* buf, size_t nbytes, int* cnt) { buf 110 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error error = node_->Write(handle_attr_, buf, nbytes, cnt); buf 175 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::Recv(void* buf, size_t len, int flags, int* out_len) { buf 183 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc return sock->Recv(handle_attr_, buf, len, flags, out_len); buf 186 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::RecvFrom(void* buf, buf 199 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc return sock->RecvFrom(handle_attr_, buf, len, flags, src_addr, addrlen, buf 203 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::Send(const void* buf, buf 214 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc return sock->Send(handle_attr_, buf, len, flags, out_len); buf 217 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc Error KernelHandle::SendTo(const void* buf, buf 230 native_client_sdk/src/libraries/nacl_io/kernel_handle.cc return sock->SendTo(handle_attr_, buf, len, flags, dest_addr, addrlen, buf 55 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error Read(void* buf, size_t nbytes, int* bytes_read); buf 56 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error Recv(void* buf, size_t len, int flags, int* out_len); buf 57 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error RecvFrom(void* buf, buf 65 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error Send(const void* buf, size_t len, int flags, int* out_len); buf 66 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error SendTo(const void* buf, buf 72 native_client_sdk/src/libraries/nacl_io/kernel_handle.h Error Write(const void* buf, size_t nbytes, int* bytes_written); buf 124 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc char* ki_getcwd(char* buf, size_t size) { buf 132 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc buf[0] = '.'; buf 133 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc buf[1] = 0; buf 134 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return buf; buf 136 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getcwd(buf, size); buf 139 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc char* ki_getwd(char* buf) { buf 141 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getwd(buf); buf 169 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_stat(const char *path, struct stat *buf) { buf 171 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->stat(path, buf); buf 205 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_read(int fd, void *buf, size_t nbyte) { buf 207 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->read(fd, buf, nbyte); buf 210 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_write(int fd, const void *buf, size_t nbyte) { buf 212 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->write(fd, buf, nbyte); buf 215 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fstat(int fd, struct stat *buf){ buf 217 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fstat(fd, buf); buf 220 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_getdents(int fd, void *buf, unsigned int count) { buf 222 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getdents(fd, buf, count); buf 270 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_lstat(const char* path, struct stat* buf) { buf 272 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->lstat(path, buf); buf 295 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_readlink(const char *path, char *buf, size_t count) { buf 297 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->readlink(path, buf, count); buf 477 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_recv(int fd, void* buf, size_t len, int flags) { buf 479 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->recv(fd, buf, len, flags); buf 482 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_recvfrom(int fd, void* buf, size_t len, int flags, buf 485 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->recvfrom(fd, buf, len, flags, addr, addrlen); buf 493 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_send(int fd, const void* buf, size_t len, int flags) { buf 495 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->send(fd, buf, len, flags); buf 498 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_sendto(int fd, const void* buf, size_t len, int flags, buf 501 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->sendto(fd, buf, len, flags, addr, addrlen); buf 72 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h char* ki_getcwd(char* buf, size_t size); buf 73 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h char* ki_getwd(char* buf); buf 79 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_stat(const char* path, struct stat* buf); buf 87 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_read(int fd, void* buf, size_t nbyte); buf 88 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_write(int fd, const void* buf, size_t nbyte); buf 89 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fstat(int fd, struct stat *buf); buf 90 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_getdents(int fd, void* buf, unsigned int count); buf 100 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_lstat(const char* path, struct stat* buf); buf 105 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_readlink(const char *path, char *buf, size_t count); buf 150 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_recv(int fd, void* buf, size_t len, int flags); buf 151 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_recvfrom(int fd, void* buf, size_t len, int flags, buf 154 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_send(int fd, const void* buf, size_t len, int flags); buf 155 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_sendto(int fd, const void* buf, size_t len, int flags, buf 286 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc char* KernelProxy::getcwd(char* buf, size_t size) { buf 287 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf) { buf 300 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc strcpy(buf, cwd.c_str()); buf 301 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return buf; buf 304 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc char* KernelProxy::getwd(char* buf) { buf 305 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf) { buf 309 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return getcwd(buf, MAXPATHLEN); buf 376 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::stat(const char* path, struct stat* buf) { buf 381 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int result = fstat(fd, buf); buf 453 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::read(int fd, void* buf, size_t nbytes) { buf 462 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->Read(buf, nbytes, &cnt); buf 471 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::write(int fd, const void* buf, size_t nbytes) { buf 480 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->Write(buf, nbytes, &cnt); buf 489 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fstat(int fd, struct stat* buf) { buf 497 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->node()->GetStat(buf); buf 506 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::getdents(int fd, void* buf, unsigned int count) { buf 515 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->GetDents(static_cast<dirent*>(buf), count, &cnt); buf 670 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::lstat(const char* path, struct stat* buf) { buf 671 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return stat(path, buf); buf 803 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::readlink(const char *path, char *buf, size_t count) { buf 1372 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc void* buf, buf 1375 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf) { buf 1388 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->Recv(buf, len, flags, &out_len); buf 1398 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc void* buf, buf 1405 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return recv(fd, buf, len, flags); buf 1408 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf || NULL == addrlen) { buf 1421 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->RecvFrom(buf, len, flags, addr, addrlen, &out_len); buf 1444 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::send(int fd, const void* buf, size_t len, int flags) { buf 1445 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf) { buf 1458 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->Send(buf, len, flags, &out_len); buf 1468 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc const void* buf, buf 1475 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return send(fd, buf, len, flags); buf 1478 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (NULL == buf) { buf 1491 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = handle->SendTo(buf, len, flags, addr, addrlen, &out_len); buf 77 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual char* getcwd(char* buf, size_t size); buf 78 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual char* getwd(char* buf); buf 100 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int stat(const char *path, struct stat *buf); buf 106 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t read(int fd, void *buf, size_t nbyte); buf 107 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t write(int fd, const void *buf, size_t nbyte); buf 111 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fstat(int fd, struct stat *buf); buf 112 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int getdents(int fd, void *buf, unsigned int count); buf 131 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int lstat(const char* path, struct stat* buf); buf 135 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int readlink(const char *path, char *buf, size_t count); buf 181 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h void* buf, buf 185 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h void* buf, buf 191 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t send(int fd, const void* buf, size_t len, int flags); buf 193 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h const void* buf, buf 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat32(int fd, struct _stat32* buf); buf 56 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat64(int fd, struct _stat64* buf); buf 57 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat32i64(int fd, struct _stat32i64* buf); buf 58 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat64i32(int fd, struct _stat64i32* buf); buf 61 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h extern int fstat(int fd, struct stat* buf) NOTHROW; buf 65 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h char* NAME(getcwd)(char* buf, getcwd_size_t size) NOTHROW; buf 66 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h char* getwd(char* buf) NOTHROW; buf 68 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getdents(int fd, void* buf, unsigned int count) NOTHROW; buf 71 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getdents(unsigned int fd, struct dirent* buf, unsigned int count) NOTHROW; buf 88 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h read_ssize_t NAME(read)(int fd, void* buf, size_t nbyte); buf 94 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _stat32(const char* path, struct _stat32* buf); buf 95 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _stat64(const char* path, struct _stat64* buf); buf 96 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _stat32i64(const char* path, struct _stat32i64* buf); buf 97 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _stat64i32(const char* path, struct _stat64i32* buf); buf 99 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h extern int stat(const char* path, struct stat* buf) NOTHROW; buf 105 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); buf 117 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t recv(int fd, void* buf, size_t len, int flags); buf 118 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t recvfrom(int fd, void* buf, size_t len, int flags, buf 121 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t send(int fd, const void* buf, size_t len, int flags); buf 122 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t sendto(int fd, const void* buf, size_t len, int flags, buf 27 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc void stat_to_nacl_stat(const struct stat* buf, nacl_abi_stat* nacl_buf) { buf 29 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_dev = buf->st_dev; buf 30 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_ino = buf->st_ino; buf 31 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_mode = buf->st_mode; buf 32 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_nlink = buf->st_nlink; buf 33 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_uid = buf->st_uid; buf 34 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_gid = buf->st_gid; buf 35 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_rdev = buf->st_rdev; buf 36 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_size = buf->st_size; buf 37 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_blksize = buf->st_blksize; buf 38 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_blocks = buf->st_blocks; buf 39 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_atime = buf->st_atime; buf 40 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_mtime = buf->st_mtime; buf 41 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_buf->nacl_abi_st_ctime = buf->st_ctime; buf 44 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc void nacl_stat_to_stat(const nacl_abi_stat* nacl_buf, struct stat* buf) { buf 45 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc memset(buf, 0, sizeof(struct stat)); buf 46 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_dev = nacl_buf->nacl_abi_st_dev; buf 47 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_ino = nacl_buf->nacl_abi_st_ino; buf 48 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_mode = nacl_buf->nacl_abi_st_mode; buf 49 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_nlink = nacl_buf->nacl_abi_st_nlink; buf 50 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_uid = nacl_buf->nacl_abi_st_uid; buf 51 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_gid = nacl_buf->nacl_abi_st_gid; buf 52 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_rdev = nacl_buf->nacl_abi_st_rdev; buf 53 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_size = nacl_buf->nacl_abi_st_size ; buf 54 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_blksize = nacl_buf->nacl_abi_st_blksize; buf 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_blocks = nacl_buf->nacl_abi_st_blocks; buf 56 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_atime = nacl_buf->nacl_abi_st_atime; buf 57 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_mtime = nacl_buf->nacl_abi_st_mtime; buf 58 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc buf->st_ctime = nacl_buf->nacl_abi_st_ctime; buf 187 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc struct stat buf; buf 188 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc memset(&buf, 0, sizeof(struct stat)); buf 189 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int res = ki_fstat(fd, &buf); buf 192 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc stat_to_nacl_stat(&buf, nacl_buf); buf 200 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc char* WRAP(getcwd)(char* buf, size_t size) { buf 201 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc if (ki_getcwd(buf, size) == NULL) buf 211 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc char* buf = (char*)alloca(nacl_count); buf 215 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc count = ki_getdents(fd, buf, nacl_count); buf 220 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc dirent* d = (dirent*)(buf + offset); buf 244 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc struct stat buf; buf 245 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc memset(&buf, 0, sizeof(struct stat)); buf 246 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int res = ki_lstat(path, &buf); buf 249 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc stat_to_nacl_stat(&buf, nacl_buf); buf 289 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(read)(int fd, void *buf, size_t count, size_t *nread) { buf 290 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc ssize_t signed_nread = ki_read(fd, buf, count); buf 295 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(readlink)(const char* path, char* buf, size_t count, size_t* nread) { buf 296 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc ssize_t signed_nread = ki_readlink(path, buf, count); buf 317 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc struct stat buf; buf 318 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc memset(&buf, 0, sizeof(struct stat)); buf 319 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int res = ki_stat(pathname, &buf); buf 322 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc stat_to_nacl_stat(&buf, nacl_buf); buf 330 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { buf 331 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc ssize_t signed_nwrote = ki_write(fd, buf, count); buf 374 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fstat(int fd, struct stat* buf) { buf 384 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_stat_to_stat(&st, buf); buf 393 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_getdents(int fd, void* buf, size_t count, size_t* nread) { buf 406 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc dirent* d = (dirent*)((char*)buf + offset); buf 436 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_lstat(const char* path, struct stat* buf) { buf 446 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc nacl_stat_to_stat(&st, buf); buf 477 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { buf 479 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(read)(fd, buf, count, nread); buf 482 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_readlink(const char *path, char* buf, size_t count, size_t* nread) { buf 484 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(readlink)(path, buf, count, nread); buf 497 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { buf 499 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(write)(fd, buf, count, nwrote); buf 22 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_fstat(int fd, struct stat *buf) { buf 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { buf 64 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { buf 65 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int rtn = write(fd, buf, count); buf 31 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc void stat_to_nacl_stat(const struct stat* buf, nacl_abi_stat* nacl_buf) { buf 33 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_dev = buf->st_dev; buf 34 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_ino = buf->st_ino; buf 35 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_mode = buf->st_mode; buf 36 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_nlink = buf->st_nlink; buf 37 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_uid = buf->st_uid; buf 38 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_gid = buf->st_gid; buf 39 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_rdev = buf->st_rdev; buf 40 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_size = buf->st_size; buf 41 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_blksize = buf->st_blksize; buf 42 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_blocks = buf->st_blocks; buf 43 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_atime = buf->st_atime; buf 44 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_mtime = buf->st_mtime; buf 45 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_buf->nacl_abi_st_ctime = buf->st_ctime; buf 48 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc void nacl_stat_to_stat(const nacl_abi_stat* nacl_buf, struct stat* buf) { buf 49 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc memset(buf, 0, sizeof(struct stat)); buf 50 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_dev = nacl_buf->nacl_abi_st_dev; buf 51 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_ino = nacl_buf->nacl_abi_st_ino; buf 52 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_mode = nacl_buf->nacl_abi_st_mode; buf 53 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_nlink = nacl_buf->nacl_abi_st_nlink; buf 54 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_uid = nacl_buf->nacl_abi_st_uid; buf 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_gid = nacl_buf->nacl_abi_st_gid; buf 56 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_rdev = nacl_buf->nacl_abi_st_rdev; buf 57 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_size = nacl_buf->nacl_abi_st_size ; buf 58 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_blksize = nacl_buf->nacl_abi_st_blksize; buf 59 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_blocks = nacl_buf->nacl_abi_st_blocks; buf 60 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_atime = nacl_buf->nacl_abi_st_atime; buf 61 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_mtime = nacl_buf->nacl_abi_st_mtime; buf 62 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc buf->st_ctime = nacl_buf->nacl_abi_st_ctime; buf 172 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc struct stat buf; buf 173 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc memset(&buf, 0, sizeof(struct stat)); buf 174 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int res = ki_fstat(fd, &buf); buf 177 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc stat_to_nacl_stat(&buf, nacl_buf); buf 181 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(getcwd)(char* buf, size_t size) { buf 182 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc if (ki_getcwd(buf, size) == NULL) buf 192 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc char* buf = (char*)alloca(nacl_count); buf 196 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc count = ki_getdents(fd, buf, nacl_count); buf 201 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc dirent* d = (dirent*)(buf + offset); buf 253 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(read)(int fd, void *buf, size_t count, size_t *nread) { buf 254 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc ssize_t signed_nread = ki_read(fd, buf, count); buf 275 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc struct stat buf; buf 276 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc memset(&buf, 0, sizeof(struct stat)); buf 277 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int res = ki_stat(pathname, &buf); buf 280 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc stat_to_nacl_stat(&buf, nacl_buf); buf 284 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { buf 285 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc ssize_t signed_nwrote = ki_write(fd, buf, count); buf 314 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_fstat(int fd, struct stat* buf) { buf 323 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc nacl_stat_to_stat(&st, buf); buf 327 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_getdents(int fd, void* buf, size_t count, size_t* nread) { buf 340 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc dirent* d = (dirent*)((char*)buf + offset); buf 388 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { buf 390 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(read)(fd, buf, count, nread); buf 398 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { buf 400 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(write)(fd, buf, count, nwrote); buf 113 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(read)(int fd, void* buf, size_t count, size_t* nread) { buf 114 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc ssize_t signed_nread = ki_read(fd, buf, count); buf 119 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { buf 120 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc ssize_t signed_nwrote = ki_write(fd, buf, count); buf 130 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fstat)(int fd, struct stat* buf) { buf 131 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fstat(fd, buf) < 0) ? errno : 0; buf 134 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(getdents)(int fd, dirent* buf, size_t count, size_t* nread) { buf 135 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int rtn = ki_getdents(fd, buf, count); buf 190 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(stat)(const char* pathname, struct stat* buf) { buf 191 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_stat(pathname, buf) < 0) ? errno : 0; buf 221 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(lstat)(const char* pathname, struct stat* buf) { buf 222 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_lstat(pathname, buf) < 0) ? errno : 0; buf 245 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(readlink)(const char* pathname, char *buf, buf 247 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int rtn = ki_readlink(pathname, buf, count); buf 283 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_fstat(int fd, struct stat* buf) { buf 285 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(fstat)(fd, buf); buf 327 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_read(int fd, void* buf, size_t count, size_t* nread) { buf 329 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(read)(fd, buf, count, nread); buf 336 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_write(int fd, const void* buf, size_t count, size_t* nwrote) { buf 338 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(write)(fd, buf, count, nwrote); buf 17 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_fstat(int fd, struct stat *buf); buf 27 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_read(int fd, void *buf, size_t count, size_t *nread); buf 29 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_write(int fd, const void *buf, size_t count, size_t *nwrote); buf 76 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat32(int fd, struct _stat32* buf) { buf 79 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 83 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat64(int fd, struct _stat64* buf) { buf 86 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 90 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat32i64(int fd, struct _stat32i64* buf) { buf 93 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 97 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat64i32(int fd, struct _stat64i32* buf) { buf 100 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 104 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc char* _getcwd(char* buf, int size) { buf 113 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc if (buf == NULL) { buf 114 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc buf = static_cast<char*>(malloc(size)); buf 116 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_getcwd(buf, size); buf 155 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _read(int fd, void* buf, size_t nbyte) { buf 159 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_read(fd, buf, nbyte); buf 162 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _read_nolock(int fd, void* buf, size_t nbyte) { buf 166 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_read(fd, buf, nbyte); buf 186 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _stat32(const char* path, struct _stat32* buf) { buf 189 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 193 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _stat64(const char* path, struct _stat64* buf) { buf 196 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 200 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _stat64i32(const char* path, struct _stat64i32* buf) { buf 203 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 207 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _stat32i64(const char* path, struct _stat32i64* buf) { buf 210 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc CopyStat(&ki_buf, buf); buf 222 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _write(int fd, const void* buf, size_t nbyte) { buf 226 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_write(fd, buf, nbyte); buf 33 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc void* buf, buf 48 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc memcpy(buf, &data_[attr.offs], count); buf 54 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc const void* buf, buf 68 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc memcpy(&data_[attr.offs], buf, count); buf 24 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.h void* buf, buf 28 native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.h const void* buf, buf 103 native_client_sdk/src/libraries/nacl_io/node.cc void* buf, buf 111 native_client_sdk/src/libraries/nacl_io/node.cc const void* buf, buf 72 native_client_sdk/src/libraries/nacl_io/node.h void* buf, buf 77 native_client_sdk/src/libraries/nacl_io/node.h const void* buf, buf 31 native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc void* buf, buf 42 native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc err = _real_read(real_fd_, buf, count, &nread); buf 51 native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc const void* buf, buf 62 native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc err = _real_write(real_fd_, buf, count, &nwrote); buf 28 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.cc void* buf, buf 38 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.cc *out_bytes = pipe_->Read_Locked(static_cast<char*>(buf), count); buf 43 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.cc const void* buf, buf 53 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.cc *out_bytes = pipe_->Write_Locked(static_cast<const char*>(buf), count); buf 22 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.h void* buf, buf 26 native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.h const void* buf, buf 73 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc void* buf, buf 76 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc return Recv(attr, buf, count, 0, out_bytes); buf 80 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc const void* buf, buf 83 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc return Send(attr, buf, count, 0, out_bytes); buf 319 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc void* buf, buf 323 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc return RecvFrom(attr, buf, len, flags, NULL, 0, out_len); buf 327 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc void* buf, buf 334 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc Error err = RecvHelper(attr, buf, len, flags, &addr, out_len); buf 346 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc void* buf, buf 370 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc err = Recv_Locked(buf, len, addr, out_len); buf 379 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc const void* buf, buf 383 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc return SendHelper(attr, buf, len, flags, remote_addr_, out_len); buf 387 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc const void* buf, buf 400 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc Error err = SendHelper(attr, buf, len, flags, addr, out_len); buf 406 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc const void* buf, buf 431 native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc err = Send_Locked(buf, len, addr, out_len); buf 42 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h void* buf, buf 46 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h const void* buf, buf 75 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h void* buf, buf 80 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h void* buf, buf 87 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h const void* buf, buf 92 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h const void* buf, buf 116 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h const void* buf, buf 124 native_client_sdk/src/libraries/nacl_io/socket/socket_node.h void* buf, buf 530 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc Error TcpNode::Recv_Locked(void* buf, buf 535 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc *out_len = emitter_->ReadIn_Locked((char*)buf, len); buf 544 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc Error TcpNode::Send_Locked(const void* buf, buf 551 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc *out_len = emitter_->WriteOut_Locked((char*)buf, len); buf 59 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.h virtual Error Recv_Locked(void* buf, buf 64 native_client_sdk/src/libraries/nacl_io/socket/tcp_node.h virtual Error Send_Locked(const void* buf, buf 247 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc Error UdpNode::Recv_Locked(void* buf, buf 257 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc memcpy(buf, packet->buffer(), capped_len); buf 274 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc Error UdpNode::Send_Locked(const void* buf, buf 293 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc packet->Copy(buf, capped_len, addr); buf 39 native_client_sdk/src/libraries/nacl_io/socket/udp_node.h virtual Error Recv_Locked(void* buf, buf 44 native_client_sdk/src/libraries/nacl_io/socket/udp_node.h virtual Error Send_Locked(const void* buf, buf 14 native_client_sdk/src/libraries/nacl_io/syscalls/fdopen.c static ssize_t fdopen_read(void *cookie, char *buf, size_t size) { buf 15 native_client_sdk/src/libraries/nacl_io/syscalls/fdopen.c return read((int) cookie, buf, size); buf 18 native_client_sdk/src/libraries/nacl_io/syscalls/fdopen.c static ssize_t fdopen_write(void *cookie, const char *buf, size_t size) { buf 19 native_client_sdk/src/libraries/nacl_io/syscalls/fdopen.c return write((int) cookie, buf, size); buf 11 native_client_sdk/src/libraries/nacl_io/syscalls/getcwd.c char* getcwd(char* buf, size_t size) { buf 20 native_client_sdk/src/libraries/nacl_io/syscalls/getcwd.c if (buf == NULL) { buf 21 native_client_sdk/src/libraries/nacl_io/syscalls/getcwd.c buf = (char*)malloc(size); buf 23 native_client_sdk/src/libraries/nacl_io/syscalls/getcwd.c return ki_getcwd(buf, size); buf 8 native_client_sdk/src/libraries/nacl_io/syscalls/getwd.c char* getwd(char* buf) { buf 9 native_client_sdk/src/libraries/nacl_io/syscalls/getwd.c return ki_getwd(buf); buf 10 native_client_sdk/src/libraries/nacl_io/syscalls/inet_ntoa.c const char* buf = (const char*)addr; buf 11 native_client_sdk/src/libraries/nacl_io/syscalls/inet_ntoa.c return (uint8_t)buf[byte]; buf 15 native_client_sdk/src/libraries/nacl_io/syscalls/lstat.c int __lxstat(int ver, const char* pathname, struct stat* buf) { buf 16 native_client_sdk/src/libraries/nacl_io/syscalls/lstat.c return ki_lstat(pathname, buf); buf 12 native_client_sdk/src/libraries/nacl_io/syscalls/readlink.c int readlink(const char* pathname, char* buf, int len) { buf 13 native_client_sdk/src/libraries/nacl_io/syscalls/readlink.c return ki_readlink(pathname, buf, len); buf 10 native_client_sdk/src/libraries/nacl_io/syscalls/recv.c ssize_t recv(int fd, void* buf, size_t len, int flags) { buf 11 native_client_sdk/src/libraries/nacl_io/syscalls/recv.c return ki_recv(fd, buf, len, flags); buf 10 native_client_sdk/src/libraries/nacl_io/syscalls/recvfrom.c ssize_t recvfrom(int fd, void* buf, size_t len, int flags, buf 12 native_client_sdk/src/libraries/nacl_io/syscalls/recvfrom.c return ki_recvfrom(fd, buf, len, flags, addr, addrlen); buf 10 native_client_sdk/src/libraries/nacl_io/syscalls/send.c ssize_t send(int fd, const void* buf, size_t len, int flags) { buf 11 native_client_sdk/src/libraries/nacl_io/syscalls/send.c return ki_send(fd, buf, len, flags); buf 10 native_client_sdk/src/libraries/nacl_io/syscalls/sendto.c ssize_t sendto(int fd, const void* buf, size_t len, int flags, buf 12 native_client_sdk/src/libraries/nacl_io/syscalls/sendto.c return ki_sendto(fd, buf, len, flags, addr, addrlen); buf 13 native_client_sdk/src/libraries/nacl_io/syscalls/uname.c int uname(struct utsname* buf) { buf 14 native_client_sdk/src/libraries/nacl_io/syscalls/uname.c memset(buf, 0, sizeof(struct utsname)); buf 15 native_client_sdk/src/libraries/nacl_io/syscalls/uname.c snprintf(buf->sysname, _UTSNAME_LENGTH, "NaCl"); buf 384 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc ssize_t PSInstance::TtyOutputHandler(const char* buf, size_t count) { buf 387 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc const char* data = static_cast<const char*>(buf); buf 441 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc ssize_t PSInstance::TtyOutputHandlerStatic(const char* buf, buf 445 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc return instance->TtyOutputHandler(buf, count); buf 159 native_client_sdk/src/libraries/ppapi_simple/ps_instance.h ssize_t TtyOutputHandler(const char* buf, size_t count); buf 167 native_client_sdk/src/libraries/ppapi_simple/ps_instance.h static ssize_t TtyOutputHandlerStatic(const char* buf, size_t count, buf 552 native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */ buf 725 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc char buf[256]; buf 726 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc ASSERT_EQ(10, ki_recv(client_sock, buf, 10, 0)); buf 733 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc ASSERT_EQ(bytes_remaining, ki_recv(client_sock, buf, 256, 0)); buf 736 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc ASSERT_EQ(0, ki_recv(client_sock, buf, 10, 0)); buf 737 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc ASSERT_EQ(0, ki_recv(client_sock, buf, 10, 0)); buf 738 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc ASSERT_EQ(-1, ki_send(client_sock, buf, 10, 0)); buf 174 native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc const char* buf = "hello"; buf 176 native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc ASSERT_EQ(0, file->Write(attrs, buf, strlen(buf), &result_bytes)); buf 177 native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc ASSERT_EQ(strlen(buf), result_bytes); buf 83 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc void* buf, buf 90 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc filler(buf, ".", NULL, 0); buf 91 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc filler(buf, "..", NULL, 0); buf 93 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc filler(buf, iter->name.c_str(), NULL, 0); buf 123 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc char* buf, buf 139 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc memcpy(buf, file->data.data() + offset, size); buf 144 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc const char* buf, buf 157 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc memcpy(file->data.data() + offset, buf, size); buf 99 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc char buf[10]; buf 100 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc memset(&buf[0], 0, sizeof(buf)); buf 105 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); buf 106 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(sizeof(buf) - 1, result_bytes); buf 107 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_STREQ("012345678", &buf[0]); buf 111 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); buf 113 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc buf[result_bytes] = 0; buf 114 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_STREQ("abcdefg", &buf[0]); buf 118 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(0, node->Read(attr, &buf[0], sizeof(buf), &result_bytes)); buf 129 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc char buf[10]; buf 130 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc memset(&buf[0], 0, sizeof(buf)); buf 135 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); buf 136 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(sizeof(buf) - 1, result_bytes); buf 137 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_STREQ("012345678", &buf[0]); buf 141 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc ASSERT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); buf 143 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc buf[result_bytes] = 0; buf 144 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_STREQ("abcdefg", &buf[0]); buf 148 native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc EXPECT_EQ(0, node->Read(attr, &buf[0], sizeof(buf), &result_bytes)); buf 520 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc struct stat buf; buf 521 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(0, ki_lstat("/foo", &buf)); buf 522 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(0, buf.st_size); buf 523 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_TRUE(S_ISREG(buf.st_mode)); buf 525 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(0, ki_lstat("/bar", &buf)); buf 526 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(0, buf.st_size); buf 527 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_TRUE(S_ISDIR(buf.st_mode)); buf 529 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_lstat("/no-such-file", &buf)); buf 770 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc char buf[20]; buf 771 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_write(fd, &buf[0], 20)); buf 792 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc char buf[20]; buf 793 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); buf 413 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc char buf[10]; buf 415 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_CALL(mock, readlink(kDummyConstChar, buf, 10)) buf 417 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_EQ(-1, readlink(kDummyConstChar, buf, 10)); buf 419 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_CALL(mock, readlink(kDummyConstChar, buf, 10)) buf 421 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_EQ(kDummyInt, readlink(kDummyConstChar, buf, 10)); buf 527 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc struct stat buf; buf 528 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_CALL(mock, lstat(kDummyConstChar, &buf)).WillOnce(Return(-1)); buf 529 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_EQ(-1, lstat(kDummyConstChar, &buf)); buf 531 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_CALL(mock, lstat(kDummyConstChar, &buf)).WillOnce(Return(0)); buf 532 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc EXPECT_EQ(0, lstat(kDummyConstChar, &buf)); buf 146 native_client_sdk/src/tests/nacl_io_test/socket_test.cc char buf[len]; buf 150 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_recv(-1, buf, len, 0), 0); buf 152 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_recv(0, buf, len, 0), 0); buf 158 native_client_sdk/src/tests/nacl_io_test/socket_test.cc char buf[len]; buf 164 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_recvfrom(123, buf, len, 0, &addr, NULL), 0); buf 166 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_recvfrom(-1, buf, len, 0, &addr, &addrlen), 0); buf 168 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_recvfrom(0, buf, len, 0, &addr, &addrlen), 0); buf 185 native_client_sdk/src/tests/nacl_io_test/socket_test.cc char buf[len]; buf 189 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_send(-1, buf, len, 0), 0); buf 191 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_send(0, buf, len, 0), 0); buf 197 native_client_sdk/src/tests/nacl_io_test/socket_test.cc char buf[len]; buf 203 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_sendto(-1, buf, len, 0, &addr, addrlen), 0); buf 205 native_client_sdk/src/tests/nacl_io_test/socket_test.cc EXPECT_LT(ki_sendto(0, buf, len, 0, &addr, addrlen), 0); buf 95 native_client_sdk/src/tests/nacl_io_test/tty_test.cc static ssize_t output_handler(const char* buf, size_t count, void* data) { buf 97 native_client_sdk/src/tests/nacl_io_test/tty_test.cc user_data->output_buf = buf; buf 44 net/base/address_tracker_linux_unittest.cc bool HandleAddressMessage(const Buffer& buf) { buf 45 net/base/address_tracker_linux_unittest.cc Buffer writable_buf = buf; buf 49 net/base/address_tracker_linux_unittest.cc tracker_.HandleMessage(&writable_buf[0], buf.size(), buf 55 net/base/address_tracker_linux_unittest.cc bool HandleLinkMessage(const Buffer& buf) { buf 56 net/base/address_tracker_linux_unittest.cc Buffer writable_buf = buf; buf 60 net/base/address_tracker_linux_unittest.cc tracker_.HandleMessage(&writable_buf[0], buf.size(), buf 66 net/base/address_tracker_linux_unittest.cc bool HandleTunnelMessage(const Buffer& buf) { buf 67 net/base/address_tracker_linux_unittest.cc Buffer writable_buf = buf; buf 71 net/base/address_tracker_linux_unittest.cc tracker_.HandleMessage(&writable_buf[0], buf.size(), buf 13 net/base/dns_util.cc const char* buf = dotted.data(); buf 24 net/base/dns_util.cc ch = *buf++; buf 161 net/base/file_stream.cc int FileStream::Read(IOBuffer* buf, buf 171 net/base/file_stream.cc return context_->ReadAsync(buf, buf_len, callback); buf 174 net/base/file_stream.cc int FileStream::ReadSync(char* buf, int buf_len) { buf 184 net/base/file_stream.cc return context_->ReadSync(buf, buf_len); buf 187 net/base/file_stream.cc int FileStream::ReadUntilComplete(char *buf, int buf_len) { buf 194 net/base/file_stream.cc int bytes_read = ReadSync(buf, to_read); buf 203 net/base/file_stream.cc buf += bytes_read; buf 210 net/base/file_stream.cc int FileStream::Write(IOBuffer* buf, buf 220 net/base/file_stream.cc return context_->WriteAsync(buf, buf_len, callback); buf 223 net/base/file_stream.cc int FileStream::WriteSync(const char* buf, int buf_len) { buf 233 net/base/file_stream.cc return context_->WriteSync(buf, buf_len); buf 146 net/base/file_stream.h virtual int Read(IOBuffer* buf, int buf_len, buf 157 net/base/file_stream.h virtual int ReadSync(char* buf, int buf_len); buf 164 net/base/file_stream.h virtual int ReadUntilComplete(char *buf, int buf_len); buf 188 net/base/file_stream.h virtual int Write(IOBuffer* buf, int buf_len, buf 201 net/base/file_stream.h virtual int WriteSync(const char* buf, int buf_len); buf 83 net/base/file_stream_context.h int ReadAsync(IOBuffer* buf, buf 86 net/base/file_stream_context.h int ReadSync(char* buf, int buf_len); buf 88 net/base/file_stream_context.h int WriteAsync(IOBuffer* buf, buf 91 net/base/file_stream_context.h int WriteSync(const char* buf, int buf_len); buf 212 net/base/file_stream_context.h void IOCompletionIsPending(const CompletionCallback& callback, IOBuffer* buf); buf 221 net/base/file_stream_context.h IOResult ReadFileImpl(scoped_refptr<IOBuffer> buf, int buf_len); buf 226 net/base/file_stream_context.h IOResult WriteFileImpl(scoped_refptr<IOBuffer> buf, int buf_len); buf 101 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf = in_buf; buf 105 net/base/file_stream_context_posix.cc base::Bind(&Context::ReadFileImpl, base::Unretained(this), buf, buf_len), buf 117 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf = new WrappedIOBuffer(in_buf); buf 118 net/base/file_stream_context_posix.cc IOResult result = ReadFileImpl(buf, buf_len); buf 128 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf = in_buf; buf 132 net/base/file_stream_context_posix.cc base::Bind(&Context::WriteFileImpl, base::Unretained(this), buf, buf_len), buf 144 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf = new WrappedIOBuffer(in_buf); buf 145 net/base/file_stream_context_posix.cc IOResult result = WriteFileImpl(buf, buf_len); buf 179 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf, buf 182 net/base/file_stream_context_posix.cc ssize_t res = HANDLE_EINTR(read(file_.GetPlatformFile(), buf->data(), buf 191 net/base/file_stream_context_posix.cc scoped_refptr<IOBuffer> buf, buf 193 net/base/file_stream_context_posix.cc ssize_t res = HANDLE_EINTR(write(file_.GetPlatformFile(), buf->data(), buf 106 net/base/file_stream_context_win.cc int FileStream::Context::ReadAsync(IOBuffer* buf, buf 113 net/base/file_stream_context_win.cc if (!ReadFile(file_.GetPlatformFile(), buf->data(), buf_len, buf 117 net/base/file_stream_context_win.cc IOCompletionIsPending(callback, buf); buf 127 net/base/file_stream_context_win.cc IOCompletionIsPending(callback, buf); buf 131 net/base/file_stream_context_win.cc int FileStream::Context::ReadSync(char* buf, int buf_len) { buf 133 net/base/file_stream_context_win.cc if (!ReadFile(file_.GetPlatformFile(), buf, buf_len, &bytes_read, NULL)) { buf 147 net/base/file_stream_context_win.cc int FileStream::Context::WriteAsync(IOBuffer* buf, buf 153 net/base/file_stream_context_win.cc if (!WriteFile(file_.GetPlatformFile(), buf->data(), buf_len, buf 157 net/base/file_stream_context_win.cc IOCompletionIsPending(callback, buf); buf 165 net/base/file_stream_context_win.cc IOCompletionIsPending(callback, buf); buf 169 net/base/file_stream_context_win.cc int FileStream::Context::WriteSync(const char* buf, int buf_len) { buf 171 net/base/file_stream_context_win.cc if (!WriteFile(file_.GetPlatformFile(), buf, buf_len, &bytes_written, NULL)) { buf 219 net/base/file_stream_context_win.cc IOBuffer* buf) { buf 222 net/base/file_stream_context_win.cc in_flight_buf_ = buf; // Hold until the async operation ends. buf 37 net/base/file_stream_unittest.cc IOBufferWithSize* buf = new IOBufferWithSize(kTestDataSize); buf 38 net/base/file_stream_unittest.cc memcpy(buf->data(), kTestData, kTestDataSize); buf 39 net/base/file_stream_unittest.cc return buf; buf 169 net/base/file_stream_unittest.cc char buf[10]; buf 170 net/base/file_stream_unittest.cc int rv = stream.ReadSync(buf, arraysize(buf)); buf 190 net/base/file_stream_unittest.cc char buf[4]; buf 191 net/base/file_stream_unittest.cc rv = stream.ReadSync(buf, arraysize(buf)); buf 196 net/base/file_stream_unittest.cc data_read.append(buf, rv); buf 221 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 222 net/base/file_stream_unittest.cc rv = stream.Read(buf.get(), buf->size(), callback.callback()); buf 229 net/base/file_stream_unittest.cc data_read.append(buf->data(), rv); buf 251 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 252 net/base/file_stream_unittest.cc rv = stream->Read(buf.get(), buf->size(), callback.callback()); buf 260 net/base/file_stream_unittest.cc EXPECT_EQ(std::string(kTestData, rv), std::string(buf->data(), rv)); buf 284 net/base/file_stream_unittest.cc char buf[4]; buf 285 net/base/file_stream_unittest.cc rv = stream.ReadSync(buf, arraysize(buf)); buf 290 net/base/file_stream_unittest.cc data_read.append(buf, rv); buf 323 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 324 net/base/file_stream_unittest.cc rv = stream.Read(buf.get(), buf->size(), callback.callback()); buf 331 net/base/file_stream_unittest.cc data_read.append(buf->data(), rv); buf 428 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 430 net/base/file_stream_unittest.cc new DrainableIOBuffer(buf.get(), buf->size()); buf 460 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 461 net/base/file_stream_unittest.cc rv = stream->Write(buf.get(), buf->size(), callback.callback()); buf 518 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 520 net/base/file_stream_unittest.cc new DrainableIOBuffer(buf.get(), buf->size()); buf 554 net/base/file_stream_unittest.cc char buf[4]; buf 555 net/base/file_stream_unittest.cc rv = stream->ReadSync(buf, arraysize(buf)); buf 560 net/base/file_stream_unittest.cc data_read.append(buf, rv); buf 600 net/base/file_stream_unittest.cc char buf[4]; buf 601 net/base/file_stream_unittest.cc rv = stream->ReadSync(buf, arraysize(buf)); buf 606 net/base/file_stream_unittest.cc data_read.append(buf, rv); buf 639 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 640 net/base/file_stream_unittest.cc rv = stream->Read(buf.get(), buf->size(), callback.callback()); buf 647 net/base/file_stream_unittest.cc data_read.append(buf->data(), rv); buf 654 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 656 net/base/file_stream_unittest.cc new DrainableIOBuffer(buf.get(), buf->size()); buf 699 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 701 net/base/file_stream_unittest.cc new DrainableIOBuffer(buf.get(), buf->size()); buf 725 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 726 net/base/file_stream_unittest.cc rv = stream->Read(buf.get(), buf->size(), callback.callback()); buf 733 net/base/file_stream_unittest.cc data_read.append(buf->data(), rv); buf 803 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 804 net/base/file_stream_unittest.cc rv = stream_->Read(buf.get(), buf->size(), callback.callback()); buf 814 net/base/file_stream_unittest.cc data_read_->append(buf->data(), rv); buf 863 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 864 net/base/file_stream_unittest.cc rv = stream->Write(buf.get(), buf->size(), callback.callback()); buf 966 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = CreateTestDataBuffer(); buf 967 net/base/file_stream_unittest.cc rv = stream->Write(buf.get(), buf->size(), callback.callback()); buf 1036 net/base/file_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(1); buf 1037 net/base/file_stream_unittest.cc buf->data()[0] = 0; buf 1040 net/base/file_stream_unittest.cc int rv = stream->Write(buf.get(), 1, callback.callback()); buf 1061 net/base/file_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(1); buf 1063 net/base/file_stream_unittest.cc int rv = stream->Read(buf.get(), 1, callback.callback()); buf 1106 net/base/file_stream_unittest.cc scoped_refptr<IOBufferWithSize> buf = new IOBufferWithSize(4); buf 1107 net/base/file_stream_unittest.cc rv = stream.Read(buf.get(), buf->size(), callback.callback()); buf 1114 net/base/file_stream_unittest.cc data_read.append(buf->data(), rv); buf 48 net/base/mime_sniffer_unittest.cc char buf[] = { buf 54 net/base/mime_sniffer_unittest.cc SniffMimeType(buf, 0, url, type_hint, &mime_type); buf 56 net/base/mime_sniffer_unittest.cc SniffMimeType(buf, 1, url, type_hint, &mime_type); buf 58 net/base/mime_sniffer_unittest.cc SniffMimeType(buf, 2, url, type_hint, &mime_type); buf 67 net/base/mock_file_stream.cc int MockFileStream::Read(IOBuffer* buf, buf 74 net/base/mock_file_stream.cc return FileStream::Read(buf, buf_len, wrapped_callback); buf 78 net/base/mock_file_stream.cc int MockFileStream::ReadSync(char* buf, int buf_len) { buf 79 net/base/mock_file_stream.cc return ReturnError(FileStream::ReadSync(buf, buf_len)); buf 82 net/base/mock_file_stream.cc int MockFileStream::ReadUntilComplete(char *buf, int buf_len) { buf 83 net/base/mock_file_stream.cc return ReturnError(FileStream::ReadUntilComplete(buf, buf_len)); buf 86 net/base/mock_file_stream.cc int MockFileStream::Write(IOBuffer* buf, buf 93 net/base/mock_file_stream.cc return FileStream::Write(buf, buf_len, wrapped_callback); buf 97 net/base/mock_file_stream.cc int MockFileStream::WriteSync(const char* buf, int buf_len) { buf 98 net/base/mock_file_stream.cc return ReturnError(FileStream::WriteSync(buf, buf_len)); buf 37 net/base/mock_file_stream.h virtual int Read(IOBuffer* buf, buf 40 net/base/mock_file_stream.h virtual int ReadSync(char* buf, int buf_len) OVERRIDE; buf 41 net/base/mock_file_stream.h virtual int ReadUntilComplete(char *buf, int buf_len) OVERRIDE; buf 42 net/base/mock_file_stream.h virtual int Write(IOBuffer* buf, buf 45 net/base/mock_file_stream.h virtual int WriteSync(const char* buf, int buf_len) OVERRIDE; buf 153 net/base/net_util_win.cc scoped_ptr<char[]> buf(new char[len]); buf 155 net/base/net_util_win.cc reinterpret_cast<IP_ADAPTER_ADDRESSES *>(buf.get()); buf 36 net/base/nss_memio.c char *buf; buf 84 net/base/nss_memio.c static int memio_buffer_put(struct memio_buffer *mb, const char *buf, int n); buf 87 net/base/nss_memio.c static int memio_buffer_get(struct memio_buffer *mb, char *buf, int n); buf 95 net/base/nss_memio.c mb->buf = malloc(size); buf 101 net/base/nss_memio.c free(mb->buf); buf 102 net/base/nss_memio.c mb->buf = NULL; buf 128 net/base/nss_memio.c static int memio_buffer_put(struct memio_buffer *mb, const char *buf, int n) buf 137 net/base/nss_memio.c memcpy(&mb->buf[mb->tail], buf, len); buf 142 net/base/nss_memio.c buf += len; buf 149 net/base/nss_memio.c memcpy(&mb->buf[mb->tail], buf, len); buf 162 net/base/nss_memio.c static int memio_buffer_get(struct memio_buffer *mb, char *buf, int n) buf 170 net/base/nss_memio.c memcpy(buf, &mb->buf[mb->head], len); buf 175 net/base/nss_memio.c buf += len; buf 181 net/base/nss_memio.c memcpy(buf, &mb->buf[mb->head], len); buf 214 net/base/nss_memio.c static int PR_CALLBACK memio_Recv(PRFileDesc *fd, void *buf, PRInt32 len, buf 229 net/base/nss_memio.c rv = memio_buffer_get(mb, buf, len); buf 252 net/base/nss_memio.c static int PR_CALLBACK memio_Read(PRFileDesc *fd, void *buf, PRInt32 len) buf 255 net/base/nss_memio.c return memio_Recv(fd, buf, len, 0, PR_INTERVAL_NO_TIMEOUT); buf 258 net/base/nss_memio.c static int PR_CALLBACK memio_Send(PRFileDesc *fd, const void *buf, PRInt32 len, buf 278 net/base/nss_memio.c rv = memio_buffer_put(mb, buf, len); buf 286 net/base/nss_memio.c static int PR_CALLBACK memio_Write(PRFileDesc *fd, const void *buf, PRInt32 len) buf 289 net/base/nss_memio.c return memio_Send(fd, buf, len, 0, PR_INTERVAL_NO_TIMEOUT); buf 411 net/base/nss_memio.c int memio_GetReadParams(memio_Private *secret, char **buf) buf 416 net/base/nss_memio.c *buf = &mb->buf[mb->tail]; buf 452 net/base/nss_memio.c *buf1 = &mb->buf[mb->head]; buf 454 net/base/nss_memio.c *buf2 = mb->buf; buf 491 net/base/nss_memio.c char buf[100]; buf 511 net/base/nss_memio.c CHECKEQ(memio_buffer_get(&mb, buf, 6), 6); buf 512 net/base/nss_memio.c CHECKEQ(memcmp(buf, "howdy!", 6), 0); buf 64 net/base/nss_memio.h int memio_GetReadParams(memio_Private *secret, char **buf); buf 46 net/base/upload_bytes_element_reader.cc int UploadBytesElementReader::Read(IOBuffer* buf, buf 58 net/base/upload_bytes_element_reader.cc memcpy(buf->data(), bytes_ + offset_, num_bytes_to_read); buf 34 net/base/upload_bytes_element_reader.h virtual int Read(IOBuffer* buf, buf 34 net/base/upload_bytes_element_reader_unittest.cc std::vector<char> buf(kHalfSize); buf 35 net/base/upload_bytes_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 37 net/base/upload_bytes_element_reader_unittest.cc static_cast<int>(buf.size()), buf 38 net/base/upload_bytes_element_reader_unittest.cc reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 39 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); buf 41 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 45 net/base/upload_bytes_element_reader_unittest.cc std::vector<char> buf(bytes_.size()); buf 46 net/base/upload_bytes_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 48 net/base/upload_bytes_element_reader_unittest.cc static_cast<int>(buf.size()), buf 49 net/base/upload_bytes_element_reader_unittest.cc reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 51 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 54 net/base/upload_bytes_element_reader_unittest.cc 0, reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 59 net/base/upload_bytes_element_reader_unittest.cc std::vector<char> buf(kTooLargeSize); buf 60 net/base/upload_bytes_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 63 net/base/upload_bytes_element_reader_unittest.cc reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 65 net/base/upload_bytes_element_reader_unittest.cc buf.resize(bytes_.size()); // Resize to compare. buf 66 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 70 net/base/upload_bytes_element_reader_unittest.cc std::vector<char> buf(bytes_.size()); buf 71 net/base/upload_bytes_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 75 net/base/upload_bytes_element_reader_unittest.cc static_cast<int>(buf.size()), buf 76 net/base/upload_bytes_element_reader_unittest.cc reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 78 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 87 net/base/upload_bytes_element_reader_unittest.cc static_cast<int>(buf.size()), buf 88 net/base/upload_bytes_element_reader_unittest.cc reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); buf 90 net/base/upload_bytes_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 58 net/base/upload_data_stream.cc int UploadDataStream::Read(IOBuffer* buf, buf 63 net/base/upload_data_stream.cc return ReadInternal(new DrainableIOBuffer(buf, buf_len), callback); buf 176 net/base/upload_data_stream.cc int UploadDataStream::ReadInternal(scoped_refptr<DrainableIOBuffer> buf, buf 188 net/base/upload_data_stream.cc if (buf->BytesRemaining() == 0) buf 192 net/base/upload_data_stream.cc buf.get(), buf 193 net/base/upload_data_stream.cc buf->BytesRemaining(), buf 196 net/base/upload_data_stream.cc buf, buf 202 net/base/upload_data_stream.cc ProcessReadResult(buf, result); buf 213 net/base/upload_data_stream.cc std::min(static_cast<uint64>(buf->BytesRemaining()), buf 214 net/base/upload_data_stream.cc size() - position() - buf->BytesConsumed()); buf 216 net/base/upload_data_stream.cc memset(buf->data(), 0, num_bytes_to_fill); buf 217 net/base/upload_data_stream.cc buf->DidConsume(num_bytes_to_fill); buf 220 net/base/upload_data_stream.cc const int bytes_copied = buf->BytesConsumed(); buf 230 net/base/upload_data_stream.cc buf, buf 241 net/base/upload_data_stream.cc void UploadDataStream::ResumePendingRead(scoped_refptr<DrainableIOBuffer> buf, buf 246 net/base/upload_data_stream.cc ProcessReadResult(buf, previous_result); buf 248 net/base/upload_data_stream.cc const int result = ReadInternal(buf, callback); buf 253 net/base/upload_data_stream.cc void UploadDataStream::ProcessReadResult(scoped_refptr<DrainableIOBuffer> buf, buf 259 net/base/upload_data_stream.cc buf->DidConsume(result); buf 65 net/base/upload_data_stream.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 112 net/base/upload_data_stream.h int ReadInternal(scoped_refptr<DrainableIOBuffer> buf, buf 116 net/base/upload_data_stream.h void ResumePendingRead(scoped_refptr<DrainableIOBuffer> buf, buf 122 net/base/upload_data_stream.h void ProcessReadResult(scoped_refptr<DrainableIOBuffer> buf, buf 44 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 48 net/base/upload_data_stream_unittest.cc stream->Read(buf.get(), kTestBufferSize, callback.callback()); buf 51 net/base/upload_data_stream_unittest.cc data_read.append(buf->data(), bytes_read); buf 73 net/base/upload_data_stream_unittest.cc MOCK_METHOD3(Read, int(IOBuffer* buf, buf 98 net/base/upload_data_stream_unittest.cc int OnRead(IOBuffer* buf, buf 162 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 165 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, CompletionCallback()); buf 194 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 199 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, read_callback.callback())); buf 233 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 238 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, read_callback.callback())); buf 271 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 272 net/base/upload_data_stream_unittest.cc std::fill_n(buf->data(), kTestBufferSize, -1); buf 276 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, CompletionCallback())); buf 282 net/base/upload_data_stream_unittest.cc std::count(buf->data(), buf->data() + kTestBufferSize, 0)); buf 308 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 309 net/base/upload_data_stream_unittest.cc std::fill_n(buf->data(), kTestBufferSize, -1); buf 314 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, read_callback.callback())); buf 321 net/base/upload_data_stream_unittest.cc std::count(buf->data(), buf->data() + kTestBufferSize, 0)); buf 352 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 356 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, read_callback.callback()); buf 376 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 379 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestBufferSize, CompletionCallback()); buf 468 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestDataSize); buf 469 net/base/upload_data_stream_unittest.cc int bytes_read = stream.Read(buf.get(), kTestDataSize, CompletionCallback()); buf 507 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> buf = new IOBuffer(kTestBufferSize); buf 512 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestDataSize, read_callback1.callback())); buf 519 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestDataSize, read_callback2.callback())); buf 526 net/base/upload_data_stream_unittest.cc stream.Read(buf.get(), kTestDataSize * 2, read_callback3.callback())); buf 687 net/base/upload_data_stream_unittest.cc std::vector<char> buf(kTestDataSize + kTestDataSize/2); buf 688 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 691 net/base/upload_data_stream_unittest.cc stream.Read(wrapped_buffer.get(), buf.size(), read_callback1.callback())); buf 692 net/base/upload_data_stream_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback1.WaitForResult()); buf 693 net/base/upload_data_stream_unittest.cc EXPECT_EQ(buf.size(), stream.position()); buf 792 net/base/upload_data_stream_unittest.cc std::vector<char> buf(kTestDataSize*2); buf 793 net/base/upload_data_stream_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 796 net/base/upload_data_stream_unittest.cc stream.Read(wrapped_buffer.get(), buf.size(), read_callback1.callback())); buf 52 net/base/upload_element_reader.h virtual int Read(IOBuffer* buf, buf 75 net/base/upload_file_element_reader.cc int UploadFileElementReader::Read(IOBuffer* buf, buf 86 net/base/upload_file_element_reader.cc buf, num_bytes_to_read, buf 49 net/base/upload_file_element_reader.h virtual int Read(IOBuffer* buf, buf 63 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(kHalfSize); buf 64 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 68 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback1.callback())); buf 69 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback1.WaitForResult()); buf 70 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); buf 71 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(std::vector<char>(bytes_.begin(), bytes_.begin() + kHalfSize), buf); buf 76 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback2.callback())); buf 77 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback2.WaitForResult()); buf 79 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(std::vector<char>(bytes_.begin() + kHalfSize, bytes_.end()), buf); buf 83 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(bytes_.size()); buf 84 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 88 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback.callback())); buf 89 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback.WaitForResult()); buf 91 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 95 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback.callback())); buf 100 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(kTooLargeSize); buf 101 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 105 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback.callback())); buf 108 net/base/upload_file_element_reader_unittest.cc buf.resize(bytes_.size()); // Resize to compare. buf 109 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 113 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(bytes_.size()); buf 114 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 120 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback1.callback())); buf 121 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback1.WaitForResult()); buf 123 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 136 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback2.callback())); buf 137 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(static_cast<int>(buf.size()), read_callback2.WaitForResult()); buf 139 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(bytes_, buf); buf 143 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(bytes_.size()); buf 144 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 150 net/base/upload_file_element_reader_unittest.cc wrapped_buffer.get(), buf.size(), read_callback1.callback())); buf 194 net/base/upload_file_element_reader_unittest.cc std::vector<char> buf(kLength); buf 195 net/base/upload_file_element_reader_unittest.cc scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]); buf 203 net/base/upload_file_element_reader_unittest.cc EXPECT_EQ(expected, buf); buf 9 net/base/zap.cc void ZapBuf(void* buf, size_t buf_len) { buf 10 net/base/zap.cc memset(buf, 0x0, buf_len); buf 17 net/base/zap.h void ZapBuf(void* buf, size_t buf_len); buf 480 net/cert/ev_root_ca_metadata.cc PRUint8 buf[64]; buf 482 net/cert/ev_root_ca_metadata.cc oid_item.data = buf; buf 483 net/cert/ev_root_ca_metadata.cc oid_item.len = sizeof(buf); buf 308 net/cert/x509_util_openssl.cc unsigned char* buf = NULL; buf 309 net/cert/x509_util_openssl.cc int len = ASN1_STRING_to_UTF8(&buf, data); buf 313 net/cert/x509_util_openssl.cc value->assign(reinterpret_cast<const char*>(buf), len); buf 314 net/cert/x509_util_openssl.cc OPENSSL_free(buf); buf 2681 net/disk_cache/backend_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kBufSize)); buf 2682 net/disk_cache/backend_unittest.cc memset(buf->data(), 0, kBufSize); buf 2683 net/disk_cache/backend_unittest.cc EXPECT_EQ(100, WriteData(entry2, 0, 0, buf.get(), 100, false)); buf 2684 net/disk_cache/backend_unittest.cc EXPECT_EQ(kBufSize, WriteData(entry3, 0, 0, buf.get(), kBufSize, false)); buf 2692 net/disk_cache/backend_unittest.cc EXPECT_EQ(100, ReadData(entry2, 0, 0, buf.get(), 100)); buf 2693 net/disk_cache/backend_unittest.cc EXPECT_EQ(100, WriteData(entry2, 0, 0, buf.get(), 100, false)); buf 2694 net/disk_cache/backend_unittest.cc EXPECT_EQ(100, WriteData(entry2, 1, 0, buf.get(), 100, false)); buf 2696 net/disk_cache/backend_unittest.cc EXPECT_EQ(kBufSize, ReadData(entry3, 0, 0, buf.get(), kBufSize)); buf 2697 net/disk_cache/backend_unittest.cc EXPECT_EQ(kBufSize, WriteData(entry3, 0, 0, buf.get(), kBufSize, false)); buf 2698 net/disk_cache/backend_unittest.cc EXPECT_EQ(kBufSize, WriteData(entry3, 1, 0, buf.get(), kBufSize, false)); buf 1463 net/disk_cache/blockfile/backend_impl_v3.cc scoped_ptr<char[]> buf(new char[current_size]); buf 1464 net/disk_cache/blockfile/backend_impl_v3.cc return index_->Read(buf.get(), current_size, 0); buf 417 net/disk_cache/blockfile/backend_worker_v3.cc scoped_ptr<char[]> buf(new char[current_size]); buf 418 net/disk_cache/blockfile/backend_worker_v3.cc return index_->Read(buf.get(), current_size, 0); buf 113 net/disk_cache/blockfile/entry_impl.cc void Write(int offset, IOBuffer* buf, int len); buf 122 net/disk_cache/blockfile/entry_impl.cc int Read(int offset, IOBuffer* buf, int len); buf 175 net/disk_cache/blockfile/entry_impl.cc void EntryImpl::UserBuffer::Write(int offset, IOBuffer* buf, int len) { buf 193 net/disk_cache/blockfile/entry_impl.cc char* buffer = buf->data(); buf 232 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::UserBuffer::Read(int offset, IOBuffer* buf, int len) { buf 241 net/disk_cache/blockfile/entry_impl.cc memset(buf->data(), 0, clean_bytes); buf 253 net/disk_cache/blockfile/entry_impl.cc memcpy(buf->data() + clean_bytes, &buffer_[start], len); buf 316 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::ReadDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 324 net/disk_cache/blockfile/entry_impl.cc int result = InternalReadData(index, offset, buf, buf_len, callback); buf 334 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::WriteDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 343 net/disk_cache/blockfile/entry_impl.cc int result = InternalWriteData(index, offset, buf, buf_len, callback, buf 354 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::ReadSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 362 net/disk_cache/blockfile/entry_impl.cc result = sparse_->StartIO(SparseControl::kReadOperation, offset, buf, buf_len, buf 368 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::WriteSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 376 net/disk_cache/blockfile/entry_impl.cc result = sparse_->StartIO(SparseControl::kWriteOperation, offset, buf, buf 812 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 815 net/disk_cache/blockfile/entry_impl.cc return ReadDataImpl(index, offset, buf, buf_len, callback); buf 831 net/disk_cache/blockfile/entry_impl.cc background_queue_->ReadData(this, index, offset, buf, buf_len, callback); buf 835 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 838 net/disk_cache/blockfile/entry_impl.cc return WriteDataImpl(index, offset, buf, buf_len, callback, truncate); buf 850 net/disk_cache/blockfile/entry_impl.cc background_queue_->WriteData(this, index, offset, buf, buf_len, truncate, buf 855 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 858 net/disk_cache/blockfile/entry_impl.cc return ReadSparseDataImpl(offset, buf, buf_len, callback); buf 863 net/disk_cache/blockfile/entry_impl.cc background_queue_->ReadSparseData(this, offset, buf, buf_len, callback); buf 867 net/disk_cache/blockfile/entry_impl.cc int EntryImpl::WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 870 net/disk_cache/blockfile/entry_impl.cc return WriteSparseDataImpl(offset, buf, buf_len, callback); buf 875 net/disk_cache/blockfile/entry_impl.cc background_queue_->WriteSparseData(this, offset, buf, buf_len, callback); buf 974 net/disk_cache/blockfile/entry_impl.cc IOBuffer* buf, int buf_len, buf 1006 net/disk_cache/blockfile/entry_impl.cc buf_len = user_buffers_[index]->Read(offset, buf, buf_len); buf 1034 net/disk_cache/blockfile/entry_impl.cc io_callback = new SyncCallback(this, buf, callback, buf 1041 net/disk_cache/blockfile/entry_impl.cc if (!file->Read(buf->data(), buf_len, file_offset, io_callback, &completed)) { buf 1059 net/disk_cache/blockfile/entry_impl.cc IOBuffer* buf, int buf_len, buf 1106 net/disk_cache/blockfile/entry_impl.cc user_buffers_[index]->Write(offset, buf, buf_len); buf 1138 net/disk_cache/blockfile/entry_impl.cc io_callback = new SyncCallback(this, buf, callback, buf 1145 net/disk_cache/blockfile/entry_impl.cc if (!file->Write(buf->data(), buf_len, file_offset, io_callback, buf 45 net/disk_cache/blockfile/entry_impl.h int ReadDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 47 net/disk_cache/blockfile/entry_impl.h int WriteDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 49 net/disk_cache/blockfile/entry_impl.h int ReadSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 51 net/disk_cache/blockfile/entry_impl.h int WriteSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 156 net/disk_cache/blockfile/entry_impl.h virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 158 net/disk_cache/blockfile/entry_impl.h virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 161 net/disk_cache/blockfile/entry_impl.h virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 163 net/disk_cache/blockfile/entry_impl.h virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 181 net/disk_cache/blockfile/entry_impl.h int InternalReadData(int index, int offset, IOBuffer* buf, buf 183 net/disk_cache/blockfile/entry_impl.h int InternalWriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 62 net/disk_cache/blockfile/entry_impl_v3.cc void Write(int offset, IOBuffer* buf, int len); buf 71 net/disk_cache/blockfile/entry_impl_v3.cc int Read(int offset, IOBuffer* buf, int len); buf 124 net/disk_cache/blockfile/entry_impl_v3.cc void EntryImplV3::UserBuffer::Write(int offset, IOBuffer* buf, int len) { buf 142 net/disk_cache/blockfile/entry_impl_v3.cc char* buffer = buf->data(); buf 181 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::UserBuffer::Read(int offset, IOBuffer* buf, int len) { buf 190 net/disk_cache/blockfile/entry_impl_v3.cc memset(buf->data(), 0, clean_bytes); buf 202 net/disk_cache/blockfile/entry_impl_v3.cc memcpy(buf->data() + clean_bytes, &buffer_[start], len); buf 525 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 528 net/disk_cache/blockfile/entry_impl_v3.cc return ReadDataImpl(index, offset, buf, buf_len, callback); buf 544 net/disk_cache/blockfile/entry_impl_v3.cc background_queue_->ReadData(this, index, offset, buf, buf_len, callback); buf 548 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImpl::ReadDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 556 net/disk_cache/blockfile/entry_impl_v3.cc int result = InternalReadData(index, offset, buf, buf_len, callback); buf 566 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 569 net/disk_cache/blockfile/entry_impl_v3.cc return WriteDataImpl(index, offset, buf, buf_len, callback, truncate); buf 581 net/disk_cache/blockfile/entry_impl_v3.cc background_queue_->WriteData(this, index, offset, buf, buf_len, truncate, buf 586 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImpl::WriteDataImpl(int index, int offset, IOBuffer* buf, int buf_len, buf 595 net/disk_cache/blockfile/entry_impl_v3.cc int result = InternalWriteData(index, offset, buf, buf_len, callback, buf 606 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 609 net/disk_cache/blockfile/entry_impl_v3.cc return ReadSparseDataImpl(offset, buf, buf_len, callback); buf 614 net/disk_cache/blockfile/entry_impl_v3.cc background_queue_->ReadSparseData(this, offset, buf, buf_len, callback); buf 618 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImpl::ReadSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 626 net/disk_cache/blockfile/entry_impl_v3.cc result = sparse_->StartIO(SparseControl::kReadOperation, offset, buf, buf_len, buf 632 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 635 net/disk_cache/blockfile/entry_impl_v3.cc return WriteSparseDataImpl(offset, buf, buf_len, callback); buf 640 net/disk_cache/blockfile/entry_impl_v3.cc background_queue_->WriteSparseData(this, offset, buf, buf_len, callback); buf 644 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImpl::WriteSparseDataImpl(int64 offset, IOBuffer* buf, int buf_len, buf 652 net/disk_cache/blockfile/entry_impl_v3.cc result = sparse_->StartIO(SparseControl::kWriteOperation, offset, buf, buf 773 net/disk_cache/blockfile/entry_impl_v3.cc IOBuffer* buf, int buf_len, buf 805 net/disk_cache/blockfile/entry_impl_v3.cc buf_len = user_buffers_[index]->Read(offset, buf, buf_len); buf 833 net/disk_cache/blockfile/entry_impl_v3.cc io_callback = new SyncCallback(this, buf, callback, buf 840 net/disk_cache/blockfile/entry_impl_v3.cc if (!file->Read(buf->data(), buf_len, file_offset, io_callback, &completed)) { buf 858 net/disk_cache/blockfile/entry_impl_v3.cc IOBuffer* buf, int buf_len, buf 905 net/disk_cache/blockfile/entry_impl_v3.cc user_buffers_[index]->Write(offset, buf, buf_len); buf 937 net/disk_cache/blockfile/entry_impl_v3.cc io_callback = new SyncCallback(this, buf, callback, buf 944 net/disk_cache/blockfile/entry_impl_v3.cc if (!file->Write(buf->data(), buf_len, file_offset, io_callback, buf 1423 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 1428 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 1433 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 1438 net/disk_cache/blockfile/entry_impl_v3.cc int EntryImplV3::WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 86 net/disk_cache/blockfile/entry_impl_v3.h virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 88 net/disk_cache/blockfile/entry_impl_v3.h virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 91 net/disk_cache/blockfile/entry_impl_v3.h virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 93 net/disk_cache/blockfile/entry_impl_v3.h virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 111 net/disk_cache/blockfile/entry_impl_v3.h int InternalReadData(int index, int offset, IOBuffer* buf, buf 113 net/disk_cache/blockfile/entry_impl_v3.h int InternalWriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 26 net/disk_cache/blockfile/file_ios.cc FileBackgroundIO(disk_cache::File* file, const void* buf, size_t buf_len, buf 30 net/disk_cache/blockfile/file_ios.cc buf_(buf), buf_len_(buf_len), offset_(offset) { buf 72 net/disk_cache/blockfile/file_ios.cc void PostRead(disk_cache::File* file, void* buf, size_t buf_len, buf 74 net/disk_cache/blockfile/file_ios.cc void PostWrite(disk_cache::File* file, const void* buf, size_t buf_len, buf 111 net/disk_cache/blockfile/file_ios.cc void FileInFlightIO::PostRead(disk_cache::File *file, void* buf, size_t buf_len, buf 114 net/disk_cache/blockfile/file_ios.cc new FileBackgroundIO(file, buf, buf_len, offset, callback, this)); buf 122 net/disk_cache/blockfile/file_ios.cc void FileInFlightIO::PostWrite(disk_cache::File* file, const void* buf, buf 126 net/disk_cache/blockfile/file_ios.cc new FileBackgroundIO(file, buf, buf_len, offset, callback, this)); buf 160 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len) { buf 165 net/disk_cache/blockfile/in_flight_backend_io.cc buf_ = buf; buf 170 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len, bool truncate) { buf 175 net/disk_cache/blockfile/in_flight_backend_io.cc buf_ = buf; buf 181 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len) { buf 185 net/disk_cache/blockfile/in_flight_backend_io.cc buf_ = buf; buf 190 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len) { buf 194 net/disk_cache/blockfile/in_flight_backend_io.cc buf_ = buf; buf 448 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len, buf 451 net/disk_cache/blockfile/in_flight_backend_io.cc operation->ReadData(entry, index, offset, buf, buf_len); buf 456 net/disk_cache/blockfile/in_flight_backend_io.cc net::IOBuffer* buf, int buf_len, buf 460 net/disk_cache/blockfile/in_flight_backend_io.cc operation->WriteData(entry, index, offset, buf, buf_len, truncate); buf 465 net/disk_cache/blockfile/in_flight_backend_io.cc EntryImpl* entry, int64 offset, net::IOBuffer* buf, int buf_len, buf 468 net/disk_cache/blockfile/in_flight_backend_io.cc operation->ReadSparseData(entry, offset, buf, buf_len); buf 473 net/disk_cache/blockfile/in_flight_backend_io.cc EntryImpl* entry, int64 offset, net::IOBuffer* buf, int buf_len, buf 476 net/disk_cache/blockfile/in_flight_backend_io.cc operation->WriteSparseData(entry, offset, buf, buf_len); buf 65 net/disk_cache/blockfile/in_flight_backend_io.h void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, buf 67 net/disk_cache/blockfile/in_flight_backend_io.h void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, buf 69 net/disk_cache/blockfile/in_flight_backend_io.h void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, buf 71 net/disk_cache/blockfile/in_flight_backend_io.h void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, buf 178 net/disk_cache/blockfile/in_flight_backend_io.h void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, buf 181 net/disk_cache/blockfile/in_flight_backend_io.h EntryImpl* entry, int index, int offset, net::IOBuffer* buf, buf 183 net/disk_cache/blockfile/in_flight_backend_io.h void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, buf 185 net/disk_cache/blockfile/in_flight_backend_io.h void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, buf 41 net/disk_cache/blockfile/mapped_file.cc scoped_ptr<char[]> buf(new char[file_len]); buf 42 net/disk_cache/blockfile/mapped_file.cc if (!Read(buf.get(), file_len, 0)) buf 244 net/disk_cache/blockfile/sparse_control.cc int SparseControl::StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, buf 263 net/disk_cache/blockfile/sparse_control.cc if (!buf && (op == kReadOperation || op == kWriteOperation)) buf 269 net/disk_cache/blockfile/sparse_control.cc user_buf_ = buf ? new net::DrainableIOBuffer(buf, buf_len) : NULL; buf 385 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::IOBuffer> buf( buf 388 net/disk_cache/blockfile/sparse_control.cc int rv = entry_->WriteData(kSparseIndex, 0, buf.get(), sizeof(sparse_header_), buf 415 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::IOBuffer> buf( buf 419 net/disk_cache/blockfile/sparse_control.cc int rv = entry_->ReadData(kSparseIndex, 0, buf.get(), sizeof(sparse_header_), buf 432 net/disk_cache/blockfile/sparse_control.cc buf = new net::IOBuffer(map_len); buf 433 net/disk_cache/blockfile/sparse_control.cc rv = entry_->ReadData(kSparseIndex, sizeof(sparse_header_), buf.get(), buf 440 net/disk_cache/blockfile/sparse_control.cc children_map_.SetMap(reinterpret_cast<uint32*>(buf->data()), map_len); buf 472 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 476 net/disk_cache/blockfile/sparse_control.cc int rv = child_->ReadData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 496 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 500 net/disk_cache/blockfile/sparse_control.cc int rv = child_->WriteData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 566 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::IOBuffer> buf(new net::WrappedIOBuffer( buf 570 net/disk_cache/blockfile/sparse_control.cc int rv = entry_->WriteData(kSparseIndex, sizeof(sparse_header_), buf.get(), buf 671 net/disk_cache/blockfile/sparse_control.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 674 net/disk_cache/blockfile/sparse_control.cc int rv = child_->WriteData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 62 net/disk_cache/blockfile/sparse_control.h int StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, buf 225 net/disk_cache/blockfile/sparse_control_v3.cc int SparseControl::StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, buf 242 net/disk_cache/blockfile/sparse_control_v3.cc if (!buf && (op == kReadOperation || op == kWriteOperation)) buf 248 net/disk_cache/blockfile/sparse_control_v3.cc user_buf_ = buf ? new net::DrainableIOBuffer(buf, buf_len) : NULL; buf 387 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::IOBuffer> buf( buf 390 net/disk_cache/blockfile/sparse_control_v3.cc int rv = entry_->WriteData(kSparseIndex, 0, buf.get(), sizeof(sparse_header_), buf 417 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::IOBuffer> buf( buf 421 net/disk_cache/blockfile/sparse_control_v3.cc int rv = entry_->ReadData(kSparseIndex, 0, buf.get(), sizeof(sparse_header_), buf 434 net/disk_cache/blockfile/sparse_control_v3.cc buf = new net::IOBuffer(map_len); buf 435 net/disk_cache/blockfile/sparse_control_v3.cc rv = entry_->ReadData(kSparseIndex, sizeof(sparse_header_), buf.get(), buf 442 net/disk_cache/blockfile/sparse_control_v3.cc children_map_.SetMap(reinterpret_cast<uint32*>(buf->data()), map_len); buf 474 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 478 net/disk_cache/blockfile/sparse_control_v3.cc int rv = child_->ReadData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 498 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 502 net/disk_cache/blockfile/sparse_control_v3.cc int rv = child_->WriteData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 533 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::IOBuffer> buf(new net::WrappedIOBuffer( buf 537 net/disk_cache/blockfile/sparse_control_v3.cc int rv = entry_->WriteData(kSparseIndex, sizeof(sparse_header_), buf.get(), buf 759 net/disk_cache/blockfile/sparse_control_v3.cc scoped_refptr<net::WrappedIOBuffer> buf( buf 762 net/disk_cache/blockfile/sparse_control_v3.cc int rv = child_->WriteData(kSparseIndex, 0, buf.get(), sizeof(child_data_), buf 57 net/disk_cache/blockfile/sparse_control_v3.h int StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, buf 192 net/disk_cache/disk_cache.h virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 206 net/disk_cache/disk_cache.h virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 254 net/disk_cache/disk_cache.h virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 263 net/disk_cache/disk_cache.h virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 182 net/disk_cache/disk_cache_test_base.cc int offset, net::IOBuffer* buf, int len) { buf 184 net/disk_cache/disk_cache_test_base.cc int rv = entry->ReadData(index, offset, buf, len, cb.callback()); buf 189 net/disk_cache/disk_cache_test_base.cc int offset, net::IOBuffer* buf, int len, buf 192 net/disk_cache/disk_cache_test_base.cc int rv = entry->WriteData(index, offset, buf, len, cb.callback(), truncate); buf 197 net/disk_cache/disk_cache_test_base.cc int64 offset, net::IOBuffer* buf, buf 200 net/disk_cache/disk_cache_test_base.cc int rv = entry->ReadSparseData(offset, buf, len, cb.callback()); buf 206 net/disk_cache/disk_cache_test_base.cc net::IOBuffer* buf, int len) { buf 208 net/disk_cache/disk_cache_test_base.cc int rv = entry->WriteSparseData(offset, buf, len, cb.callback()); buf 124 net/disk_cache/disk_cache_test_base.h net::IOBuffer* buf, int len); buf 126 net/disk_cache/disk_cache_test_base.h net::IOBuffer* buf, int len, bool truncate); buf 127 net/disk_cache/disk_cache_test_base.h int ReadSparseData(disk_cache::Entry* entry, int64 offset, net::IOBuffer* buf, buf 130 net/disk_cache/disk_cache_test_base.h net::IOBuffer* buf, int len); buf 1600 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 1601 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 1610 net/disk_cache/entry_unittest.cc 0, buf.get(), kSize, net::CompletionCallback())); buf 1615 net/disk_cache/entry_unittest.cc 8192, buf.get(), kSize, net::CompletionCallback())); buf 1743 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 1744 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 1747 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteSparseData(entry, 0x20F0000, buf.get(), kSize)); buf 1748 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteSparseData(entry, 0x20F4400, buf.get(), kSize)); buf 1772 net/disk_cache/entry_unittest.cc rv = entry->ReadSparseData(start, buf.get(), kSize, cb.callback()); buf 1779 net/disk_cache/entry_unittest.cc EXPECT_EQ(0x2000, ReadSparseData(entry, start, buf.get(), kSize)); buf 1808 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 1809 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 1812 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteSparseData(entry, 0x20F0000, buf.get(), kSize)); buf 1826 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteData(entry, 0, 0, buf.get(), kSize, false)); buf 1827 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteData(entry, 1, 0, buf.get(), kSize, false)); buf 1828 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteData(entry, 2, 0, buf.get(), kSize, false)); buf 1885 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 1886 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 1895 net/disk_cache/entry_unittest.cc entry->WriteSparseData(0, buf.get(), 1024, net::CompletionCallback())); buf 1898 net/disk_cache/entry_unittest.cc entry->WriteSparseData(5120, buf.get(), 1024, net::CompletionCallback())); buf 1901 net/disk_cache/entry_unittest.cc 10000, buf.get(), 1024, net::CompletionCallback())); buf 1906 net/disk_cache/entry_unittest.cc 50000, buf.get(), 8192, net::CompletionCallback())); buf 1997 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 1998 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 2003 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteSparseData(entry1, offset, buf.get(), kSize)); buf 2006 net/disk_cache/entry_unittest.cc EXPECT_EQ(kSize, WriteSparseData(entry2, offset, buf.get(), kSize)); buf 2085 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 2086 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 2093 net/disk_cache/entry_unittest.cc offset, buf.get(), kSize, net::CompletionCallback())); buf 2261 net/disk_cache/entry_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 2262 net/disk_cache/entry_unittest.cc CacheTestFillBuffer(buf->data(), kSize, false); buf 2267 net/disk_cache/entry_unittest.cc 1024 * 1024 - 4096, buf.get(), kSize, cb1.callback()); buf 2289 net/disk_cache/entry_unittest.cc offset, buf.get(), kSize, net::CompletionCallback())); buf 2292 net/disk_cache/entry_unittest.cc offset, buf.get(), kSize, net::CompletionCallback())); buf 186 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 194 net/disk_cache/memory/mem_entry_impl.cc int result = InternalReadData(index, offset, buf, buf_len); buf 204 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 212 net/disk_cache/memory/mem_entry_impl.cc int result = InternalWriteData(index, offset, buf, buf_len, truncate); buf 222 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 229 net/disk_cache/memory/mem_entry_impl.cc int result = InternalReadSparseData(offset, buf, buf_len); buf 235 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 242 net/disk_cache/memory/mem_entry_impl.cc int result = InternalWriteSparseData(offset, buf, buf_len); buf 282 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::InternalReadData(int index, int offset, IOBuffer* buf, buf 301 net/disk_cache/memory/mem_entry_impl.cc memcpy(buf->data(), &(data_[index])[offset], buf_len); buf 305 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::InternalWriteData(int index, int offset, IOBuffer* buf, buf 343 net/disk_cache/memory/mem_entry_impl.cc memcpy(&(data_[index])[offset], buf->data(), buf_len); buf 347 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::InternalReadSparseData(int64 offset, IOBuffer* buf, buf 359 net/disk_cache/memory/mem_entry_impl.cc new net::DrainableIOBuffer(buf, buf_len)); buf 404 net/disk_cache/memory/mem_entry_impl.cc int MemEntryImpl::InternalWriteSparseData(int64 offset, IOBuffer* buf, buf 415 net/disk_cache/memory/mem_entry_impl.cc new net::DrainableIOBuffer(buf, buf_len)); buf 96 net/disk_cache/memory/mem_entry_impl.h virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 98 net/disk_cache/memory/mem_entry_impl.h virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 101 net/disk_cache/memory/mem_entry_impl.h virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 103 net/disk_cache/memory/mem_entry_impl.h virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 122 net/disk_cache/memory/mem_entry_impl.h int InternalReadData(int index, int offset, IOBuffer* buf, int buf_len); buf 123 net/disk_cache/memory/mem_entry_impl.h int InternalWriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 125 net/disk_cache/memory/mem_entry_impl.h int InternalReadSparseData(int64 offset, IOBuffer* buf, int buf_len); buf 126 net/disk_cache/memory/mem_entry_impl.h int InternalWriteSparseData(int64 offset, IOBuffer* buf, int buf_len); buf 336 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 375 net/disk_cache/simple/simple_entry_impl.cc this, stream_index, offset, buf_len, buf, callback, alone_in_queue)); buf 382 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 420 net/disk_cache/simple/simple_entry_impl.cc return SetStream0Data(buf, offset, buf_len, truncate); buf 435 net/disk_cache/simple/simple_entry_impl.cc op_buf = buf; buf 442 net/disk_cache/simple/simple_entry_impl.cc if (buf) { buf 444 net/disk_cache/simple/simple_entry_impl.cc memcpy(op_buf->data(), buf->data(), buf_len); buf 467 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 474 net/disk_cache/simple/simple_entry_impl.cc this, offset, buf_len, buf, callback)); buf 479 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 486 net/disk_cache/simple/simple_entry_impl.cc this, offset, buf_len, buf, callback)); buf 611 net/disk_cache/simple/simple_entry_impl.cc operation->buf(), buf 619 net/disk_cache/simple/simple_entry_impl.cc operation->buf(), buf 626 net/disk_cache/simple/simple_entry_impl.cc operation->buf(), buf 632 net/disk_cache/simple/simple_entry_impl.cc operation->buf(), buf 804 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 847 net/disk_cache/simple/simple_entry_impl.cc int ret_value = ReadStream0Data(buf, offset, buf_len); buf 868 net/disk_cache/simple/simple_entry_impl.cc make_scoped_refptr(buf), buf 885 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 918 net/disk_cache/simple/simple_entry_impl.cc int ret_value = SetStream0Data(buf, offset, buf_len, truncate); buf 942 net/disk_cache/simple/simple_entry_impl.cc AdvanceCrc(buf, offset, buf_len, stream_index); buf 971 net/disk_cache/simple/simple_entry_impl.cc make_scoped_refptr(buf), buf 985 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 1000 net/disk_cache/simple/simple_entry_impl.cc make_scoped_refptr(buf), buf 1013 net/disk_cache/simple/simple_entry_impl.cc net::IOBuffer* buf, buf 1039 net/disk_cache/simple/simple_entry_impl.cc make_scoped_refptr(buf), buf 1450 net/disk_cache/simple/simple_entry_impl.cc int SimpleEntryImpl::ReadStream0Data(net::IOBuffer* buf, buf 1457 net/disk_cache/simple/simple_entry_impl.cc memcpy(buf->data(), stream_0_data_->data() + offset, buf_len); buf 1465 net/disk_cache/simple/simple_entry_impl.cc int SimpleEntryImpl::SetStream0Data(net::IOBuffer* buf, buf 1479 net/disk_cache/simple/simple_entry_impl.cc memcpy(stream_0_data_->data(), buf->data(), buf_len); buf 1491 net/disk_cache/simple/simple_entry_impl.cc if (buf) buf 1492 net/disk_cache/simple/simple_entry_impl.cc memcpy(stream_0_data_->data() + offset, buf->data(), buf_len); buf 1496 net/disk_cache/simple/simple_entry_impl.cc AdvanceCrc(buf, offset, buf_len, 0); buf 82 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 87 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 92 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 96 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 180 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 186 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 192 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 197 net/disk_cache/simple/simple_entry_impl.h net::IOBuffer* buf, buf 284 net/disk_cache/simple/simple_entry_impl.h int ReadStream0Data(net::IOBuffer* buf, int offset, int buf_len); buf 289 net/disk_cache/simple/simple_entry_impl.h int SetStream0Data(net::IOBuffer* buf, buf 123 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* buf, buf 127 net/disk_cache/simple/simple_entry_operation.cc buf, buf 148 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* buf, buf 153 net/disk_cache/simple/simple_entry_operation.cc buf, buf 173 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* buf, buf 176 net/disk_cache/simple/simple_entry_operation.cc buf, buf 196 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* buf, buf 199 net/disk_cache/simple/simple_entry_operation.cc buf, buf 241 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* const buf = NULL; buf 253 net/disk_cache/simple/simple_entry_operation.cc buf, buf 311 net/disk_cache/simple/simple_entry_operation.cc net::IOBuffer* buf, buf 325 net/disk_cache/simple/simple_entry_operation.cc buf_(buf), buf 57 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf, buf 65 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf, buf 73 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf, buf 79 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf, buf 107 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf() { return buf_.get(); } buf 114 net/disk_cache/simple/simple_entry_operation.h net::IOBuffer* buf, buf 399 net/disk_cache/simple/simple_synchronous_entry.cc char* buf = out_buf->data(); buf 423 net/disk_cache/simple/simple_synchronous_entry.cc buf)) { buf 442 net/disk_cache/simple/simple_synchronous_entry.cc if (!ReadSparseRange(found_range, 0, len_to_read, buf + read_so_far)) { buf 463 net/disk_cache/simple/simple_synchronous_entry.cc const char* buf = in_buf->data(); buf 499 net/disk_cache/simple/simple_synchronous_entry.cc buf)) { buf 516 net/disk_cache/simple/simple_synchronous_entry.cc buf + written_so_far)) { buf 529 net/disk_cache/simple/simple_synchronous_entry.cc buf + written_so_far)) { buf 541 net/disk_cache/simple/simple_synchronous_entry.cc buf + written_so_far)) { buf 1321 net/disk_cache/simple/simple_synchronous_entry.cc int offset, int len, char* buf) { buf 1323 net/disk_cache/simple/simple_synchronous_entry.cc DCHECK(buf); buf 1327 net/disk_cache/simple/simple_synchronous_entry.cc int bytes_read = sparse_file_.Read(range->file_offset + offset, buf, len); buf 1336 net/disk_cache/simple/simple_synchronous_entry.cc reinterpret_cast<const Bytef*>(buf), buf 1350 net/disk_cache/simple/simple_synchronous_entry.cc const char* buf) { buf 1352 net/disk_cache/simple/simple_synchronous_entry.cc DCHECK(buf); buf 1359 net/disk_cache/simple/simple_synchronous_entry.cc reinterpret_cast<const Bytef*>(buf), buf 1381 net/disk_cache/simple/simple_synchronous_entry.cc int bytes_written = sparse_file_.Write(range->file_offset + offset, buf, len); buf 1392 net/disk_cache/simple/simple_synchronous_entry.cc const char* buf) { buf 1395 net/disk_cache/simple/simple_synchronous_entry.cc DCHECK(buf); buf 1398 net/disk_cache/simple/simple_synchronous_entry.cc reinterpret_cast<const Bytef*>(buf), buf 1416 net/disk_cache/simple/simple_synchronous_entry.cc bytes_written = sparse_file_.Write(sparse_tail_offset_, buf, len); buf 287 net/disk_cache/simple/simple_synchronous_entry.h int offset, int len, char* buf); buf 292 net/disk_cache/simple/simple_synchronous_entry.h int offset, int len, const char* buf); buf 295 net/disk_cache/simple/simple_synchronous_entry.h bool AppendSparseRange(int64 offset, int len, const char* buf); buf 23 net/disk_cache/tracing/tracing_cache_backend.cc virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 25 net/disk_cache/tracing/tracing_cache_backend.cc virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 28 net/disk_cache/tracing/tracing_cache_backend.cc virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 30 net/disk_cache/tracing/tracing_cache_backend.cc virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 93 net/disk_cache/tracing/tracing_cache_backend.cc int EntryProxy::ReadData(int index, int offset, IOBuffer* buf, int buf_len, buf 102 net/disk_cache/tracing/tracing_cache_backend.cc index, offset, buf, buf_len, buf 111 net/disk_cache/tracing/tracing_cache_backend.cc int EntryProxy::WriteData(int index, int offset, IOBuffer* buf, int buf_len, buf 120 net/disk_cache/tracing/tracing_cache_backend.cc int rv = entry_->WriteData(index, offset, buf, buf_len, buf 130 net/disk_cache/tracing/tracing_cache_backend.cc int EntryProxy::ReadSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 133 net/disk_cache/tracing/tracing_cache_backend.cc return entry_->ReadSparseData(offset, buf, buf_len, callback); buf 136 net/disk_cache/tracing/tracing_cache_backend.cc int EntryProxy::WriteSparseData(int64 offset, IOBuffer* buf, int buf_len, buf 139 net/disk_cache/tracing/tracing_cache_backend.cc return entry_->WriteSparseData(offset, buf, buf_len, callback); buf 1150 net/dns/mdns_client_unittest.cc scoped_refptr<IOBufferWithSize> buf( buf 1152 net/dns/mdns_client_unittest.cc memcpy(buf->data(), kSamplePacket1, sizeof(kSamplePacket1)); buf 1166 net/dns/mdns_client_unittest.cc connection_.Send(buf, buf->size()); buf 23 net/dns/mock_mdns_socket_factory.cc int MockMDnsDatagramServerSocket::SendTo(IOBuffer* buf, int buf_len, buf 26 net/dns/mock_mdns_socket_factory.cc return SendToInternal(std::string(buf->data(), buf_len), address.ToString(), buf 29 net/dns/mock_mdns_socket_factory.h virtual int SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address, buf 285 net/ftp/ftp_network_transaction.cc int FtpNetworkTransaction::Read(IOBuffer* buf, buf 288 net/ftp/ftp_network_transaction.cc DCHECK(buf); buf 291 net/ftp/ftp_network_transaction.cc read_data_buf_ = buf; buf 44 net/ftp/ftp_network_transaction.h virtual int Read(IOBuffer* buf, int buf_len, buf 62 net/ftp/ftp_transaction.h virtual int Read(IOBuffer* buf, buf 47 net/http/failing_http_transaction_factory.cc virtual int Read(IOBuffer* buf, int buf_len, buf 107 net/http/failing_http_transaction_factory.cc int FailingHttpTransaction::Read(IOBuffer* buf, int buf_len, buf 180 net/http/http_auth_handler_ntlm_portable.cc static void* WriteBytes(void* buf, const void* data, uint32 data_len) { buf 181 net/http/http_auth_handler_ntlm_portable.cc memcpy(buf, data, data_len); buf 182 net/http/http_auth_handler_ntlm_portable.cc return static_cast<char*>(buf) + data_len; buf 185 net/http/http_auth_handler_ntlm_portable.cc static void* WriteDWORD(void* buf, uint32 dword) { buf 190 net/http/http_auth_handler_ntlm_portable.cc return WriteBytes(buf, &dword, sizeof(dword)); buf 193 net/http/http_auth_handler_ntlm_portable.cc static void* WriteSecBuf(void* buf, uint16 length, uint32 offset) { buf 198 net/http/http_auth_handler_ntlm_portable.cc buf = WriteBytes(buf, &length, sizeof(length)); buf 199 net/http/http_auth_handler_ntlm_portable.cc buf = WriteBytes(buf, &length, sizeof(length)); buf 200 net/http/http_auth_handler_ntlm_portable.cc buf = WriteBytes(buf, &offset, sizeof(offset)); buf 201 net/http/http_auth_handler_ntlm_portable.cc return buf; buf 213 net/http/http_auth_handler_ntlm_portable.cc void* buf, const base::char16* str, uint32 str_len) { buf 215 net/http/http_auth_handler_ntlm_portable.cc uint8* cursor = static_cast<uint8*>(buf); buf 223 net/http/http_auth_handler_ntlm_portable.cc return buf; buf 227 net/http/http_auth_handler_ntlm_portable.cc static uint16 ReadUint16(const uint8*& buf) { buf 228 net/http/http_auth_handler_ntlm_portable.cc uint16 x = (static_cast<uint16>(buf[0])) | buf 229 net/http/http_auth_handler_ntlm_portable.cc (static_cast<uint16>(buf[1]) << 8); buf 230 net/http/http_auth_handler_ntlm_portable.cc buf += sizeof(x); buf 234 net/http/http_auth_handler_ntlm_portable.cc static uint32 ReadUint32(const uint8*& buf) { buf 235 net/http/http_auth_handler_ntlm_portable.cc uint32 x = (static_cast<uint32>(buf[0])) | buf 236 net/http/http_auth_handler_ntlm_portable.cc (static_cast<uint32>(buf[1]) << 8) | buf 237 net/http/http_auth_handler_ntlm_portable.cc (static_cast<uint32>(buf[2]) << 16) | buf 238 net/http/http_auth_handler_ntlm_portable.cc (static_cast<uint32>(buf[3]) << 24); buf 239 net/http/http_auth_handler_ntlm_portable.cc buf += sizeof(x); buf 49 net/http/http_basic_stream.cc int HttpBasicStream::ReadResponseBody(IOBuffer* buf, buf 52 net/http/http_basic_stream.cc return parser()->ReadResponseBody(buf, buf_len, callback); buf 51 net/http/http_basic_stream.h virtual int ReadResponseBody(IOBuffer* buf, buf 202 net/http/http_cache.cc void Write(const GURL& url, base::Time expected_response_time, IOBuffer* buf, buf 221 net/http/http_cache.cc IOBuffer* buf, int buf_len) { buf 223 net/http/http_cache.cc DCHECK(buf); buf 224 net/http/http_cache.cc DCHECK(buf->data()); buf 230 net/http/http_cache.cc buf_ = buf; buf 395 net/http/http_cache.cc IOBuffer* buf, buf 411 net/http/http_cache.cc writer->Write(url, expected_response_time, buf, buf_len); buf 170 net/http/http_cache.h IOBuffer* buf, buf 244 net/http/http_cache_transaction.cc int HttpCache::Transaction::WriteMetadata(IOBuffer* buf, int buf_len, buf 246 net/http/http_cache_transaction.cc DCHECK(buf); buf 256 net/http/http_cache_transaction.cc return entry_->disk_entry->WriteData(kMetadataIndex, 0, buf, buf_len, buf 388 net/http/http_cache_transaction.cc int HttpCache::Transaction::Read(IOBuffer* buf, int buf_len, buf 390 net/http/http_cache_transaction.cc DCHECK(buf); buf 417 net/http/http_cache_transaction.cc rv = ReadFromEntry(buf, buf_len); buf 423 net/http/http_cache_transaction.cc rv = ReadFromNetwork(buf, buf_len); buf 426 net/http/http_cache_transaction.cc rv = ReadFromEntry(buf, buf_len); buf 84 net/http/http_cache_transaction.h int WriteMetadata(IOBuffer* buf, buf 118 net/http/http_cache_transaction.h virtual int Read(IOBuffer* buf, buf 460 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(100)); buf 461 net/http/http_cache_unittest.cc int len = static_cast<int>(base::strlcpy(buf->data(), buf 464 net/http/http_cache_unittest.cc int rv = entry->WriteData(1, 0, buf.get(), len, cb.callback(), true); buf 1718 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 1719 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 4027 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(500)); buf 4028 net/http/http_cache_unittest.cc int len = static_cast<int>(base::strlcpy(buf->data(), buf 4031 net/http/http_cache_unittest.cc int rv = entry->WriteData(1, 0, buf.get(), len, cb.callback(), true); buf 4075 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(500)); buf 4076 net/http/http_cache_unittest.cc int len = static_cast<int>(base::strlcpy(buf->data(), buf 4079 net/http/http_cache_unittest.cc int rv = entry->WriteData(1, 0, buf.get(), len, cb.callback(), true); buf 4117 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(500)); buf 4118 net/http/http_cache_unittest.cc int len = static_cast<int>(base::strlcpy(buf->data(), buf 4121 net/http/http_cache_unittest.cc int rv = entry->WriteData(1, 0, buf.get(), len, cb.callback(), true); buf 4303 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(10)); buf 4304 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4307 net/http/http_cache_unittest.cc EXPECT_EQ(buf->size(), rv); buf 4343 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(5)); buf 4344 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4346 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4388 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(5)); buf 4389 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4391 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4803 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(10)); buf 4804 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4807 net/http/http_cache_unittest.cc EXPECT_EQ(buf->size(), rv); buf 4846 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(10)); buf 4847 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4850 net/http/http_cache_unittest.cc EXPECT_EQ(buf->size(), rv); buf 4890 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(10)); buf 4891 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4894 net/http/http_cache_unittest.cc EXPECT_EQ(buf->size(), rv); buf 4897 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4946 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(22)); buf 4947 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 4948 net/http/http_cache_unittest.cc EXPECT_EQ(buf->size(), c->callback.GetResult(rv)); buf 5100 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(5)); buf 5101 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), buf->size(), c->callback.callback()); buf 5304 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(100)); buf 5305 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), 20, c->callback.callback()); buf 5307 net/http/http_cache_unittest.cc rv = c->trans->Read(buf.get(), 10, c->callback.callback()); buf 5768 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(50)); buf 5769 net/http/http_cache_unittest.cc memset(buf->data(), 0, buf->size()); buf 5770 net/http/http_cache_unittest.cc base::strlcpy(buf->data(), "Hi there", buf->size()); buf 5774 net/http/http_cache_unittest.cc buf.get(), buf 5775 net/http/http_cache_unittest.cc buf->size()); buf 5778 net/http/http_cache_unittest.cc buf = NULL; buf 5805 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(50)); buf 5806 net/http/http_cache_unittest.cc memset(buf->data(), 0, buf->size()); buf 5807 net/http/http_cache_unittest.cc base::strlcpy(buf->data(), "Hi there", buf->size()); buf 5813 net/http/http_cache_unittest.cc buf.get(), buf 5814 net/http/http_cache_unittest.cc buf->size()); buf 5840 net/http/http_cache_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(50)); buf 5841 net/http/http_cache_unittest.cc memset(buf->data(), 0, buf->size()); buf 5842 net/http/http_cache_unittest.cc base::strlcpy(buf->data(), "Hi there", buf->size()); buf 5846 net/http/http_cache_unittest.cc buf.get(), buf 5847 net/http/http_cache_unittest.cc buf->size()); buf 5906 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 5907 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 5969 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 5970 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 10, callback.callback()); buf 5976 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 5978 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6007 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 6008 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 10, callback.callback()); buf 6014 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6016 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6052 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 6053 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 10, callback.callback()); buf 6089 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 6090 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 10, callback.callback()); buf 6096 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6098 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6138 net/http/http_cache_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 6139 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 10, callback.callback()); buf 6146 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6148 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 6150 net/http/http_cache_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 69 net/http/http_chunked_decoder.cc int HttpChunkedDecoder::FilterBuf(char* buf, int buf_len) { buf 80 net/http/http_chunked_decoder.cc buf += num; buf 91 net/http/http_chunked_decoder.cc int bytes_consumed = ScanForChunkRemaining(buf, buf_len); buf 97 net/http/http_chunked_decoder.cc memmove(buf, buf + bytes_consumed, buf_len); buf 103 net/http/http_chunked_decoder.cc int HttpChunkedDecoder::ScanForChunkRemaining(const char* buf, int buf_len) { buf 109 net/http/http_chunked_decoder.cc size_t index_of_lf = base::StringPiece(buf, buf_len).find('\n'); buf 112 net/http/http_chunked_decoder.cc if (buf_len && buf[buf_len - 1] == '\r') // Eliminate a preceding CR. buf 118 net/http/http_chunked_decoder.cc line_buf_.append(buf, buf_len); buf 119 net/http/http_chunked_decoder.cc buf = line_buf_.data(); buf 136 net/http/http_chunked_decoder.cc size_t index_of_semicolon = base::StringPiece(buf, buf_len).find(';'); buf 140 net/http/http_chunked_decoder.cc if (!ParseChunkSize(buf, buf_len, &chunk_remaining_)) { buf 142 net/http/http_chunked_decoder.cc std::string(buf, buf_len); buf 158 net/http/http_chunked_decoder.cc if (buf[buf_len - 1] == '\r') buf 166 net/http/http_chunked_decoder.cc line_buf_.append(buf, buf_len); buf 97 net/http/http_chunked_decoder.h int FilterBuf(char* buf, int buf_len); buf 103 net/http/http_chunked_decoder.h int ScanForChunkRemaining(const char* buf, int buf_len); buf 86 net/http/http_content_disposition.cc char* buf = WriteInto(output, output_length); buf 87 net/http/http_content_disposition.cc output_length = ucnv_toAlgorithmic(UCNV_UTF8, converter, buf, output_length, buf 344 net/http/http_network_transaction.cc int HttpNetworkTransaction::Read(IOBuffer* buf, int buf_len, buf 346 net/http/http_network_transaction.cc DCHECK(buf); buf 373 net/http/http_network_transaction.cc read_buf_ = buf; buf 59 net/http/http_network_transaction.h virtual int Read(IOBuffer* buf, buf 3480 net/http/http_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 3481 net/http/http_network_transaction_unittest.cc EXPECT_EQ(1, trans->Read(buf.get(), 256, callback.callback())); buf 3503 net/http/http_network_transaction_unittest.cc EXPECT_EQ(2, trans2->Read(buf.get(), 256, callback.callback())); buf 3612 net/http/http_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 3613 net/http/http_network_transaction_unittest.cc EXPECT_EQ(1, trans->Read(buf.get(), 256, callback.callback())); buf 3634 net/http/http_network_transaction_unittest.cc EXPECT_EQ(2, trans2->Read(buf.get(), 256, callback.callback())); buf 3723 net/http/http_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 3724 net/http/http_network_transaction_unittest.cc EXPECT_EQ(ERR_IO_PENDING, trans->Read(buf.get(), 256, callback.callback())); buf 3746 net/http/http_network_transaction_unittest.cc EXPECT_EQ(ERR_IO_PENDING, trans2->Read(buf.get(), 256, callback.callback())); buf 8093 net/http/http_network_transaction_unittest.cc virtual int Read(IOBuffer* buf, buf 12111 net/http/http_network_transaction_unittest.cc virtual int ReadResponseBody(IOBuffer* buf, int buf_len, buf 603 net/http/http_pipelined_connection_impl.cc int pipeline_id, IOBuffer* buf, int buf_len, buf 609 net/http/http_pipelined_connection_impl.cc buf, buf_len, callback); buf 110 net/http/http_pipelined_connection_impl.h IOBuffer* buf, int buf_len, buf 66 net/http/http_pipelined_stream.cc int HttpPipelinedStream::ReadResponseBody(IOBuffer* buf, int buf_len, buf 68 net/http/http_pipelined_stream.cc return pipeline_->ReadResponseBody(pipeline_id_, buf, buf_len, callback); buf 55 net/http/http_pipelined_stream.h virtual int ReadResponseBody(IOBuffer* buf, int buf_len, buf 212 net/http/http_proxy_client_socket.cc int HttpProxyClientSocket::Read(IOBuffer* buf, int buf_len, buf 229 net/http/http_proxy_client_socket.cc return transport_->socket()->Read(buf, buf_len, callback); buf 232 net/http/http_proxy_client_socket.cc int HttpProxyClientSocket::Write(IOBuffer* buf, int buf_len, buf 237 net/http/http_proxy_client_socket.cc return transport_->socket()->Write(buf, buf_len, callback); buf 79 net/http/http_proxy_client_socket.h virtual int Read(IOBuffer* buf, buf 82 net/http/http_proxy_client_socket.h virtual int Write(IOBuffer* buf, buf 110 net/http/http_response_body_drainer_unittest.cc virtual int ReadResponseBody(IOBuffer* buf, int buf_len, buf 143 net/http/http_response_body_drainer_unittest.cc int ReadResponseBodyImpl(IOBuffer* buf, int buf_len); buf 161 net/http/http_response_body_drainer_unittest.cc int MockHttpStream::ReadResponseBody(IOBuffer* buf, buf 166 net/http/http_response_body_drainer_unittest.cc CHECK(buf); buf 175 net/http/http_response_body_drainer_unittest.cc user_buf_ = buf; buf 183 net/http/http_response_body_drainer_unittest.cc return ReadResponseBodyImpl(buf, buf_len); buf 187 net/http/http_response_body_drainer_unittest.cc int MockHttpStream::ReadResponseBodyImpl(IOBuffer* buf, int buf_len) { buf 193 net/http/http_response_body_drainer_unittest.cc std::memset(buf->data(), 1, buf_len); buf 76 net/http/http_stream_base.h virtual int ReadResponseBody(IOBuffer* buf, int buf_len, buf 93 net/http/http_stream_factory_impl_unittest.cc virtual int ReadResponseBody(IOBuffer* buf, buf 328 net/http/http_stream_parser.cc int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len, buf 338 net/http/http_stream_parser.cc user_read_buf_ = buf; buf 57 net/http/http_stream_parser.h int ReadResponseBody(IOBuffer* buf, int buf_len, buf 100 net/http/http_transaction.h virtual int Read(IOBuffer* buf, int buf_len, buf 284 net/http/http_transaction_unittest.cc int MockNetworkTransaction::Read(net::IOBuffer* buf, int buf_len, buf 289 net/http/http_transaction_unittest.cc memcpy(buf->data(), data_.data() + data_cursor_, num); buf 488 net/http/http_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(256)); buf 489 net/http/http_transaction_unittest.cc rv = trans->Read(buf.get(), 256, callback.callback()); buf 494 net/http/http_transaction_unittest.cc content.append(buf->data(), rv); buf 188 net/http/http_transaction_unittest.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 495 net/http/http_util.cc int HttpUtil::LocateStartOfStatusLine(const char* buf, int buf_len) { buf 502 net/http/http_util.cc if (LowerCaseEqualsASCII(buf + i, buf + i + http_len, "http")) buf 509 net/http/http_util.cc int HttpUtil::LocateEndOfHeaders(const char* buf, int buf_len, int i) { buf 513 net/http/http_util.cc char c = buf[i]; buf 131 net/http/http_util.h static int LocateStartOfStatusLine(const char* buf, int buf_len); buf 139 net/http/http_util.h static int LocateEndOfHeaders(const char* buf, int buf_len, int i = 0); buf 154 net/http/http_util.h static std::string AssembleRawHeaders(const char* buf, int buf_len); buf 86 net/http/mock_http_cache.cc int index, int offset, net::IOBuffer* buf, int buf_len, buf 100 net/http/mock_http_cache.cc memcpy(buf->data(), &data_[index][offset], num); buf 110 net/http/mock_http_cache.cc int index, int offset, net::IOBuffer* buf, int buf_len, buf 126 net/http/mock_http_cache.cc memcpy(&data_[index][offset], buf->data(), buf_len); buf 135 net/http/mock_http_cache.cc int MockDiskEntry::ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, buf 155 net/http/mock_http_cache.cc memcpy(buf->data(), &data_[1][real_offset], num); buf 166 net/http/mock_http_cache.cc int MockDiskEntry::WriteSparseData(int64 offset, net::IOBuffer* buf, buf 193 net/http/mock_http_cache.cc memcpy(&data_[1][real_offset], buf->data(), buf_len); buf 34 net/http/mock_http_cache.h virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, buf 36 net/http/mock_http_cache.h virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, buf 39 net/http/mock_http_cache.h virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, buf 42 net/http/mock_http_cache.h int64 offset, net::IOBuffer* buf, int buf_len, buf 50 net/http/mock_sspi_library_win.cc uint8* buf = reinterpret_cast<uint8 *>(out_buffer->pvBuffer); buf 51 net/http/mock_sspi_library_win.cc buf[0] = 0xAB; buf 52 net/http/mock_sspi_library_win.cc buf[1] = 0xBA; buf 53 net/http/proxy_connect_redirect_http_stream.cc IOBuffer* buf, buf 37 net/http/proxy_connect_redirect_http_stream.h virtual int ReadResponseBody(IOBuffer* buf, buf 30 net/quic/crypto/aead_base_decrypter_openssl.cc char buf[120]; buf 31 net/quic/crypto/aead_base_decrypter_openssl.cc ERR_error_string_n(error, buf, arraysize(buf)); buf 32 net/quic/crypto/aead_base_decrypter_openssl.cc DLOG(ERROR) << "OpenSSL error: " << buf; buf 26 net/quic/crypto/aead_base_encrypter_openssl.cc char buf[120]; buf 27 net/quic/crypto/aead_base_encrypter_openssl.cc ERR_error_string_n(error, buf, arraysize(buf)); buf 28 net/quic/crypto/aead_base_encrypter_openssl.cc DLOG(ERROR) << "OpenSSL error: " << buf; buf 32 net/quic/crypto/quic_random_test.cc char buf[1024]; buf 33 net/quic/crypto/quic_random_test.cc memset(buf, 0xaf, sizeof(buf)); buf 36 net/quic/crypto/quic_random_test.cc rng->Reseed(buf, sizeof(buf)); buf 189 net/quic/quic_connection_test.cc uint8* buf = new uint8[len]; buf 190 net/quic/quic_connection_test.cc memcpy(buf, ciphertext.data(), len); buf 191 net/quic/quic_connection_test.cc return new QuicData(reinterpret_cast<char*>(buf), len, buf 30 net/quic/quic_default_packet_writer.cc scoped_refptr<StringIOBuffer> buf( buf 33 net/quic/quic_default_packet_writer.cc int rv = socket_->Write(buf.get(), buf 174 net/quic/quic_http_stream.cc IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 175 net/quic/quic_http_stream.cc CHECK(buf); buf 185 net/quic/quic_http_stream.cc memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); buf 212 net/quic/quic_http_stream.cc user_buffer_ = buf; buf 45 net/quic/quic_http_stream.h virtual int ReadResponseBody(IOBuffer* buf, buf 275 net/quic/quic_utils.cc const char* buf = in_buffer.data(); buf 278 net/quic/quic_utils.cc const char* p = buf; buf 496 net/quic/test_tools/crypto_test_utils.cc scoped_ptr<uint8[]> buf(new uint8[len/2]); buf 501 net/quic/test_tools/crypto_test_utils.cc buf[i] = v << 4; buf 503 net/quic/test_tools/crypto_test_utils.cc buf[i] |= v; buf 507 net/quic/test_tools/crypto_test_utils.cc tag, StringPiece(reinterpret_cast<char*>(buf.get()), len/2)); buf 158 net/quic/test_tools/crypto_test_utils_openssl.cc uint8 buf[kExpectedKeyLength]; buf 159 net/quic/test_tools/crypto_test_utils_openssl.cc uint8* derp = buf; buf 162 net/quic/test_tools/crypto_test_utils_openssl.cc return string(reinterpret_cast<char*>(buf + 1), kExpectedKeyLength - 1); buf 39 net/socket/buffered_write_stream_socket.cc int BufferedWriteStreamSocket::Read(IOBuffer* buf, int buf_len, buf 41 net/socket/buffered_write_stream_socket.cc return wrapped_socket_->Read(buf, buf_len, callback); buf 44 net/socket/buffered_write_stream_socket.cc int BufferedWriteStreamSocket::Write(IOBuffer* buf, int buf_len, buf 51 net/socket/buffered_write_stream_socket.cc AppendBuffer(idle_buffer, buf, buf_len); buf 42 net/socket/buffered_write_stream_socket.h virtual int Read(IOBuffer* buf, int buf_len, buf 44 net/socket/buffered_write_stream_socket.h virtual int Write(IOBuffer* buf, int buf_len, buf 42 net/socket/buffered_write_stream_socket_unittest.cc scoped_refptr<StringIOBuffer> buf(new StringIOBuffer(text)); buf 43 net/socket/buffered_write_stream_socket_unittest.cc EXPECT_EQ(buf->size(), buf 44 net/socket/buffered_write_stream_socket_unittest.cc socket_->Write(buf.get(), buf->size(), callback_.callback())); buf 141 net/socket/deterministic_socket_data_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(len)); buf 142 net/socket/deterministic_socket_data_unittest.cc memcpy(buf->data(), data, len); buf 145 net/socket/deterministic_socket_data_unittest.cc ASSERT_EQ(len, sock_->Write(buf.get(), len, write_callback_.callback())); buf 162 net/socket/deterministic_socket_data_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(len)); buf 163 net/socket/deterministic_socket_data_unittest.cc memcpy(buf->data(), data, len); buf 166 net/socket/deterministic_socket_data_unittest.cc ASSERT_EQ(rv, sock_->Write(buf.get(), len, write_callback_.callback())); buf 31 net/socket/socket.h virtual int Read(IOBuffer* buf, int buf_len, buf 46 net/socket/socket.h virtual int Write(IOBuffer* buf, int buf_len, buf 829 net/socket/socket_test_util.cc int MockTCPClientSocket::Read(IOBuffer* buf, int buf_len, buf 838 net/socket/socket_test_util.cc pending_buf_ = buf; buf 868 net/socket/socket_test_util.cc int MockTCPClientSocket::Write(IOBuffer* buf, int buf_len, buf 870 net/socket/socket_test_util.cc DCHECK(buf); buf 876 net/socket/socket_test_util.cc std::string data(buf->data(), buf_len); buf 973 net/socket/socket_test_util.cc scoped_refptr<IOBuffer> buf = pending_buf_; buf 986 net/socket/socket_test_util.cc memcpy(buf->data(), read_data_.data + read_offset_, result); buf 1057 net/socket/socket_test_util.cc IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 1058 net/socket/socket_test_util.cc DCHECK(buf); buf 1061 net/socket/socket_test_util.cc std::string data(buf->data(), buf_len); buf 1078 net/socket/socket_test_util.cc IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 1097 net/socket/socket_test_util.cc read_buf_ = buf; buf 1146 net/socket/socket_test_util.cc IOBuffer* buf, buf 1152 net/socket/socket_test_util.cc return helper_.Write(buf, buf_len, callback); buf 1156 net/socket/socket_test_util.cc IOBuffer* buf, buf 1162 net/socket/socket_test_util.cc return helper_.Read(buf, buf_len, callback); buf 1230 net/socket/socket_test_util.cc IOBuffer* buf, buf 1236 net/socket/socket_test_util.cc return helper_.Write(buf, buf_len, callback); buf 1240 net/socket/socket_test_util.cc IOBuffer* buf, buf 1246 net/socket/socket_test_util.cc return helper_.Read(buf, buf_len, callback); buf 1328 net/socket/socket_test_util.cc int MockSSLClientSocket::Read(IOBuffer* buf, int buf_len, buf 1330 net/socket/socket_test_util.cc return transport_->socket()->Read(buf, buf_len, callback); buf 1333 net/socket/socket_test_util.cc int MockSSLClientSocket::Write(IOBuffer* buf, int buf_len, buf 1335 net/socket/socket_test_util.cc return transport_->socket()->Write(buf, buf_len, callback); buf 1464 net/socket/socket_test_util.cc int MockUDPClientSocket::Read(IOBuffer* buf, buf 1474 net/socket/socket_test_util.cc pending_buf_ = buf; buf 1493 net/socket/socket_test_util.cc int MockUDPClientSocket::Write(IOBuffer* buf, int buf_len, buf 1495 net/socket/socket_test_util.cc DCHECK(buf); buf 1501 net/socket/socket_test_util.cc std::string data(buf->data(), buf_len); buf 1575 net/socket/socket_test_util.cc scoped_refptr<IOBuffer> buf = pending_buf_; buf 1588 net/socket/socket_test_util.cc memcpy(buf->data(), read_data_.data + read_offset_, result); buf 672 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 675 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 737 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 740 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 801 net/socket/socket_test_util.h int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 802 net/socket/socket_test_util.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 847 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 850 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 898 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 901 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 934 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 937 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 989 net/socket/socket_test_util.h virtual int Read(IOBuffer* buf, buf 992 net/socket/socket_test_util.h virtual int Write(IOBuffer* buf, buf 152 net/socket/socks5_client_socket.cc int SOCKS5ClientSocket::Read(IOBuffer* buf, int buf_len, buf 160 net/socket/socks5_client_socket.cc buf, buf_len, buf 170 net/socket/socks5_client_socket.cc int SOCKS5ClientSocket::Write(IOBuffer* buf, int buf_len, buf 178 net/socket/socks5_client_socket.cc buf, buf_len, buf 60 net/socket/socks5_client_socket.h virtual int Read(IOBuffer* buf, buf 63 net/socket/socks5_client_socket.h virtual int Write(IOBuffer* buf, buf 180 net/socket/socks_client_socket.cc int SOCKSClientSocket::Read(IOBuffer* buf, int buf_len, buf 188 net/socket/socks_client_socket.cc buf, buf_len, buf 198 net/socket/socks_client_socket.cc int SOCKSClientSocket::Write(IOBuffer* buf, int buf_len, buf 206 net/socket/socks_client_socket.cc buf, buf_len, buf 57 net/socket/socks_client_socket.h virtual int Read(IOBuffer* buf, buf 60 net/socket/socks_client_socket.h virtual int Write(IOBuffer* buf, buf 634 net/socket/ssl_client_socket_nss.cc int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 635 net/socket/ssl_client_socket_nss.cc int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 1110 net/socket/ssl_client_socket_nss.cc int SSLClientSocketNSS::Core::Read(IOBuffer* buf, int buf_len, buf 1121 net/socket/ssl_client_socket_nss.cc base::Bind(IgnoreResult(&Core::Read), this, make_scoped_refptr(buf), buf 1138 net/socket/ssl_client_socket_nss.cc user_read_buf_ = buf; buf 1167 net/socket/ssl_client_socket_nss.cc int SSLClientSocketNSS::Core::Write(IOBuffer* buf, int buf_len, buf 1178 net/socket/ssl_client_socket_nss.cc base::Bind(IgnoreResult(&Core::Write), this, make_scoped_refptr(buf), buf 1195 net/socket/ssl_client_socket_nss.cc user_write_buf_ = buf; buf 2102 net/socket/ssl_client_socket_nss.cc char* buf; buf 2103 net/socket/ssl_client_socket_nss.cc int nb = memio_GetReadParams(nss_bufs_, &buf); buf 2124 net/socket/ssl_client_socket_nss.cc memcpy(buf, read_buffer->data(), rv); buf 2535 net/socket/ssl_client_socket_nss.cc uint8 buf[256]; buf 2539 net/socket/ssl_client_socket_nss.cc SECStatus rv = SSL_GetNextProto(nss_fd_, &state, buf, &buf_len, sizeof(buf)); buf 2544 net/socket/ssl_client_socket_nss.cc std::string(reinterpret_cast<char*>(buf), buf_len); buf 2752 net/socket/ssl_client_socket_nss.cc char* buf; buf 2753 net/socket/ssl_client_socket_nss.cc int nb = memio_GetReadParams(nss_bufs_, &buf); buf 2755 net/socket/ssl_client_socket_nss.cc memcpy(buf, read_buffer->data(), result); buf 2915 net/socket/ssl_client_socket_nss.cc unsigned char buf[64]; buf 2919 net/socket/ssl_client_socket_nss.cc buf, &len, arraysize(buf)); buf 2924 net/socket/ssl_client_socket_nss.cc out->assign(reinterpret_cast<char*>(buf), len); buf 3063 net/socket/ssl_client_socket_nss.cc int SSLClientSocketNSS::Read(IOBuffer* buf, int buf_len, buf 3069 net/socket/ssl_client_socket_nss.cc int rv = core_->Read(buf, buf_len, callback); buf 3075 net/socket/ssl_client_socket_nss.cc int SSLClientSocketNSS::Write(IOBuffer* buf, int buf_len, buf 3081 net/socket/ssl_client_socket_nss.cc int rv = core_->Write(buf, buf_len, callback); buf 99 net/socket/ssl_client_socket_nss.h virtual int Read(IOBuffer* buf, buf 102 net/socket/ssl_client_socket_nss.h virtual int Write(IOBuffer* buf, buf 741 net/socket/ssl_client_socket_openssl.cc int SSLClientSocketOpenSSL::Read(IOBuffer* buf, buf 744 net/socket/ssl_client_socket_openssl.cc user_read_buf_ = buf; buf 761 net/socket/ssl_client_socket_openssl.cc int SSLClientSocketOpenSSL::Write(IOBuffer* buf, buf 764 net/socket/ssl_client_socket_openssl.cc user_write_buf_ = buf; buf 88 net/socket/ssl_client_socket_openssl.h virtual int Read(IOBuffer* buf, int buf_len, buf 90 net/socket/ssl_client_socket_openssl.h virtual int Write(IOBuffer* buf, int buf_len, buf 94 net/socket/ssl_client_socket_unittest.cc virtual int Read(IOBuffer* buf, buf 97 net/socket/ssl_client_socket_unittest.cc return transport_->Read(buf, buf_len, callback); buf 99 net/socket/ssl_client_socket_unittest.cc virtual int Write(IOBuffer* buf, buf 102 net/socket/ssl_client_socket_unittest.cc return transport_->Write(buf, buf_len, callback); buf 127 net/socket/ssl_client_socket_unittest.cc virtual int Read(IOBuffer* buf, buf 172 net/socket/ssl_client_socket_unittest.cc int ReadBufferingStreamSocket::Read(IOBuffer* buf, buf 176 net/socket/ssl_client_socket_unittest.cc return transport_->Read(buf, buf_len, callback); buf 182 net/socket/ssl_client_socket_unittest.cc user_read_buf_ = buf; buf 257 net/socket/ssl_client_socket_unittest.cc virtual int Read(IOBuffer* buf, buf 260 net/socket/ssl_client_socket_unittest.cc virtual int Write(IOBuffer* buf, buf 302 net/socket/ssl_client_socket_unittest.cc int SynchronousErrorStreamSocket::Read(IOBuffer* buf, buf 307 net/socket/ssl_client_socket_unittest.cc return transport_->Read(buf, buf_len, callback); buf 310 net/socket/ssl_client_socket_unittest.cc int SynchronousErrorStreamSocket::Write(IOBuffer* buf, buf 315 net/socket/ssl_client_socket_unittest.cc return transport_->Write(buf, buf_len, callback); buf 328 net/socket/ssl_client_socket_unittest.cc virtual int Read(IOBuffer* buf, buf 331 net/socket/ssl_client_socket_unittest.cc return read_state_.RunWrappedFunction(buf, buf_len, callback); buf 333 net/socket/ssl_client_socket_unittest.cc virtual int Write(IOBuffer* buf, buf 336 net/socket/ssl_client_socket_unittest.cc return write_state_.RunWrappedFunction(buf, buf_len, callback); buf 376 net/socket/ssl_client_socket_unittest.cc int RunWrappedFunction(IOBuffer* buf, buf 433 net/socket/ssl_client_socket_unittest.cc IOBuffer* buf, buf 444 net/socket/ssl_client_socket_unittest.cc int rv = wrapped_function_.Run(buf, len, transport_callback); buf 873 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 875 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 4096, callback.callback()); buf 935 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 940 net/socket/ssl_client_socket_unittest.cc rv = callback.GetResult(sock->Read(buf.get(), 4096, callback.callback())); buf 1009 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 1011 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 4096, callback.callback()); buf 1062 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 1063 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 4096, callback.callback()); buf 1271 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 1272 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 4096, read_callback.callback()); buf 1360 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(1)); buf 1362 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 1, callback.callback()); buf 1467 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(512)); buf 1468 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 512, callback.callback()); buf 1523 net/socket/ssl_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 1525 net/socket/ssl_client_socket_unittest.cc rv = sock->Read(buf.get(), 4096, callback.callback()); buf 178 net/socket/ssl_server_socket_nss.cc unsigned char buf[64]; buf 182 net/socket/ssl_server_socket_nss.cc buf, &len, arraysize(buf)); buf 187 net/socket/ssl_server_socket_nss.cc out->assign(reinterpret_cast<char*>(buf), len); buf 196 net/socket/ssl_server_socket_nss.cc int SSLServerSocketNSS::Read(IOBuffer* buf, int buf_len, buf 204 net/socket/ssl_server_socket_nss.cc user_read_buf_ = buf; buf 220 net/socket/ssl_server_socket_nss.cc int SSLServerSocketNSS::Write(IOBuffer* buf, int buf_len, buf 227 net/socket/ssl_server_socket_nss.cc user_write_buf_ = buf; buf 581 net/socket/ssl_server_socket_nss.cc char* buf; buf 582 net/socket/ssl_server_socket_nss.cc int nb = memio_GetReadParams(nss_bufs_, &buf); buf 598 net/socket/ssl_server_socket_nss.cc memcpy(buf, recv_buffer_->data(), rv); buf 608 net/socket/ssl_server_socket_nss.cc char* buf; buf 609 net/socket/ssl_server_socket_nss.cc memio_GetReadParams(nss_bufs_, &buf); buf 610 net/socket/ssl_server_socket_nss.cc memcpy(buf, recv_buffer_->data(), result); buf 45 net/socket/ssl_server_socket_nss.h virtual int Read(IOBuffer* buf, int buf_len, buf 47 net/socket/ssl_server_socket_nss.h virtual int Write(IOBuffer* buf, int buf_len, buf 64 net/socket/ssl_server_socket_unittest.cc int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 69 net/socket/ssl_server_socket_unittest.cc read_buf_ = buf; buf 73 net/socket/ssl_server_socket_unittest.cc return PropogateData(buf, buf_len); buf 76 net/socket/ssl_server_socket_unittest.cc int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 87 net/socket/ssl_server_socket_unittest.cc data_.push(new net::DrainableIOBuffer(buf, buf_len)); buf 125 net/socket/ssl_server_socket_unittest.cc scoped_refptr<net::DrainableIOBuffer> buf = data_.front(); buf 126 net/socket/ssl_server_socket_unittest.cc int copied = std::min(buf->BytesRemaining(), read_buf_len); buf 127 net/socket/ssl_server_socket_unittest.cc memcpy(read_buf->data(), buf->data(), copied); buf 128 net/socket/ssl_server_socket_unittest.cc buf->DidConsume(copied); buf 130 net/socket/ssl_server_socket_unittest.cc if (!buf->BytesRemaining()) buf 167 net/socket/ssl_server_socket_unittest.cc virtual int Read(IOBuffer* buf, int buf_len, buf 171 net/socket/ssl_server_socket_unittest.cc return incoming_->Read(buf, buf_len, callback); buf 174 net/socket/ssl_server_socket_unittest.cc virtual int Write(IOBuffer* buf, int buf_len, buf 178 net/socket/ssl_server_socket_unittest.cc return outgoing_->Write(buf, buf_len, callback); buf 172 net/socket/stream_listen_socket.cc char buf[kReadBufSize + 1]; // +1 for null termination. buf 175 net/socket/stream_listen_socket.cc len = HANDLE_EINTR(recv(socket_, buf, kReadBufSize, 0)); buf 198 net/socket/stream_listen_socket.cc buf[len] = 0; // Already create a buffer with +1 length. buf 199 net/socket/stream_listen_socket.cc socket_delegate_->DidRead(this, buf, len); buf 240 net/socket/tcp_client_socket.cc int TCPClientSocket::Read(IOBuffer* buf, buf 249 net/socket/tcp_client_socket.cc int result = socket_->Read(buf, buf_len, read_callback); buf 256 net/socket/tcp_client_socket.cc int TCPClientSocket::Write(IOBuffer* buf, buf 265 net/socket/tcp_client_socket.cc int result = socket_->Write(buf, buf_len, write_callback); buf 59 net/socket/tcp_client_socket.h virtual int Read(IOBuffer* buf, int buf_len, buf 61 net/socket/tcp_client_socket.h virtual int Write(IOBuffer* buf, int buf_len, buf 106 net/socket/tcp_listen_socket_unittest.cc char buf[kReadBufSize]; buf 109 net/socket/tcp_listen_socket_unittest.cc int len = HANDLE_EINTR(recv(test_socket_, buf, kReadBufSize, 0)); buf 178 net/socket/tcp_listen_socket_unittest.cc char buf[buf_len+1]; buf 182 net/socket/tcp_listen_socket_unittest.cc buf + recv_len, buf_len - recv_len, 0)); buf 188 net/socket/tcp_listen_socket_unittest.cc buf[recv_len] = 0; buf 189 net/socket/tcp_listen_socket_unittest.cc ASSERT_STREQ(kHelloWorld, buf); buf 207 net/socket/tcp_listen_socket_unittest.cc char buf[sizeof(kHelloWorld)]; buf 213 net/socket/tcp_listen_socket_unittest.cc buf + recv_len, buf_len - 1 - recv_len, 0)); buf 219 net/socket/tcp_listen_socket_unittest.cc buf[recv_len] = 0; buf 220 net/socket/tcp_listen_socket_unittest.cc ASSERT_STREQ(kHelloWorld, buf); buf 349 net/socket/tcp_socket_libevent.cc int TCPSocketLibevent::Read(IOBuffer* buf, buf 360 net/socket/tcp_socket_libevent.cc int nread = HANDLE_EINTR(read(socket_, buf->data(), buf_len)); buf 365 net/socket/tcp_socket_libevent.cc buf->data()); buf 383 net/socket/tcp_socket_libevent.cc read_buf_ = buf; buf 389 net/socket/tcp_socket_libevent.cc int TCPSocketLibevent::Write(IOBuffer* buf, buf 400 net/socket/tcp_socket_libevent.cc int nwrite = InternalWrite(buf, buf_len); buf 405 net/socket/tcp_socket_libevent.cc buf->data()); buf 422 net/socket/tcp_socket_libevent.cc write_buf_ = buf; buf 819 net/socket/tcp_socket_libevent.cc int TCPSocketLibevent::InternalWrite(IOBuffer* buf, int buf_len) { buf 839 net/socket/tcp_socket_libevent.cc buf->data(), buf 864 net/socket/tcp_socket_libevent.cc nwrite = HANDLE_EINTR(write(socket_, buf->data(), buf_len)); buf 49 net/socket/tcp_socket_libevent.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 50 net/socket/tcp_socket_libevent.h int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 174 net/socket/tcp_socket_libevent.h int InternalWrite(IOBuffer* buf, int buf_len); buf 464 net/socket/tcp_socket_win.cc int TCPSocketWin::Read(IOBuffer* buf, buf 473 net/socket/tcp_socket_win.cc return DoRead(buf, buf_len, callback); buf 476 net/socket/tcp_socket_win.cc int TCPSocketWin::Write(IOBuffer* buf, buf 491 net/socket/tcp_socket_win.cc write_buffer.buf = buf->data(); buf 511 net/socket/tcp_socket_win.cc buf->data()); buf 525 net/socket/tcp_socket_win.cc core_->write_iobuffer_ = buf; buf 855 net/socket/tcp_socket_win.cc int TCPSocketWin::DoRead(IOBuffer* buf, int buf_len, buf 862 net/socket/tcp_socket_win.cc int rv = recv(socket_, buf->data(), buf_len, 0); buf 877 net/socket/tcp_socket_win.cc buf->data()); buf 883 net/socket/tcp_socket_win.cc core_->read_iobuffer_ = buf; buf 50 net/socket/tcp_socket_win.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 51 net/socket/tcp_socket_win.h int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 106 net/socket/tcp_socket_win.h int DoRead(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 140 net/socket/transport_client_socket_pool_unittest.cc virtual int Read(IOBuffer* buf, int buf_len, buf 144 net/socket/transport_client_socket_pool_unittest.cc virtual int Write(IOBuffer* buf, int buf_len, buf 204 net/socket/transport_client_socket_pool_unittest.cc virtual int Read(IOBuffer* buf, int buf_len, buf 209 net/socket/transport_client_socket_pool_unittest.cc virtual int Write(IOBuffer* buf, int buf_len, buf 293 net/socket/transport_client_socket_pool_unittest.cc virtual int Read(IOBuffer* buf, int buf_len, buf 298 net/socket/transport_client_socket_pool_unittest.cc virtual int Write(IOBuffer* buf, int buf_len, buf 80 net/socket/transport_client_socket_unittest.cc int DrainClientSocket(IOBuffer* buf, buf 141 net/socket/transport_client_socket_unittest.cc IOBuffer* buf, uint32 buf_len, buf 147 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf, buf_len, callback->callback()); buf 210 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 229 net/socket/transport_client_socket_unittest.cc bytes_read = DrainClientSocket(buf.get(), 1, 1, &callback); buf 238 net/socket/transport_client_socket_unittest.cc buf.get(), 4096, arraysize(kServerReply) - 2, &callback); buf 250 net/socket/transport_client_socket_unittest.cc bytes_read = DrainClientSocket(buf.get(), 1, 1, &callback); buf 258 net/socket/transport_client_socket_unittest.cc buf.get(), 4096, arraysize(kServerReply) - 2, &callback); buf 266 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), 4096, callback.callback()); buf 284 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); buf 286 net/socket/transport_client_socket_unittest.cc buf.get(), 4096, arraysize(kServerReply) - 1, &callback); buf 292 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), 4096, callback.callback()); buf 309 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(1)); buf 312 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), 1, callback.callback()); buf 325 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), 1, callback.callback()); buf 343 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(16)); buf 344 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), 16, callback.callback()); buf 365 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(kBufLen)); buf 366 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), kBufLen, callback.callback()); buf 426 net/socket/transport_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(kBufLen)); buf 428 net/socket/transport_client_socket_unittest.cc rv = sock_->Read(buf.get(), kBufLen, callback.callback()); buf 1145 net/spdy/spdy_framer.cc char buf[4]; buf 1146 net/spdy/spdy_framer.cc DCHECK_LE(length, sizeof(buf)); buf 1148 net/spdy/spdy_framer.cc buf[length - i] = n; buf 1151 net/spdy/spdy_framer.cc WriteZ(base::StringPiece(buf, length), clas, out); buf 124 net/spdy/spdy_http_stream.cc IOBuffer* buf, int buf_len, const CompletionCallback& callback) { buf 128 net/spdy/spdy_http_stream.cc CHECK(buf); buf 134 net/spdy/spdy_http_stream.cc return response_body_queue_.Dequeue(buf->data(), buf_len); buf 144 net/spdy/spdy_http_stream.cc user_buffer_ = buf; buf 55 net/spdy/spdy_http_stream.h virtual int ReadResponseBody(IOBuffer* buf, buf 562 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(kSize)); buf 565 net/spdy/spdy_network_transaction_unittest.cc int rv = trans->Read(buf.get(), kSize, callback.callback()); buf 577 net/spdy/spdy_network_transaction_unittest.cc result->append(buf->data(), rv); buf 2432 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 2434 net/spdy/spdy_network_transaction_unittest.cc buf.get(), buf 2480 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSize)); buf 2482 net/spdy/spdy_network_transaction_unittest.cc buf.get(), buf 3926 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSmallReadSize)); buf 3927 net/spdy/spdy_network_transaction_unittest.cc rv = trans->Read(buf.get(), kSmallReadSize, read_callback.callback()); buf 3933 net/spdy/spdy_network_transaction_unittest.cc content.append(buf->data(), rv); buf 4019 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSmallReadSize)); buf 4020 net/spdy/spdy_network_transaction_unittest.cc rv = trans->Read(buf.get(), kSmallReadSize, read_callback.callback()); buf 4027 net/spdy/spdy_network_transaction_unittest.cc content.append(buf->data(), rv); buf 4117 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSmallReadSize)); buf 4118 net/spdy/spdy_network_transaction_unittest.cc rv = trans->Read(buf.get(), kSmallReadSize, read_callback.callback()); buf 4121 net/spdy/spdy_network_transaction_unittest.cc content.append(buf->data(), rv); buf 4207 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kSmallReadSize)); buf 4208 net/spdy/spdy_network_transaction_unittest.cc rv = trans->Read(buf.get(), kSmallReadSize, read_callback.callback()); buf 4214 net/spdy/spdy_network_transaction_unittest.cc content.append(buf->data(), rv); buf 4283 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kReadSize)); buf 4284 net/spdy/spdy_network_transaction_unittest.cc rv = trans->Read(buf.get(), kReadSize, read_callback.callback()); buf 6107 net/spdy/spdy_network_transaction_unittest.cc scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kTargetSize)); buf 6109 net/spdy/spdy_network_transaction_unittest.cc trans->Read(buf.get(), kTargetSize, CompletionCallback())); buf 6112 net/spdy/spdy_network_transaction_unittest.cc EXPECT_THAT(base::StringPiece(buf->data(), kTargetSize), Each(Eq('x'))); buf 195 net/spdy/spdy_proxy_client_socket.cc int SpdyProxyClientSocket::Read(IOBuffer* buf, int buf_len, buf 208 net/spdy/spdy_proxy_client_socket.cc DCHECK(buf); buf 209 net/spdy/spdy_proxy_client_socket.cc size_t result = PopulateUserReadBuffer(buf->data(), buf_len); buf 211 net/spdy/spdy_proxy_client_socket.cc user_buffer_ = buf; buf 225 net/spdy/spdy_proxy_client_socket.cc int SpdyProxyClientSocket::Write(IOBuffer* buf, int buf_len, buf 232 net/spdy/spdy_proxy_client_socket.cc spdy_stream_->SendData(buf, buf_len, MORE_DATA_TO_SEND); buf 234 net/spdy/spdy_proxy_client_socket.cc buf_len, buf->data()); buf 83 net/spdy/spdy_proxy_client_socket.h virtual int Read(IOBuffer* buf, buf 86 net/spdy/spdy_proxy_client_socket.h virtual int Write(IOBuffer* buf, buf 212 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(new IOBufferWithSize(size)); buf 213 net/spdy/spdy_proxy_client_socket_unittest.cc memcpy(buf->data(), data, size); buf 214 net/spdy/spdy_proxy_client_socket_unittest.cc return buf; buf 238 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(len)); buf 239 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(len, sock_->Read(buf.get(), len, CompletionCallback())); buf 240 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(std::string(data, len), std::string(buf->data(), len)); buf 248 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(len)); buf 250 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Read(buf.get(), len, read_callback_.callback())); buf 258 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(std::string(data, len), std::string(buf->data(), len)); buf 290 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(data, len)); buf 292 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), write_callback_.callback())); buf 301 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(data, len)); buf 304 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), write_callback_.callback())); buf 688 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(big_data.data(), buf 692 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), write_callback_.callback())); buf 695 net/spdy/spdy_proxy_client_socket_unittest.cc EXPECT_EQ(buf->size(), write_callback_.WaitForResult()); buf 892 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(kLen33)); buf 893 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(kLen3, sock_->Read(buf.get(), kLen33, read_callback_.callback())); buf 894 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(std::string(kMsg3, kLen3), std::string(buf->data(), kLen3)); buf 1118 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(kLen1)); buf 1119 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(kLen1, sock_->Read(buf.get(), kLen1, CompletionCallback())); buf 1120 net/spdy/spdy_proxy_client_socket_unittest.cc ASSERT_EQ(std::string(kMsg1, kLen1), std::string(buf->data(), kLen1)); buf 1148 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(kMsg1, kLen1)); buf 1150 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), CompletionCallback())); buf 1173 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(kMsg1, kLen1)); buf 1175 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), CompletionCallback())); buf 1199 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(kMsg1, kLen1)); buf 1201 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), write_callback_.callback())); buf 1229 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBufferWithSize> buf(CreateBuffer(kMsg1, kLen1)); buf 1231 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Write(buf.get(), buf->size(), write_callback_.callback())); buf 1259 net/spdy/spdy_proxy_client_socket_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(kLen1)); buf 1261 net/spdy/spdy_proxy_client_socket_unittest.cc sock_->Read(buf.get(), kLen1, read_callback_.callback())); buf 124 net/spdy/spdy_stream_test_util.cc scoped_refptr<StringIOBuffer> buf(new StringIOBuffer(data_.as_string())); buf 125 net/spdy/spdy_stream_test_util.cc stream()->SendData(buf.get(), buf->size(), MORE_DATA_TO_SEND); buf 591 net/spdy/spdy_test_util_common.cc virtual int Read(IOBuffer* buf, int buf_len, buf 596 net/spdy/spdy_test_util_common.cc virtual int Write(IOBuffer* buf, int buf_len, buf 72 net/spdy/spdy_websocket_stream.cc scoped_refptr<IOBuffer> buf(new IOBuffer(length)); buf 73 net/spdy/spdy_websocket_stream.cc memcpy(buf->data(), data, length); buf 74 net/spdy/spdy_websocket_stream.cc stream_->SendData(buf.get(), length, MORE_DATA_TO_SEND); buf 437 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java StringBuffer buf = new StringBuffer("<html><head><title>"); buf 438 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java buf.append(reason); buf 439 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java buf.append("</title></head><body>"); buf 440 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java buf.append(reason); buf 441 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java buf.append("</body></html>"); buf 442 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java response.setEntity(createEntity(buf.toString().getBytes())); buf 267 net/test/spawned_test_server/spawner_communicator.cc IOBuffer* buf = data->buf(); buf 271 net/test/spawned_test_server/spawner_communicator.cc if (!request->Read(buf, kBufferSize, &num_bytes)) { buf 79 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp void write_export_data(void* arg, const char* buf, unsigned long len) { buf 81 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp dest->append(buf, len); buf 186 net/third_party/nss/ssl/dtlscon.c sslBuffer buf = *origBuf; buf 192 net/third_party/nss/ssl/dtlscon.c while (buf.len > 0) { buf 200 net/third_party/nss/ssl/dtlscon.c if (buf.len < 12) { buf 207 net/third_party/nss/ssl/dtlscon.c type = buf.buf[0]; buf 208 net/third_party/nss/ssl/dtlscon.c message_length = (buf.buf[1] << 16) | (buf.buf[2] << 8) | buf.buf[3]; buf 209 net/third_party/nss/ssl/dtlscon.c message_seq = (buf.buf[4] << 8) | buf.buf[5]; buf 210 net/third_party/nss/ssl/dtlscon.c fragment_offset = (buf.buf[6] << 16) | (buf.buf[7] << 8) | buf.buf[8]; buf 211 net/third_party/nss/ssl/dtlscon.c fragment_length = (buf.buf[9] << 16) | (buf.buf[10] << 8) | buf.buf[11]; buf 221 net/third_party/nss/ssl/dtlscon.c buf.buf += 12; buf 222 net/third_party/nss/ssl/dtlscon.c buf.len -= 12; buf 225 net/third_party/nss/ssl/dtlscon.c if (buf.len < fragment_length) { buf 266 net/third_party/nss/ssl/dtlscon.c rv = ssl3_HandleHandshakeMessage(ss, buf.buf, ss->ssl3.hs.msg_len); buf 349 net/third_party/nss/ssl/dtlscon.c PORT_Memset(ss->ssl3.hs.recvdFragments.buf, 0, buf 369 net/third_party/nss/ssl/dtlscon.c PORT_Memcpy(ss->ssl3.hs.msg_body.buf + fragment_offset, buf 370 net/third_party/nss/ssl/dtlscon.c buf.buf, fragment_length); buf 392 net/third_party/nss/ssl/dtlscon.c ss->ssl3.hs.recvdFragments.buf[OFFSET_BYTE(offset)] |= buf 403 net/third_party/nss/ssl/dtlscon.c if (ss->ssl3.hs.recvdFragments.buf[OFFSET_BYTE(offset)] & buf 416 net/third_party/nss/ssl/dtlscon.c ss->ssl3.hs.msg_body.buf, buf 435 net/third_party/nss/ssl/dtlscon.c buf.buf += fragment_length; buf 436 net/third_party/nss/ssl/dtlscon.c buf.len -= fragment_length; buf 492 net/third_party/nss/ssl/dtlscon.c if (!ss->sec.ci.sendBuf.buf || !ss->sec.ci.sendBuf.len) buf 496 net/third_party/nss/ssl/dtlscon.c ss->sec.ci.sendBuf.buf, ss->sec.ci.sendBuf.len); buf 265 net/third_party/nss/ssl/ssl.h unsigned char *buf, buf 937 net/third_party/nss/ssl/ssl3con.c ssl3_SignHashes(SSL3Hashes *hash, SECKEYPrivateKey *key, SECItem *buf, buf 945 net/third_party/nss/ssl/ssl3con.c buf->data = NULL; buf 991 net/third_party/nss/ssl/ssl3con.c buf->len = (unsigned)signatureLen; buf 992 net/third_party/nss/ssl/ssl3con.c buf->data = (unsigned char *)PORT_Alloc(signatureLen); buf 993 net/third_party/nss/ssl/ssl3con.c if (!buf->data) buf 996 net/third_party/nss/ssl/ssl3con.c rv = PK11_Sign(key, buf, &hashItem); buf 998 net/third_party/nss/ssl/ssl3con.c rv = SGN_Digest(key, hash->hashAlg, buf, &hashItem); buf 1006 net/third_party/nss/ssl/ssl3con.c rv = DSAU_EncodeDerSigWithLen(&derSig, buf, buf->len); buf 1008 net/third_party/nss/ssl/ssl3con.c PORT_Free(buf->data); /* discard unencoded signature. */ buf 1009 net/third_party/nss/ssl/ssl3con.c *buf = derSig; /* give caller encoded signature. */ buf 1015 net/third_party/nss/ssl/ssl3con.c PRINT_BUF(60, (NULL, "signed hashes", (unsigned char*)buf->data, buf->len)); buf 1017 net/third_party/nss/ssl/ssl3con.c if (rv != SECSuccess && buf->data) { buf 1018 net/third_party/nss/ssl/ssl3con.c PORT_Free(buf->data); buf 1019 net/third_party/nss/ssl/ssl3con.c buf->data = NULL; buf 1027 net/third_party/nss/ssl/ssl3con.c SECItem *buf, PRBool isTLS, void *pwArg) buf 1038 net/third_party/nss/ssl/ssl3con.c buf->data, buf->len)); buf 1065 net/third_party/nss/ssl/ssl3con.c if (isTLS || buf->len != SECKEY_SignatureLen(key)) { buf 1066 net/third_party/nss/ssl/ssl3con.c signature = DSAU_DecodeDerSigToLen(buf, SECKEY_SignatureLen(key)); buf 1071 net/third_party/nss/ssl/ssl3con.c buf = signature; buf 1110 net/third_party/nss/ssl/ssl3con.c rv = PK11_Verify(key, buf, &hashItem, pwArg); buf 1112 net/third_party/nss/ssl/ssl3con.c rv = VFY_VerifyDigestDirect(&hashItem, key, buf, encAlg, hashAlg, buf 1214 net/third_party/nss/ssl/ssl3con.c PRUint8 buf[2*SSL3_RANDOM_LENGTH + 2 + 4096/8 + 2 + 4096/8]; buf 1217 net/third_party/nss/ssl/ssl3con.c if (bufLen <= sizeof buf) { buf 1218 net/third_party/nss/ssl/ssl3con.c hashBuf = buf; buf 1256 net/third_party/nss/ssl/ssl3con.c if (hashBuf != buf && hashBuf != NULL) buf 1273 net/third_party/nss/ssl/ssl3con.c PRUint8 buf[2*SSL3_RANDOM_LENGTH + 2 + 4096/8 + 2 + 4096/8]; buf 1276 net/third_party/nss/ssl/ssl3con.c if (bufLen <= sizeof buf) { buf 1277 net/third_party/nss/ssl/ssl3con.c hashBuf = buf; buf 1320 net/third_party/nss/ssl/ssl3con.c if (hashBuf != buf && hashBuf != NULL) buf 2678 net/third_party/nss/ssl/ssl3con.c rv = PK11_GenerateRandom(wrBuf->buf + headerLen, ivLen); buf 2684 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen, buf 2687 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen, buf 2699 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen + ivLen, &outlen, buf 2703 net/third_party/nss/ssl/ssl3con.c pIn = wrBuf->buf + headerLen + ivLen; buf 2725 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen, /* output */ buf 2740 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen + ivLen + contentLen, &macLen); buf 2767 net/third_party/nss/ssl/ssl3con.c pBuf = &wrBuf->buf[headerLen + ivLen + fragLen - 1]; buf 2784 net/third_party/nss/ssl/ssl3con.c memmove(wrBuf->buf + headerLen + ivLen + p1Len, pIn + p1Len, buf 2790 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen + ivLen, /* output */ buf 2804 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen + ivLen + p1Len, buf 2807 net/third_party/nss/ssl/ssl3con.c wrBuf->buf + headerLen + ivLen + p1Len, buf 2821 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[0] = type; buf 2826 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[1] = MSB(version); buf 2827 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[2] = LSB(version); buf 2828 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[3] = (unsigned char)(cwSpec->write_seq_num.high >> 24); buf 2829 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[4] = (unsigned char)(cwSpec->write_seq_num.high >> 16); buf 2830 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[5] = (unsigned char)(cwSpec->write_seq_num.high >> 8); buf 2831 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[6] = (unsigned char)(cwSpec->write_seq_num.high >> 0); buf 2832 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[7] = (unsigned char)(cwSpec->write_seq_num.low >> 24); buf 2833 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[8] = (unsigned char)(cwSpec->write_seq_num.low >> 16); buf 2834 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[9] = (unsigned char)(cwSpec->write_seq_num.low >> 8); buf 2835 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[10] = (unsigned char)(cwSpec->write_seq_num.low >> 0); buf 2836 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[11] = MSB(cipherBytes); buf 2837 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[12] = LSB(cipherBytes); buf 2844 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[1] = MSB(version); buf 2845 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[2] = LSB(version); buf 2846 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[3] = MSB(cipherBytes); buf 2847 net/third_party/nss/ssl/ssl3con.c wrBuf->buf[4] = LSB(cipherBytes); buf 2979 net/third_party/nss/ssl/ssl3con.c wrBuf->buf, wrBuf->len)); buf 2981 net/third_party/nss/ssl/ssl3con.c secondRecord.buf = wrBuf->buf + wrBuf->len; buf 2992 net/third_party/nss/ssl/ssl3con.c secondRecord.buf, secondRecord.len)); buf 3012 net/third_party/nss/ssl/ssl3con.c wrBuf->buf, wrBuf->len)); buf 3033 net/third_party/nss/ssl/ssl3con.c rv = ssl_SaveWriteData(ss, wrBuf->buf, wrBuf->len); buf 3055 net/third_party/nss/ssl/ssl3con.c sent = ssl_DefSend(ss, wrBuf->buf, wrBuf->len, buf 3075 net/third_party/nss/ssl/ssl3con.c rv = ssl_SaveWriteData(ss, wrBuf->buf + sent, wrBuf->len); buf 3219 net/third_party/nss/ssl/ssl3con.c if (!ss->sec.ci.sendBuf.buf || !ss->sec.ci.sendBuf.len) buf 3228 net/third_party/nss/ssl/ssl3con.c rv = ssl3_SendRecord(ss, 0, content_handshake, ss->sec.ci.sendBuf.buf, buf 3432 net/third_party/nss/ssl/ssl3con.c ssl3_HandleAlert(sslSocket *ss, sslBuffer *buf) buf 3443 net/third_party/nss/ssl/ssl3con.c if (buf->len != 2) { buf 3448 net/third_party/nss/ssl/ssl3con.c level = (SSL3AlertLevel)buf->buf[0]; buf 3449 net/third_party/nss/ssl/ssl3con.c desc = (SSL3AlertDescription)buf->buf[1]; buf 3450 net/third_party/nss/ssl/ssl3con.c buf->len = 0; buf 3611 net/third_party/nss/ssl/ssl3con.c ssl3_HandleChangeCipherSpecs(sslSocket *ss, sslBuffer *buf) buf 3629 net/third_party/nss/ssl/ssl3con.c if(buf->len != 1) { buf 3634 net/third_party/nss/ssl/ssl3con.c change = (SSL3ChangeCipherSpecChoice)buf->buf[0]; buf 3641 net/third_party/nss/ssl/ssl3con.c buf->len = 0; buf 4074 net/third_party/nss/ssl/ssl3con.c if (ssl3_UpdateHandshakeHashes(ss, ss->ssl3.hs.messages.buf, buf 4079 net/third_party/nss/ssl/ssl3con.c PORT_Free(ss->ssl3.hs.messages.buf); buf 4080 net/third_party/nss/ssl/ssl3con.c ss->ssl3.hs.messages.buf = NULL; buf 4208 net/third_party/nss/ssl/ssl3con.c PORT_Memcpy(ss->sec.ci.sendBuf.buf + ss->sec.ci.sendBuf.len, src, buf 4220 net/third_party/nss/ssl/ssl3con.c PORT_Memcpy(ss->sec.ci.sendBuf.buf + ss->sec.ci.sendBuf.len, src, bytes); buf 4386 net/third_party/nss/ssl/ssl3con.c PRUint8 *buf = *b; buf 4400 net/third_party/nss/ssl/ssl3con.c num = (num << 8) + buf[i]; buf 4942 net/third_party/nss/ssl/ssl3con.c ssl3_StartHandshakeHash(sslSocket *ss, unsigned char * buf, int length) buf 4963 net/third_party/nss/ssl/ssl3con.c rv = ssl3_UpdateHandshakeHashes(ss, buf, length); buf 6024 net/third_party/nss/ssl/ssl3con.c char buf[4 + 8*2 + 1 + 48*2 + 1]; buf 6026 net/third_party/nss/ssl/ssl3con.c strcpy(buf, "RSA "); buf 6027 net/third_party/nss/ssl/ssl3con.c hexEncode(buf + 4, enc_pms.data, 8); buf 6028 net/third_party/nss/ssl/ssl3con.c buf[20] = ' '; buf 6029 net/third_party/nss/ssl/ssl3con.c hexEncode(buf + 21, keyData->data, 48); buf 6030 net/third_party/nss/ssl/ssl3con.c buf[sizeof(buf) - 1] = '\n'; buf 6032 net/third_party/nss/ssl/ssl3con.c fwrite(buf, sizeof(buf), 1, ssl_keylog_iob); buf 6249 net/third_party/nss/ssl/ssl3con.c SECItem buf = {siBuffer, NULL, 0}; buf 6281 net/third_party/nss/ssl/ssl3con.c &hashes, ss->ssl3.platformClientKey, &buf, isTLS, keyType); buf 6287 net/third_party/nss/ssl/ssl3con.c rv = ssl3_SignHashes(&hashes, ss->ssl3.clientPrivateKey, &buf, isTLS); buf 6310 net/third_party/nss/ssl/ssl3con.c len = buf.len + 2 + (isTLS12 ? 2 : 0); buf 6329 net/third_party/nss/ssl/ssl3con.c rv = ssl3_AppendHandshakeVariable(ss, buf.data, buf.len, 2); buf 6335 net/third_party/nss/ssl/ssl3con.c if (buf.data) buf 6336 net/third_party/nss/ssl/ssl3con.c PORT_Free(buf.data); buf 10709 net/third_party/nss/ssl/ssl3con.c char buf[14 /* "CLIENT_RANDOM " */ + buf 10740 net/third_party/nss/ssl/ssl3con.c memcpy(buf, "CLIENT_RANDOM ", 14); buf 10742 net/third_party/nss/ssl/ssl3con.c hexEncode(buf + j, ss->ssl3.hs.client_random.rand, SSL3_RANDOM_LENGTH); buf 10744 net/third_party/nss/ssl/ssl3con.c buf[j++] = ' '; buf 10745 net/third_party/nss/ssl/ssl3con.c hexEncode(buf + j, keyData->data, 48); buf 10747 net/third_party/nss/ssl/ssl3con.c buf[j++] = '\n'; buf 10749 net/third_party/nss/ssl/ssl3con.c PORT_Assert(j == sizeof(buf)); buf 10753 net/third_party/nss/ssl/ssl3con.c if (fwrite(buf, sizeof(buf), 1, ssl_keylog_iob) != 1) buf 11564 net/third_party/nss/ssl/ssl3con.c sslBuffer *buf = &ss->ssl3.hs.msgState; /* do not lose the original buffer pointer */ buf 11570 net/third_party/nss/ssl/ssl3con.c if (buf->buf == NULL) { buf 11571 net/third_party/nss/ssl/ssl3con.c *buf = *origBuf; buf 11573 net/third_party/nss/ssl/ssl3con.c while (buf->len > 0) { buf 11576 net/third_party/nss/ssl/ssl3con.c t = *(buf->buf++); buf 11577 net/third_party/nss/ssl/ssl3con.c buf->len--; buf 11605 net/third_party/nss/ssl/ssl3con.c if (ss->ssl3.hs.msg_body.len == 0 && buf->len >= ss->ssl3.hs.msg_len) { buf 11607 net/third_party/nss/ssl/ssl3con.c rv = ssl3_HandleHandshakeMessage(ss, buf->buf, ss->ssl3.hs.msg_len); buf 11615 net/third_party/nss/ssl/ssl3con.c buf->buf += ss->ssl3.hs.msg_len; buf 11616 net/third_party/nss/ssl/ssl3con.c buf->len -= ss->ssl3.hs.msg_len; buf 11627 net/third_party/nss/ssl/ssl3con.c bytes = PR_MIN(buf->len, ss->ssl3.hs.msg_len - ss->ssl3.hs.msg_body.len); buf 11636 net/third_party/nss/ssl/ssl3con.c PORT_Memcpy(ss->ssl3.hs.msg_body.buf + ss->ssl3.hs.msg_body.len, buf 11637 net/third_party/nss/ssl/ssl3con.c buf->buf, bytes); buf 11639 net/third_party/nss/ssl/ssl3con.c buf->buf += bytes; buf 11640 net/third_party/nss/ssl/ssl3con.c buf->len -= bytes; buf 11647 net/third_party/nss/ssl/ssl3con.c ss, ss->ssl3.hs.msg_body.buf, ss->ssl3.hs.msg_len); buf 11662 net/third_party/nss/ssl/ssl3con.c PORT_Assert(buf->len == 0); buf 11669 net/third_party/nss/ssl/ssl3con.c buf->buf = NULL; /* not a leak. */ buf 11724 net/third_party/nss/ssl/ssl3con.c paddingLength = plaintext->buf[plaintext->len-1]; buf 11749 net/third_party/nss/ssl/ssl3con.c paddingLength = plaintext->buf[plaintext->len-1]; buf 11774 net/third_party/nss/ssl/ssl3con.c unsigned char b = plaintext->buf[plaintext->len-1-i]; buf 11836 net/third_party/nss/ssl/ssl3con.c b = plaintext->buf[i]; buf 11978 net/third_party/nss/ssl/ssl3con.c if (cText->buf->len < minLength) { buf 12000 net/third_party/nss/ssl/ssl3con.c PRINT_BUF(80, (ss, "IV (ciphertext):", cText->buf->buf, ivLen)); buf 12007 net/third_party/nss/ssl/ssl3con.c sizeof(iv), cText->buf->buf, ivLen); buf 12015 net/third_party/nss/ssl/ssl3con.c temp_buf.buf = NULL; buf 12035 net/third_party/nss/ssl/ssl3con.c PRINT_BUF(80, (ss, "ciphertext:", cText->buf->buf + ivLen, buf 12036 net/third_party/nss/ssl/ssl3con.c cText->buf->len - ivLen)); buf 12040 net/third_party/nss/ssl/ssl3con.c if (isTLS && cText->buf->len - ivLen > (MAX_FRAGMENT_LENGTH + 2048)) { buf 12054 net/third_party/nss/ssl/ssl3con.c cText->buf->len - cipher_def->explicit_nonce_size - buf 12063 net/third_party/nss/ssl/ssl3con.c plaintext->buf, /* out */ buf 12066 net/third_party/nss/ssl/ssl3con.c cText->buf->buf, /* in */ buf 12067 net/third_party/nss/ssl/ssl3con.c cText->buf->len, /* inlen */ buf 12074 net/third_party/nss/ssl/ssl3con.c ((cText->buf->len - ivLen) % cipher_def->block_size) != 0) { buf 12080 net/third_party/nss/ssl/ssl3con.c crSpec->decodeContext, plaintext->buf, (int *)&plaintext->len, buf 12081 net/third_party/nss/ssl/ssl3con.c plaintext->space, cText->buf->buf + ivLen, cText->buf->len - ivLen); buf 12086 net/third_party/nss/ssl/ssl3con.c PRINT_BUF(80, (ss, "cleartext:", plaintext->buf, plaintext->len)); buf 12113 net/third_party/nss/ssl/ssl3con.c plaintext->buf, plaintext->len, originalLen, buf 12131 net/third_party/nss/ssl/ssl3con.c plaintext->buf, plaintext->len, hash, &hashBytes); buf 12135 net/third_party/nss/ssl/ssl3con.c givenHash = plaintext->buf + plaintext->len; buf 12191 net/third_party/nss/ssl/ssl3con.c PORT_Free(plaintext->buf); buf 12197 net/third_party/nss/ssl/ssl3con.c databuf->buf, buf 12200 net/third_party/nss/ssl/ssl3con.c plaintext->buf, buf 12219 net/third_party/nss/ssl/ssl3con.c unsigned int len = ((unsigned int) plaintext->buf[1] << 16) | buf 12220 net/third_party/nss/ssl/ssl3con.c ((unsigned int) plaintext->buf[2] << 8) | buf 12221 net/third_party/nss/ssl/ssl3con.c (unsigned int) plaintext->buf[3]; buf 12228 net/third_party/nss/ssl/ssl3con.c PORT_Free(plaintext->buf); buf 12233 net/third_party/nss/ssl/ssl3con.c PORT_Free(plaintext->buf); buf 12389 net/third_party/nss/ssl/ssl3con.c PORT_Assert(!ss->ssl3.hs.messages.buf && !ss->ssl3.hs.messages.space); buf 12390 net/third_party/nss/ssl/ssl3con.c ss->ssl3.hs.messages.buf = NULL; buf 12821 net/third_party/nss/ssl/ssl3con.c if (ss->ssl3.hs.messages.buf) { buf 12822 net/third_party/nss/ssl/ssl3con.c PORT_Free(ss->ssl3.hs.messages.buf); buf 12823 net/third_party/nss/ssl/ssl3con.c ss->ssl3.hs.messages.buf = NULL; buf 12829 net/third_party/nss/ssl/ssl3con.c PORT_Free(ss->ssl3.hs.msg_body.buf); buf 12840 net/third_party/nss/ssl/ssl3con.c if (ss->ssl3.hs.recvdFragments.buf) { buf 12841 net/third_party/nss/ssl/ssl3con.c PORT_Free(ss->ssl3.hs.recvdFragments.buf); buf 231 net/third_party/nss/ssl/ssl3ecc.c PRUint8 buf[2*SSL3_RANDOM_LENGTH + 2 + 1 + 256]; buf 234 net/third_party/nss/ssl/ssl3ecc.c if (bufLen <= sizeof buf) { buf 235 net/third_party/nss/ssl/ssl3ecc.c hashBuf = buf; buf 264 net/third_party/nss/ssl/ssl3ecc.c if (hashBuf != buf) buf 38 net/third_party/nss/ssl/ssl3ext.c static SECStatus ssl3_AppendToItem(SECItem *item, const unsigned char *buf, buf 97 net/third_party/nss/ssl/ssl3ext.c ssl3_AppendToItem(SECItem *item, const unsigned char *buf, PRUint32 bytes) buf 102 net/third_party/nss/ssl/ssl3ext.c PORT_Memcpy(item->data, buf, bytes); buf 1766 net/third_party/nss/ssl/ssl3ext.c ssl3_ConsumeFromItem(SECItem *item, unsigned char **buf, PRUint32 bytes) buf 1771 net/third_party/nss/ssl/ssl3ext.c *buf = item->data; buf 53 net/third_party/nss/ssl/ssl3gthr.c lbp = gs->inbuf.buf; buf 121 net/third_party/nss/ssl/ssl3gthr.c lbp = gs->inbuf.buf; buf 192 net/third_party/nss/ssl/ssl3gthr.c nb = ssl_DefRecv(ss, gs->dtlsPacket.buf, gs->dtlsPacket.space, flags); buf 195 net/third_party/nss/ssl/ssl3gthr.c PRINT_BUF(60, (ss, "raw gather data:", gs->dtlsPacket.buf, nb)); buf 223 net/third_party/nss/ssl/ssl3gthr.c memcpy(gs->hdr, gs->dtlsPacket.buf + gs->dtlsPacketOffset, 13); buf 247 net/third_party/nss/ssl/ssl3gthr.c memcpy(gs->inbuf.buf, gs->dtlsPacket.buf + gs->dtlsPacketOffset, buf 309 net/third_party/nss/ssl/ssl3gthr.c if (ss->ssl3.hs.msgState.buf) { buf 311 net/third_party/nss/ssl/ssl3gthr.c ss->ssl3.hs.msgState.buf = NULL; buf 325 net/third_party/nss/ssl/ssl3gthr.c rv = ssl3_HandleRecord(ss, NULL, &ss->gs.buf); buf 377 net/third_party/nss/ssl/ssl3gthr.c cText.buf = &ss->gs.inbuf; buf 378 net/third_party/nss/ssl/ssl3gthr.c rv = ssl3_HandleRecord(ss, &cText, &ss->gs.buf); buf 383 net/third_party/nss/ssl/ssl3gthr.c if (ss->gs.buf.len > 0) { buf 426 net/third_party/nss/ssl/ssl3gthr.c ss->gs.writeOffset = ss->gs.buf.len; buf 452 net/third_party/nss/ssl/ssl3gthr.c } while (rv > 0 && ss->gs.buf.len == 0); buf 573 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 616 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 671 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 720 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 756 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 871 net/third_party/nss/ssl/sslcon.c out = ss->sec.writeBuf.buf; buf 949 net/third_party/nss/ssl/sslcon.c out = ss->sec.writeBuf.buf; buf 1063 net/third_party/nss/ssl/sslcon.c out = ss->sec.writeBuf.buf; buf 2503 net/third_party/nss/ssl/sslcon.c data = ss->gs.buf.buf + ss->gs.recordOffset; buf 2695 net/third_party/nss/ssl/sslcon.c data = ss->gs.buf.buf + ss->gs.recordOffset; buf 2757 net/third_party/nss/ssl/sslcon.c data = ss->gs.buf.buf + ss->gs.recordOffset; buf 3137 net/third_party/nss/ssl/sslcon.c cp = msg = ss->sec.ci.sendBuf.buf; buf 3229 net/third_party/nss/ssl/sslcon.c data = ss->gs.buf.buf + ss->gs.recordOffset; buf 3337 net/third_party/nss/ssl/sslcon.c data = ss->gs.buf.buf + ss->gs.recordOffset; buf 3554 net/third_party/nss/ssl/sslcon.c msg = ss->sec.ci.sendBuf.buf; buf 56 net/third_party/nss/ssl/ssldef.c int ssl_DefRecv(sslSocket *ss, unsigned char *buf, int len, int flags) buf 61 net/third_party/nss/ssl/ssldef.c rv = lower->methods->recv(lower, (void *)buf, len, flags, ss->rTimeout); buf 79 net/third_party/nss/ssl/ssldef.c int ssl_DefSend(sslSocket *ss, const unsigned char *buf, int len, int flags) buf 94 net/third_party/nss/ssl/ssldef.c int rv = lower->methods->send(lower, (const void *)(buf + sent), buf 118 net/third_party/nss/ssl/ssldef.c int ssl_DefRead(sslSocket *ss, unsigned char *buf, int len) buf 123 net/third_party/nss/ssl/ssldef.c rv = lower->methods->read(lower, (void *)buf, len); buf 131 net/third_party/nss/ssl/ssldef.c int ssl_DefWrite(sslSocket *ss, const unsigned char *buf, int len) buf 137 net/third_party/nss/ssl/ssldef.c int rv = lower->methods->write(lower, (const void *)(buf + sent), buf 79 net/third_party/nss/ssl/sslgathr.c pBuf = gs->buf.buf; buf 173 net/third_party/nss/ssl/sslgathr.c if (gs->count > gs->buf.space) { buf 174 net/third_party/nss/ssl/sslgathr.c err = sslBuffer_Grow(&gs->buf, gs->count); buf 178 net/third_party/nss/ssl/sslgathr.c pBuf = gs->buf.buf; buf 386 net/third_party/nss/ssl/sslgathr.c if (count > gs->buf.space) { buf 387 net/third_party/nss/ssl/sslgathr.c rv = sslBuffer_Grow(&gs->buf, count); buf 406 net/third_party/nss/ssl/sslgathr.c status = sslBuffer_Grow(&gs->buf, 4096); buf 415 net/third_party/nss/ssl/sslgathr.c PORT_ZFree(gs->buf.buf, gs->buf.space); buf 416 net/third_party/nss/ssl/sslgathr.c PORT_Free(gs->inbuf.buf); buf 417 net/third_party/nss/ssl/sslgathr.c PORT_Free(gs->dtlsPacket.buf); buf 197 net/third_party/nss/ssl/sslimpl.h typedef PRInt32 (*sslSendFunc)(sslSocket *ss, const unsigned char *buf, buf 280 net/third_party/nss/ssl/sslimpl.h unsigned char * buf; buf 386 net/third_party/nss/ssl/sslimpl.h sslBuffer buf; /*recvBufLock*/ /* ssl 2 & 3 */ buf 1049 net/third_party/nss/ssl/sslimpl.h sslBuffer * buf; buf 1408 net/third_party/nss/ssl/sslimpl.h extern int ssl_DefRecv(sslSocket *ss, unsigned char *buf, int len, int flags); buf 1409 net/third_party/nss/ssl/sslimpl.h extern int ssl_DefSend(sslSocket *ss, const unsigned char *buf, buf 1411 net/third_party/nss/ssl/sslimpl.h extern int ssl_DefRead(sslSocket *ss, unsigned char *buf, int len); buf 1412 net/third_party/nss/ssl/sslimpl.h extern int ssl_DefWrite(sslSocket *ss, const unsigned char *buf, int len); buf 1426 net/third_party/nss/ssl/sslimpl.h extern int ssl_SocksRecv(sslSocket *ss, unsigned char *buf, int len, int flags); buf 1427 net/third_party/nss/ssl/sslimpl.h extern int ssl_SocksSend(sslSocket *ss, const unsigned char *buf, buf 1429 net/third_party/nss/ssl/sslimpl.h extern int ssl_SocksRead(sslSocket *ss, unsigned char *buf, int len); buf 1430 net/third_party/nss/ssl/sslimpl.h extern int ssl_SocksWrite(sslSocket *ss, const unsigned char *buf, int len); buf 1435 net/third_party/nss/ssl/sslimpl.h extern int ssl_SecureRecv(sslSocket *ss, unsigned char *buf, buf 1437 net/third_party/nss/ssl/sslimpl.h extern int ssl_SecureSend(sslSocket *ss, const unsigned char *buf, buf 1439 net/third_party/nss/ssl/sslimpl.h extern int ssl_SecureRead(sslSocket *ss, unsigned char *buf, int len); buf 1440 net/third_party/nss/ssl/sslimpl.h extern int ssl_SecureWrite(sslSocket *ss, const unsigned char *buf, int len); buf 1658 net/third_party/nss/ssl/sslimpl.h sslSocket *ss, unsigned char *buf, int length); buf 1817 net/third_party/nss/ssl/sslimpl.h SECItem *buf, PRBool isTLS); buf 1819 net/third_party/nss/ssl/sslimpl.h CERTCertificate *cert, SECItem *buf, PRBool isTLS, buf 1947 net/third_party/nss/ssl/sslimpl.h PlatformKey key, SECItem *buf, buf 204 net/third_party/nss/ssl/sslplatf.c ssl3_CngPlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf, buf 284 net/third_party/nss/ssl/sslplatf.c buf->data = (unsigned char *)PORT_Alloc(signatureLen); buf 285 net/third_party/nss/ssl/sslplatf.c if (!buf->data) { buf 291 net/third_party/nss/ssl/sslplatf.c (PBYTE)buf->data, signatureLen, buf 298 net/third_party/nss/ssl/sslplatf.c buf->len = signatureLen; buf 304 net/third_party/nss/ssl/sslplatf.c rv = DSAU_EncodeDerSigWithLen(&derSig, buf, buf->len); buf 306 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); /* discard unencoded signature. */ buf 307 net/third_party/nss/ssl/sslplatf.c *buf = derSig; /* give caller encoded signature. */ buf 315 net/third_party/nss/ssl/sslplatf.c PRINT_BUF(60, (NULL, "signed hashes", buf->data, buf->len)); buf 318 net/third_party/nss/ssl/sslplatf.c if (rv != SECSuccess && buf->data) { buf 319 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); buf 320 net/third_party/nss/ssl/sslplatf.c buf->data = NULL; buf 321 net/third_party/nss/ssl/sslplatf.c buf->len = 0; buf 328 net/third_party/nss/ssl/sslplatf.c ssl3_CAPIPlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf, buf 341 net/third_party/nss/ssl/sslplatf.c buf->data = NULL; buf 416 net/third_party/nss/ssl/sslplatf.c buf->data = (unsigned char *)PORT_Alloc(signatureLen); buf 417 net/third_party/nss/ssl/sslplatf.c if (!buf->data) buf 421 net/third_party/nss/ssl/sslplatf.c (BYTE*)buf->data, &signatureLen)) { buf 425 net/third_party/nss/ssl/sslplatf.c buf->len = signatureLen; buf 428 net/third_party/nss/ssl/sslplatf.c for (i = 0; i < buf->len / 2; ++i) { buf 429 net/third_party/nss/ssl/sslplatf.c unsigned char tmp = buf->data[i]; buf 430 net/third_party/nss/ssl/sslplatf.c buf->data[i] = buf->data[buf->len - 1 - i]; buf 431 net/third_party/nss/ssl/sslplatf.c buf->data[buf->len - 1 - i] = tmp; buf 437 net/third_party/nss/ssl/sslplatf.c rv = DSAU_EncodeDerSigWithLen(&derSig, buf, buf->len); buf 439 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); /* discard unencoded signature. */ buf 440 net/third_party/nss/ssl/sslplatf.c *buf = derSig; /* give caller encoded signature. */ buf 448 net/third_party/nss/ssl/sslplatf.c PRINT_BUF(60, (NULL, "signed hashes", buf->data, buf->len)); buf 452 net/third_party/nss/ssl/sslplatf.c if (rv != SECSuccess && buf->data) { buf 453 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); buf 454 net/third_party/nss/ssl/sslplatf.c buf->data = NULL; buf 460 net/third_party/nss/ssl/sslplatf.c ssl3_PlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf, buf 464 net/third_party/nss/ssl/sslplatf.c return ssl3_CngPlatformSignHashes(hash, key, buf, isTLS, keyType); buf 466 net/third_party/nss/ssl/sslplatf.c return ssl3_CAPIPlatformSignHashes(hash, key, buf, isTLS, keyType); buf 578 net/third_party/nss/ssl/sslplatf.c ssl3_PlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf, buf 599 net/third_party/nss/ssl/sslplatf.c buf->data = NULL; buf 677 net/third_party/nss/ssl/sslplatf.c buf->data = (unsigned char *)PORT_Alloc(signatureLen); buf 678 net/third_party/nss/ssl/sslplatf.c if (!buf->data) buf 693 net/third_party/nss/ssl/sslplatf.c signatureData.Data = (uint8*)buf->data; buf 722 net/third_party/nss/ssl/sslplatf.c buf->len = signatureData.Length; buf 725 net/third_party/nss/ssl/sslplatf.c SECItem* rawSig = DSAU_DecodeDerSigToLen(buf, rawDsaLen); buf 727 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); /* discard encoded signature. */ buf 728 net/third_party/nss/ssl/sslplatf.c *buf = *rawSig; /* give caller unencoded signature. */ buf 736 net/third_party/nss/ssl/sslplatf.c PRINT_BUF(60, (NULL, "signed hashes", buf->data, buf->len)); buf 745 net/third_party/nss/ssl/sslplatf.c if (rv != SECSuccess && buf->data) { buf 746 net/third_party/nss/ssl/sslplatf.c PORT_Free(buf->data); buf 747 net/third_party/nss/ssl/sslplatf.c buf->data = NULL; buf 758 net/third_party/nss/ssl/sslplatf.c ssl3_PlatformSignHashes(SSL3Hashes *hash, PlatformKey key, SECItem *buf, buf 503 net/third_party/nss/ssl/sslsecur.c if (b->buf) { buf 504 net/third_party/nss/ssl/sslsecur.c newBuf = (unsigned char *) PORT_Realloc(b->buf, newLen); buf 513 net/third_party/nss/ssl/sslsecur.c b->buf = newBuf; buf 528 net/third_party/nss/ssl/sslsecur.c PORT_Memcpy(b->buf + b->len, data, len); buf 566 net/third_party/nss/ssl/sslsecur.c rv = ssl_DefSend(ss, ss->pendingBuf.buf, ss->pendingBuf.len, 0); buf 573 net/third_party/nss/ssl/sslsecur.c PORT_Memmove(ss->pendingBuf.buf, ss->pendingBuf.buf + rv, buf 659 net/third_party/nss/ssl/sslsecur.c PORT_Memcpy(out, ss->gs.buf.buf + ss->gs.readOffset, amount); buf 1042 net/third_party/nss/ssl/sslsecur.c PORT_ZFree(sec->ci.sendBuf.buf, sec->ci.sendBuf.space); buf 1059 net/third_party/nss/ssl/sslsecur.c PORT_ZFree(sec->writeBuf.buf, sec->writeBuf.space); buf 1060 net/third_party/nss/ssl/sslsecur.c sec->writeBuf.buf = 0; buf 1180 net/third_party/nss/ssl/sslsecur.c ssl_SecureRecv(sslSocket *ss, unsigned char *buf, int len, int flags) buf 1223 net/third_party/nss/ssl/sslsecur.c rv = DoRecv(ss, (unsigned char*) buf, len, flags); buf 1230 net/third_party/nss/ssl/sslsecur.c ssl_SecureRead(sslSocket *ss, unsigned char *buf, int len) buf 1232 net/third_party/nss/ssl/sslsecur.c return ssl_SecureRecv(ss, buf, len, 0); buf 1237 net/third_party/nss/ssl/sslsecur.c ssl_SecureSend(sslSocket *ss, const unsigned char *buf, int len, int flags) buf 1300 net/third_party/nss/ssl/sslsecur.c PORT_Assert(buf != NULL); buf 1301 net/third_party/nss/ssl/sslsecur.c if (!buf) { buf 1323 net/third_party/nss/ssl/sslsecur.c rv = (*ss->sec.send)(ss, buf, len, flags); buf 1338 net/third_party/nss/ssl/sslsecur.c ssl_SecureWrite(sslSocket *ss, const unsigned char *buf, int len) buf 1340 net/third_party/nss/ssl/sslsecur.c return ssl_SecureSend(ss, buf, len, 0); buf 354 net/third_party/nss/ssl/sslsock.c PORT_Free(ss->saveBuf.buf); buf 355 net/third_party/nss/ssl/sslsock.c PORT_Free(ss->pendingBuf.buf); buf 1540 net/third_party/nss/ssl/sslsock.c SSL_GetNextProto(PRFileDesc *fd, SSLNextProtoState *state, unsigned char *buf, buf 1551 net/third_party/nss/ssl/sslsock.c if (!state || !buf || !bufLen) { buf 1564 net/third_party/nss/ssl/sslsock.c PORT_Memcpy(buf, ss->ssl3.nextProto.data, ss->ssl3.nextProto.len); buf 2213 net/third_party/nss/ssl/sslsock.c ssl_Recv(PRFileDesc *fd, void *buf, PRInt32 len, PRIntn flags, buf 2228 net/third_party/nss/ssl/sslsock.c rv = (*ss->ops->recv)(ss, (unsigned char*)buf, len, flags); buf 2234 net/third_party/nss/ssl/sslsock.c ssl_Send(PRFileDesc *fd, const void *buf, PRInt32 len, PRIntn flags, buf 2249 net/third_party/nss/ssl/sslsock.c rv = (*ss->ops->send)(ss, (const unsigned char*)buf, len, flags); buf 2255 net/third_party/nss/ssl/sslsock.c ssl_Read(PRFileDesc *fd, void *buf, PRInt32 len) buf 2269 net/third_party/nss/ssl/sslsock.c rv = (*ss->ops->read)(ss, (unsigned char*)buf, len); buf 2275 net/third_party/nss/ssl/sslsock.c ssl_Write(PRFileDesc *fd, const void *buf, PRInt32 len) buf 2289 net/third_party/nss/ssl/sslsock.c rv = (*ss->ops->write)(ss, (const unsigned char*)buf, len); buf 2576 net/third_party/nss/ssl/sslsock.c char buf[MAX_FRAGMENT_LENGTH]; buf 2584 net/third_party/nss/ssl/sslsock.c #define K16 sizeof(buf) buf 2618 net/third_party/nss/ssl/sslsock.c PORT_Memcpy(buf, myIov.iov_base, myIov.iov_len); buf 2625 net/third_party/nss/ssl/sslsock.c PORT_Memcpy(buf + bufLen, myIov.iov_base, toCopy); buf 2631 net/third_party/nss/ssl/sslsock.c SEND( buf, bufLen ); buf 2662 net/third_party/nss/ssl/sslsock.c PORT_Memcpy(buf, myIov.iov_base, myIov.iov_len); buf 2666 net/third_party/nss/ssl/sslsock.c PORT_Memcpy(buf + bufLen, myIov.iov_base, addLen); buf 2686 net/third_party/nss/ssl/sslsock.c SEND( buf, bufLen ); buf 2756 net/third_party/nss/ssl/sslsock.c ssl_RecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, buf 2765 net/third_party/nss/ssl/sslsock.c ssl_SendTo(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, buf 39 net/third_party/nss/ssl/ssltrace.c char buf[80]; buf 49 net/third_party/nss/ssl/ssltrace.c memset(buf, ' ', sizeof buf); buf 50 net/third_party/nss/ssl/ssltrace.c bp = buf; buf 51 net/third_party/nss/ssl/ssltrace.c ap = buf + 50; buf 58 net/third_party/nss/ssl/ssltrace.c if (ap - buf >= 66) { buf 60 net/third_party/nss/ssl/ssltrace.c SSL_TRACE((" %s", buf)); buf 61 net/third_party/nss/ssl/ssltrace.c memset(buf, ' ', sizeof buf); buf 62 net/third_party/nss/ssl/ssltrace.c bp = buf; buf 63 net/third_party/nss/ssl/ssltrace.c ap = buf + 50; buf 66 net/third_party/nss/ssl/ssltrace.c if (bp > buf) { buf 68 net/third_party/nss/ssl/ssltrace.c SSL_TRACE((" %s", buf)); buf 100 net/third_party/nss/ssl/ssltrace.c char buf[80]; buf 110 net/third_party/nss/ssl/ssltrace.c bp = buf; buf 116 net/third_party/nss/ssl/ssltrace.c if (bp + 4 > buf + 50) { buf 120 net/third_party/nss/ssl/ssltrace.c SSL_GETPID(), ss->fd, buf)); buf 122 net/third_party/nss/ssl/ssltrace.c SSL_TRACE(("%d: SSL: %s", SSL_GETPID(), buf)); buf 124 net/third_party/nss/ssl/ssltrace.c bp = buf; buf 127 net/third_party/nss/ssl/ssltrace.c if (bp > buf) { buf 131 net/third_party/nss/ssl/ssltrace.c SSL_GETPID(), ss->fd, buf)); buf 133 net/third_party/nss/ssl/ssltrace.c SSL_TRACE(("%d: SSL: %s", SSL_GETPID(), buf)); buf 231 net/third_party/nss/ssl/ssltrace.c char buf[2000]; buf 236 net/third_party/nss/ssl/ssltrace.c PR_vsnprintf(buf, sizeof(buf), format, args); buf 239 net/third_party/nss/ssl/ssltrace.c fputs(buf, ssl_trace_iob); buf 1283 net/tools/balsa/balsa_frame.cc static const signed char buf[] = { buf 1320 net/tools/balsa/balsa_frame.cc const signed char addition = buf[static_cast<int>(c)]; buf 89 net/tools/balsa/balsa_headers.h BufferBlock(char* buf, size_t size, size_t free) : buf 90 net/tools/balsa/balsa_headers.h buffer(buf), buffer_size(size), bytes_free(free) {} buf 28 net/tools/dump_cache/cache_dumper.cc net::IOBuffer* buf, int buf_len, buf 30 net/tools/dump_cache/cache_dumper.cc return entry->WriteData(index, offset, buf, buf_len, callback, false); buf 157 net/tools/dump_cache/cache_dumper.cc net::IOBuffer* buf, int buf_len, buf 168 net/tools/dump_cache/cache_dumper.cc if (!net::HttpCache::ParseResponseInfo(buf->data(), buf_len, buf 199 net/tools/dump_cache/cache_dumper.cc data = buf->data(); buf 37 net/tools/dump_cache/cache_dumper.h net::IOBuffer* buf, int buf_len, buf 53 net/tools/dump_cache/cache_dumper.h net::IOBuffer* buf, int buf_len, buf 70 net/tools/dump_cache/cache_dumper.h net::IOBuffer* buf, int buf_len, buf 505 net/tools/dump_cache/upgrade_win.cc scoped_refptr<net::WrappedIOBuffer> buf = buf 508 net/tools/dump_cache/upgrade_win.cc entry_, stream_, offset_, buf, read_size, buf 835 net/tools/dump_cache/upgrade_win.cc scoped_refptr<net::WrappedIOBuffer> buf = buf 837 net/tools/dump_cache/upgrade_win.cc int ret = entry_->ReadData(stream, input_->msg.arg3, buf, size, buf 19 net/tools/dump_cache/url_to_filename_encoder.cc int HexDigitsPrefix(const char* buf, int num_digits) { buf 21 net/tools/dump_cache/url_to_filename_encoder.cc if (!IsHexDigit(buf[i])) buf 103 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 105 net/tools/epoll_server/epoll_server.cc << " in pipe(): " << strerror_r(saved_errno, buf, sizeof(buf)); buf 232 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 235 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 243 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 246 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 563 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 565 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 581 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 583 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 601 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 603 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 679 net/tools/epoll_server/epoll_server.cc char buf[kErrorBufferSize]; buf 681 net/tools/epoll_server/epoll_server.cc << strerror_r(saved_errno, buf, sizeof(buf)); buf 103 net/tools/flip_server/spdy_ssl.cc char buf[128]; // this buffer must be at least 120 chars long. buf 106 net/tools/flip_server/spdy_ssl.cc ERR_error_string_n(error_num, buf, sizeof(buf)); buf 107 net/tools/flip_server/spdy_ssl.cc LOG(ERROR) << buf; buf 334 net/tools/quic/quic_client.cc char buf[2 * kMaxPacketSize]; buf 339 net/tools/quic/quic_client.cc int bytes_read = ReadPacket(buf, arraysize(buf), &server_address, &client_ip); buf 345 net/tools/quic/quic_client.cc QuicEncryptedPacket packet(buf, bytes_read, false); buf 229 net/tools/quic/quic_server.cc char buf[2 * kMaxPacketSize]; buf 234 net/tools/quic/quic_server.cc QuicSocketUtils::ReadPacket(fd, buf, arraysize(buf), buf 242 net/tools/quic/quic_server.cc QuicEncryptedPacket packet(buf, bytes_read, false); buf 39 net/udp/datagram_server_socket.h virtual int RecvFrom(IOBuffer* buf, buf 53 net/udp/datagram_server_socket.h virtual int SendTo(IOBuffer* buf, buf 25 net/udp/udp_client_socket.cc int UDPClientSocket::Read(IOBuffer* buf, buf 28 net/udp/udp_client_socket.cc return socket_.Read(buf, buf_len, callback); buf 31 net/udp/udp_client_socket.cc int UDPClientSocket::Write(IOBuffer* buf, buf 34 net/udp/udp_client_socket.cc return socket_.Write(buf, buf_len, callback); buf 28 net/udp/udp_client_socket.h virtual int Read(IOBuffer* buf, int buf_len, buf 30 net/udp/udp_client_socket.h virtual int Write(IOBuffer* buf, int buf_len, buf 26 net/udp/udp_server_socket.cc int UDPServerSocket::RecvFrom(IOBuffer* buf, buf 30 net/udp/udp_server_socket.cc return socket_.RecvFrom(buf, buf_len, address, callback); buf 33 net/udp/udp_server_socket.cc int UDPServerSocket::SendTo(IOBuffer* buf, buf 37 net/udp/udp_server_socket.cc return socket_.SendTo(buf, buf_len, address, callback); buf 26 net/udp/udp_server_socket.h virtual int RecvFrom(IOBuffer* buf, buf 30 net/udp/udp_server_socket.h virtual int SendTo(IOBuffer* buf, buf 161 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::Read(IOBuffer* buf, buf 164 net/udp/udp_socket_libevent.cc return RecvFrom(buf, buf_len, NULL, callback); buf 167 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::RecvFrom(IOBuffer* buf, buf 178 net/udp/udp_socket_libevent.cc int nread = InternalRecvFrom(buf, buf_len, address); buf 191 net/udp/udp_socket_libevent.cc read_buf_ = buf; buf 198 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::Write(IOBuffer* buf, buf 201 net/udp/udp_socket_libevent.cc return SendToOrWrite(buf, buf_len, NULL, callback); buf 204 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::SendTo(IOBuffer* buf, buf 208 net/udp/udp_socket_libevent.cc return SendToOrWrite(buf, buf_len, &address, callback); buf 211 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::SendToOrWrite(IOBuffer* buf, buf 221 net/udp/udp_socket_libevent.cc int result = InternalSendTo(buf, buf_len, address); buf 234 net/udp/udp_socket_libevent.cc write_buf_ = buf; buf 463 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::InternalRecvFrom(IOBuffer* buf, int buf_len, buf 472 net/udp/udp_socket_libevent.cc buf->data(), buf 486 net/udp/udp_socket_libevent.cc LogRead(result, buf->data(), storage.addr_len, storage.addr); buf 490 net/udp/udp_socket_libevent.cc int UDPSocketLibevent::InternalSendTo(IOBuffer* buf, int buf_len, buf 506 net/udp/udp_socket_libevent.cc buf->data(), buf 514 net/udp/udp_socket_libevent.cc LogWrite(result, buf->data(), address); buf 57 net/udp/udp_socket_libevent.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 62 net/udp/udp_socket_libevent.h int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 77 net/udp/udp_socket_libevent.h int RecvFrom(IOBuffer* buf, buf 91 net/udp/udp_socket_libevent.h int SendTo(IOBuffer* buf, buf 227 net/udp/udp_socket_libevent.h int SendToOrWrite(IOBuffer* buf, buf 233 net/udp/udp_socket_libevent.h int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); buf 234 net/udp/udp_socket_libevent.h int InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address); buf 253 net/udp/udp_socket_win.cc int UDPSocketWin::Read(IOBuffer* buf, buf 256 net/udp/udp_socket_win.cc return RecvFrom(buf, buf_len, NULL, callback); buf 259 net/udp/udp_socket_win.cc int UDPSocketWin::RecvFrom(IOBuffer* buf, buf 270 net/udp/udp_socket_win.cc int nread = InternalRecvFrom(buf, buf_len, address); buf 279 net/udp/udp_socket_win.cc int UDPSocketWin::Write(IOBuffer* buf, buf 282 net/udp/udp_socket_win.cc return SendToOrWrite(buf, buf_len, NULL, callback); buf 285 net/udp/udp_socket_win.cc int UDPSocketWin::SendTo(IOBuffer* buf, buf 289 net/udp/udp_socket_win.cc return SendToOrWrite(buf, buf_len, &address, callback); buf 292 net/udp/udp_socket_win.cc int UDPSocketWin::SendToOrWrite(IOBuffer* buf, buf 303 net/udp/udp_socket_win.cc int nwrite = InternalSendTo(buf, buf_len, address); buf 537 net/udp/udp_socket_win.cc int UDPSocketWin::InternalRecvFrom(IOBuffer* buf, int buf_len, buf 544 net/udp/udp_socket_win.cc read_buffer.buf = buf->data(); buf 561 net/udp/udp_socket_win.cc LogRead(result, buf->data()); buf 573 net/udp/udp_socket_win.cc core_->read_iobuffer_ = buf; buf 577 net/udp/udp_socket_win.cc int UDPSocketWin::InternalSendTo(IOBuffer* buf, int buf_len, buf 595 net/udp/udp_socket_win.cc write_buffer.buf = buf->data(); buf 606 net/udp/udp_socket_win.cc LogWrite(result, buf->data(), address); buf 619 net/udp/udp_socket_win.cc core_->write_iobuffer_ = buf; buf 58 net/udp/udp_socket_win.h int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 63 net/udp/udp_socket_win.h int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); buf 78 net/udp/udp_socket_win.h int RecvFrom(IOBuffer* buf, buf 92 net/udp/udp_socket_win.h int SendTo(IOBuffer* buf, buf 195 net/udp/udp_socket_win.h int SendToOrWrite(IOBuffer* buf, buf 201 net/udp/udp_socket_win.h int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); buf 202 net/udp/udp_socket_win.h int InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address); buf 627 net/url_request/url_request.h bool Read(IOBuffer* buf, int max_bytes, int* bytes_read); buf 68 net/url_request/url_request_file_dir_job.cc bool URLRequestFileDirJob::ReadRawData(IOBuffer* buf, int buf_size, buf 76 net/url_request/url_request_file_dir_job.cc if (FillReadBuffer(buf->data(), buf_size, bytes_read)) buf 81 net/url_request/url_request_file_dir_job.cc read_buffer_ = buf; buf 169 net/url_request/url_request_file_dir_job.cc bool URLRequestFileDirJob::FillReadBuffer(char* buf, int buf_size, buf 177 net/url_request/url_request_file_dir_job.cc memcpy(buf, &data_[0], count); buf 32 net/url_request/url_request_file_dir_job.h virtual bool ReadRawData(IOBuffer* buf, buf 54 net/url_request/url_request_file_dir_job.h bool FillReadBuffer(char *buf, int buf_size, int *bytes_read); buf 41 net/url_request/url_request_file_job.h virtual bool ReadRawData(IOBuffer* buf, buf 346 net/url_request/url_request_ftp_job.cc bool URLRequestFtpJob::ReadRawData(IOBuffer* buf, buf 355 net/url_request/url_request_ftp_job.cc rv = ftp_transaction_->Read(buf, buf_size, buf 359 net/url_request/url_request_ftp_job.cc rv = http_transaction_->Read(buf, buf_size, buf 74 net/url_request/url_request_ftp_job.h virtual bool ReadRawData(IOBuffer* buf, buf 1225 net/url_request/url_request_http_job.cc bool URLRequestHttpJob::ReadRawData(IOBuffer* buf, int buf_size, buf 1232 net/url_request/url_request_http_job.cc buf, buf_size, buf 119 net/url_request/url_request_http_job.h virtual bool ReadRawData(IOBuffer* buf, int buf_size, buf 220 net/url_request/url_request_http_job_unittest.cc virtual int ReadResponseBody(IOBuffer* buf, buf 68 net/url_request/url_request_job.cc bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { buf 72 net/url_request/url_request_job.cc DCHECK(buf); buf 81 net/url_request/url_request_job.cc rv = ReadRawDataHelper(buf, buf_size, bytes_read); buf 85 net/url_request/url_request_job.cc filtered_read_buffer_ = buf; buf 529 net/url_request/url_request_job.cc bool URLRequestJob::ReadRawData(IOBuffer* buf, int buf_size, buf 712 net/url_request/url_request_job.cc bool URLRequestJob::ReadRawDataHelper(IOBuffer* buf, int buf_size, buf 720 net/url_request/url_request_job.cc raw_read_buffer_ = buf; buf 721 net/url_request/url_request_job.cc bool rv = ReadRawData(buf, buf_size, bytes_read); buf 103 net/url_request/url_request_job.h bool Read(IOBuffer* buf, int buf_size, int* bytes_read); buf 297 net/url_request/url_request_job.h virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); buf 359 net/url_request/url_request_job.h bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read); buf 46 net/url_request/url_request_simple_job.cc bool URLRequestSimpleJob::ReadRawData(IOBuffer* buf, int buf_size, buf 52 net/url_request/url_request_simple_job.cc memcpy(buf->data(), data_.data() + data_offset_, buf_size); buf 24 net/url_request/url_request_simple_job.h virtual bool ReadRawData(IOBuffer* buf, buf 217 net/url_request/url_request_test_job.cc bool URLRequestTestJob::ReadRawData(IOBuffer* buf, int buf_size, buf 220 net/url_request/url_request_test_job.cc async_buf_ = buf; buf 237 net/url_request/url_request_test_job.cc memcpy(buf->data(), &response_data_.c_str()[offset_], to_read); buf 113 net/url_request/url_request_test_job.h virtual bool ReadRawData(IOBuffer* buf, buf 4807 net/url_request/url_request_unittest.cc scoped_ptr<char[]> buf(new char[size]); buf 4809 net/url_request/url_request_unittest.cc ASSERT_EQ(size, base::ReadFile(path, buf.get(), size)); buf 4818 net/url_request/url_request_unittest.cc EXPECT_EQ(std::string(&buf[0], size), d.data_received()); buf 76 net/url_request/view_cache_helper.cc void ViewCacheHelper::HexDump(const char *buf, size_t buf_len, buf 86 net/url_request/view_cache_helper.cc p = (const unsigned char *) buf; buf 99 net/url_request/view_cache_helper.cc p = (const unsigned char *) buf; buf 110 net/url_request/view_cache_helper.cc buf += row_max; buf 51 net/url_request/view_cache_helper.h static void HexDump(const char *buf, size_t buf_len, std::string* result); buf 48 net/url_request/view_cache_helper_unittest.cc scoped_refptr<WrappedIOBuffer> buf(new WrappedIOBuffer( buf 53 net/url_request/view_cache_helper_unittest.cc int rv = entry->WriteData(0, 0, buf.get(), len, cb.callback(), true); buf 62 net/url_request/view_cache_helper_unittest.cc scoped_refptr<IOBuffer> buf(new IOBuffer(len)); buf 63 net/url_request/view_cache_helper_unittest.cc memcpy(buf->data(), data.data(), data.length()); buf 66 net/url_request/view_cache_helper_unittest.cc int rv = entry->WriteData(index, 0, buf.get(), len, cb.callback(), true); buf 432 net/websockets/websocket_basic_handshake_stream.cc IOBuffer* buf, buf 435 net/websockets/websocket_basic_handshake_stream.cc return parser()->ReadResponseBody(buf, buf_len, callback); buf 49 net/websockets/websocket_basic_handshake_stream.h virtual int ReadResponseBody(IOBuffer* buf, buf 284 ppapi/cpp/var.cc char buf[256]; buf 286 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(UNDEFINED)"); buf 288 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(NULL)"); buf 290 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), AsBool() ? "Var(true)" : "Var(false)"); buf 292 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(%d)", static_cast<int>(AsInt())); buf 294 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(%f)", AsDouble()); buf 298 ppapi/cpp/var.cc size_t available = sizeof(buf) - decoration; buf 304 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), format, str.c_str()); buf 306 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(OBJECT)"); buf 308 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(ARRAY)"); buf 310 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(DICTIONARY)"); buf 312 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)"); buf 314 ppapi/cpp/var.cc snprintf(buf, sizeof(buf), "Var(RESOURCE)"); buf 316 ppapi/cpp/var.cc buf[0] = '\0'; buf 318 ppapi/cpp/var.cc return buf; buf 88 ppapi/examples/audio/audio.cc int16_t* buf = reinterpret_cast<int16_t*>(samples); buf 90 ppapi/examples/audio/audio.cc *buf++ = static_cast<int16_t>(sin(wave_l) * max_int16); buf 91 ppapi/examples/audio/audio.cc *buf++ = static_cast<int16_t>(sin(wave_r) * max_int16); buf 96 ppapi/examples/font/simple_font.cc char buf[256]; buf 97 ppapi/examples/font/simple_font.cc sprintf(buf, "%s = %s %dpt", buf 99 ppapi/examples/font/simple_font.cc return std::string(buf); buf 232 ppapi/examples/mouse_lock/mouse_lock.cc char buf[512]; buf 233 ppapi/examples/mouse_lock/mouse_lock.cc vsnprintf(buf, sizeof(buf) - 1, format, args); buf 234 ppapi/examples/mouse_lock/mouse_lock.cc buf[sizeof(buf) - 1] = '\0'; buf 237 ppapi/examples/mouse_lock/mouse_lock.cc pp::Var value(buf); buf 31 ppapi/examples/video_effects/video_effects.cc std::istringstream buf(str); buf 32 ppapi/examples/video_effects/video_effects.cc std::istream_iterator<std::string> begin(buf), end; buf 152 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc bool PnaclResources::ParseResourceInfo(const nacl::string& buf, buf 157 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc if (!json_reader.parse(buf, json_data)) { buf 105 ppapi/native_client/src/trusted/plugin/pnacl_resources.h bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); buf 602 ppapi/tests/extensions/socket/test_socket.cc char buf[512]; buf 603 ppapi/tests/extensions/socket/test_socket.cc vsnprintf(buf, sizeof(buf) - 1, format, args); buf 604 ppapi/tests/extensions/socket/test_socket.cc buf[sizeof(buf) - 1] = '\0'; buf 607 ppapi/tests/extensions/socket/test_socket.cc Var value(buf); buf 30 ppapi/tests/test_crypto.cc char buf[kBufSize] = {0}; buf 32 ppapi/tests/test_crypto.cc crypto_interface_->GetRandomBytes(buf, kBufSize); buf 37 ppapi/tests/test_crypto.cc if (buf[i]) { buf 88 ppapi/tests/test_file_io.cc char buf[256]; buf 93 ppapi/tests/test_file_io.cc file_io->Read(read_offset, buf, sizeof(buf), callback.GetCallback())); buf 99 ppapi/tests/test_file_io.cc data->append(buf, callback.result()); buf 136 ppapi/tests/test_file_io.cc char buf[8192]; buf 137 ppapi/tests/test_file_io.cc ret = read(fd, buf, sizeof(buf)); buf 139 ppapi/tests/test_file_io.cc data->append(buf, ret); buf 151 ppapi/tests/test_file_io.cc const char* buf = data.c_str(); buf 156 ppapi/tests/test_file_io.cc &buf[write_offset - offset], buf 340 ppapi/tests/test_file_io.cc char buf[256]; buf 342 ppapi/tests/test_file_io.cc buf, buf 682 ppapi/tests/test_file_io.cc char buf[3] = { 0 }; buf 690 ppapi/tests/test_file_io.cc rv = file_io.Read(0, buf, sizeof(buf), callback.GetCallback()); buf 694 ppapi/tests/test_file_io.cc memcpy(&buf_copy, &buf, sizeof(buf)); buf 698 ppapi/tests/test_file_io.cc ASSERT_EQ(callback.result(), sizeof(buf)); buf 701 ppapi/tests/test_file_io.cc ASSERT_EQ(0, memcmp(&buf_copy, &buf, sizeof(buf))); buf 707 ppapi/tests/test_file_io.cc char buf[3] = { 0 }; buf 715 ppapi/tests/test_file_io.cc rv = file_io.Write(0, buf, sizeof(buf), callback.GetCallback()); buf 720 ppapi/tests/test_file_io.cc ASSERT_EQ(callback.result(), sizeof(buf)); buf 1052 ppapi/tests/test_file_io.cc std::string buf(msg.size(), '\0'); buf 1053 ppapi/tests/test_file_io.cc cnt = read(fd, &buf[0], msg.size()); buf 1058 ppapi/tests/test_file_io.cc if (msg != buf) buf 1059 ppapi/tests/test_file_io.cc return ReportMismatch("read for native FD", buf, msg); buf 1148 ppapi/tests/test_file_io.cc std::string buf = std::string(msg.size(), '\0'); buf 1149 ppapi/tests/test_file_io.cc memcpy(&buf[0], mapped, msg.size()); buf 1150 ppapi/tests/test_file_io.cc if (msg != buf) buf 1151 ppapi/tests/test_file_io.cc return ReportMismatch("mmap(r) for native FD", buf, msg); buf 1224 ppapi/tests/test_file_io.cc std::string buf = std::string(msg2.size(), '\0'); buf 1225 ppapi/tests/test_file_io.cc memcpy(&buf[0], mapped, msg2.size()); buf 1226 ppapi/tests/test_file_io.cc if (msg2 != buf) buf 1227 ppapi/tests/test_file_io.cc return ReportMismatch("mmap(r) for native FD", buf, msg2); buf 33 ppapi/tests/test_file_mapping.cc char buf[256]; buf 38 ppapi/tests/test_file_mapping.cc file_io->Read(read_offset, buf, sizeof(buf), callback.GetCallback())); buf 44 ppapi/tests/test_file_mapping.cc data->append(buf, callback.result()); buf 57 ppapi/tests/test_file_mapping.cc const char* buf = data.c_str(); buf 62 ppapi/tests/test_file_mapping.cc &buf[write_offset - offset], buf 39 ppapi/tests/test_url_loader.cc const char* buf = data.c_str(); buf 44 ppapi/tests/test_url_loader.cc &buf[write_offset - offset], buf 156 ppapi/tests/test_url_loader.cc char buf[256]; buf 160 ppapi/tests/test_url_loader.cc callback.WaitForResult(file_io->Read(offset, buf, sizeof(buf), buf 167 ppapi/tests/test_url_loader.cc data->append(buf, callback.result()); buf 176 ppapi/tests/test_url_loader.cc char buf[2]; // Small so that multiple reads are needed. buf 180 ppapi/tests/test_url_loader.cc loader->ReadResponseBody(buf, sizeof(buf), callback.GetCallback())); buf 185 ppapi/tests/test_url_loader.cc body->append(buf, callback.result()); buf 765 ppapi/tests/test_url_loader.cc char buf[2] = { 0 }; buf 772 ppapi/tests/test_url_loader.cc rv = loader.ReadResponseBody(buf, sizeof(buf), callback.GetCallback()); buf 777 ppapi/tests/test_url_loader.cc if (buf[0] || buf[1]) { buf 312 ppapi/tests/test_url_request.cc char buf[kBufferSize]; buf 314 ppapi/tests/test_url_request.cc url_loader_, buf, kBufferSize, buf 323 ppapi/tests/test_url_request.cc actual_body.append(buf, callback.result()); buf 30 remoting/client/plugin/media_source_video_renderer.cc virtual mkvmuxer::int32 Write(const void* buf, mkvmuxer::uint32 len) OVERRIDE; buf 64 remoting/client/plugin/media_source_video_renderer.cc const void* buf, buf 67 remoting/client/plugin/media_source_video_renderer.cc reinterpret_cast<const char*>(buf), buf 68 remoting/client/plugin/media_source_video_renderer.cc reinterpret_cast<const char*>(buf) + len); buf 199 remoting/codec/video_encoder_vpx.cc packet->set_data(vpx_packet->data.frame.buf, vpx_packet->data.frame.sz); buf 400 remoting/host/remoting_me2me_host.cc char buf[4096]; buf 402 remoting/host/remoting_me2me_host.cc while ((len = fread(buf, 1, sizeof(buf), stdin)) > 0) { buf 403 remoting/host/remoting_me2me_host.cc host_config_.append(buf, len); buf 25 remoting/host/username.cc std::vector<char> buf(buf_size); buf 28 remoting/host/username.cc getpwuid_r(getuid(), &passwd, &(buf[0]), buf_size, &passwd_result); buf 250 remoting/protocol/channel_multiplexer_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = CreateTestBuffer(100); buf 261 remoting/protocol/channel_multiplexer_unittest.cc host_socket1_->Write(buf.get(), buf 262 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 266 remoting/protocol/channel_multiplexer_unittest.cc host_socket2_->Write(buf.get(), buf 267 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 288 remoting/protocol/channel_multiplexer_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = CreateTestBuffer(100); buf 296 remoting/protocol/channel_multiplexer_unittest.cc host_socket1_->Write(buf.get(), buf 297 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 301 remoting/protocol/channel_multiplexer_unittest.cc host_socket2_->Write(buf.get(), buf 302 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 322 remoting/protocol/channel_multiplexer_unittest.cc scoped_refptr<net::IOBufferWithSize> buf = CreateTestBuffer(100); buf 335 remoting/protocol/channel_multiplexer_unittest.cc host_socket1_->Write(buf.get(), buf 336 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 340 remoting/protocol/channel_multiplexer_unittest.cc host_socket2_->Write(buf.get(), buf 341 remoting/protocol/channel_multiplexer_unittest.cc buf->size(), buf 60 remoting/protocol/fake_session.cc int FakeSocket::Read(net::IOBuffer* buf, int buf_len, buf 73 remoting/protocol/fake_session.cc memcpy(buf->data(), &(*input_data_.begin()) + input_pos_, result); buf 78 remoting/protocol/fake_session.cc read_buffer_ = buf; buf 85 remoting/protocol/fake_session.cc int FakeSocket::Write(net::IOBuffer* buf, int buf_len, buf 96 remoting/protocol/fake_session.cc scoped_refptr<net::IOBuffer>(buf), buf_len, callback)); buf 106 remoting/protocol/fake_session.cc DoWrite(buf, buf_len); buf 111 remoting/protocol/fake_session.cc void FakeSocket::DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, buf 122 remoting/protocol/fake_session.cc DoWrite(buf.get(), buf_len); buf 126 remoting/protocol/fake_session.cc void FakeSocket::DoWrite(net::IOBuffer* buf, int buf_len) { buf 128 remoting/protocol/fake_session.cc buf->data(), buf->data() + buf_len); buf 135 remoting/protocol/fake_session.cc std::vector<char>(buf->data(), buf->data() + buf_len))); buf 241 remoting/protocol/fake_session.cc int FakeUdpSocket::Read(net::IOBuffer* buf, int buf_len, buf 247 remoting/protocol/fake_session.cc memcpy(buf->data(), &(*input_packets_[input_pos_].begin()), result); buf 252 remoting/protocol/fake_session.cc read_buffer_ = buf; buf 259 remoting/protocol/fake_session.cc int FakeUdpSocket::Write(net::IOBuffer* buf, int buf_len, buf 263 remoting/protocol/fake_session.cc written_packets_.back().assign(buf->data(), buf->data() + buf_len); buf 56 remoting/protocol/fake_session.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 58 remoting/protocol/fake_session.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 81 remoting/protocol/fake_session.h void DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, buf 83 remoting/protocol/fake_session.h void DoWrite(net::IOBuffer* buf, int buf_len); buf 125 remoting/protocol/fake_session.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 127 remoting/protocol/fake_session.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 12 rlz/lib/crc32.h int Crc32(const unsigned char* buf, int length); buf 15 rlz/lib/crc32_wrapper.cc int Crc32(const unsigned char* buf, int length) { buf 16 rlz/lib/crc32_wrapper.cc return crc32(0L, buf, length); buf 47 sandbox/linux/seccomp-bpf/demo.cc bool SendFds(int transport, const void *buf, size_t len, ...) { buf 65 sandbox/linux/seccomp-bpf/demo.cc if (buf && len > 0) { buf 66 sandbox/linux/seccomp-bpf/demo.cc iov[1].iov_base = const_cast<void *>(buf); buf 70 sandbox/linux/seccomp-bpf/demo.cc msg.msg_iovlen = (buf && len > 0) ? 2 : 1; buf 82 sandbox/linux/seccomp-bpf/demo.cc static_cast<ssize_t>(sizeof(dummy) + ((buf && len > 0) ? len : 0)); buf 85 sandbox/linux/seccomp-bpf/demo.cc bool GetFds(int transport, void *buf, size_t *len, ...) { buf 103 sandbox/linux/seccomp-bpf/demo.cc if (buf && len && *len > 0) { buf 104 sandbox/linux/seccomp-bpf/demo.cc iov[1].iov_base = buf; buf 108 sandbox/linux/seccomp-bpf/demo.cc msg.msg_iovlen = (buf && len && *len > 0) ? 2 : 1; buf 152 sandbox/linux/seccomp-bpf/demo.cc char *itoa_r(int i, char *buf, size_t sz) { buf 160 sandbox/linux/seccomp-bpf/demo.cc char *start = buf; buf 187 sandbox/linux/seccomp-bpf/demo.cc buf = NULL; buf 211 sandbox/linux/seccomp-bpf/demo.cc return buf; buf 223 sandbox/linux/seccomp-bpf/demo.cc char buf[sizeof(msg0) - 1 + 25 + sizeof(msg1)]; buf 225 sandbox/linux/seccomp-bpf/demo.cc *buf = '\000'; buf 226 sandbox/linux/seccomp-bpf/demo.cc strncat(buf, msg0, sizeof(buf) - 1); buf 228 sandbox/linux/seccomp-bpf/demo.cc char *ptr = strrchr(buf, '\000'); buf 229 sandbox/linux/seccomp-bpf/demo.cc itoa_r(data.nr, ptr, sizeof(buf) - (ptr - buf)); buf 232 sandbox/linux/seccomp-bpf/demo.cc strncat(ptr, msg1, sizeof(buf) - (ptr - buf)); buf 235 sandbox/linux/seccomp-bpf/demo.cc if (HANDLE_EINTR(write(2, buf, ptr - buf))) { } buf 389 sandbox/linux/seccomp-bpf/demo.cc char buf[4]; buf 391 sandbox/linux/seccomp-bpf/demo.cc !GetFds(fds[1], buf, &len, fds+2, fds+3, fds+4, NULL) || buf 393 sandbox/linux/seccomp-bpf/demo.cc memcmp(buf, "test", len) || buf 395 sandbox/linux/seccomp-bpf/demo.cc read(fds[0], buf, 4) != 4 || buf 396 sandbox/linux/seccomp-bpf/demo.cc memcmp(buf, "demo", 4)) { buf 481 sandbox/linux/seccomp-bpf/demo.cc char buf[4]; buf 483 sandbox/linux/seccomp-bpf/demo.cc !GetFds(fds[1], buf, &len, fds+2, NULL) || buf 485 sandbox/linux/seccomp-bpf/demo.cc memcmp(buf, "test", len) || buf 487 sandbox/linux/seccomp-bpf/demo.cc read(fds[0], buf, 4) != 4 || buf 488 sandbox/linux/seccomp-bpf/demo.cc memcmp(buf, "demo", 4) || buf 71 sandbox/linux/seccomp-bpf/die.cc char buf[40]; buf 72 sandbox/linux/seccomp-bpf/die.cc snprintf(buf, sizeof(buf), "%d", line); buf 73 sandbox/linux/seccomp-bpf/die.cc std::string s = std::string(file) + ":" + buf + ":" + msg + "\n"; buf 354 sandbox/linux/seccomp-bpf/sandbox_bpf.cc char buf[4096]; buf 355 sandbox/linux/seccomp-bpf/sandbox_bpf.cc ssize_t len = HANDLE_EINTR(read(fds[0], buf, sizeof(buf) - 1)); buf 357 sandbox/linux/seccomp-bpf/sandbox_bpf.cc while (len > 1 && buf[len - 1] == '\n') { buf 360 sandbox/linux/seccomp-bpf/sandbox_bpf.cc buf[len] = '\000'; buf 361 sandbox/linux/seccomp-bpf/sandbox_bpf.cc SANDBOX_DIE(buf); buf 245 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc char buf[1] = {}; buf 248 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(read(fds[0], buf, 1) == 1); buf 252 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(buf[0] == '\x55'); buf 786 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc char buf[1024]; buf 787 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT(read(cpu_info_fd, buf, sizeof(buf)) > 0); buf 189 sandbox/linux/seccomp-bpf/syscall_unittest.cc char buf[8192]; buf 190 sandbox/linux/seccomp-bpf/syscall_unittest.cc EXPECT_EQ(8192, SandboxSyscall(__NR_read, fd, buf, 8192L)); buf 191 sandbox/linux/seccomp-bpf/syscall_unittest.cc EXPECT_EQ(0, memcmp(addr2, buf, 8192)); buf 324 sandbox/linux/services/broker_process.cc char buf[kMaxMessageLength]; buf 326 sandbox/linux/services/broker_process.cc const ssize_t msg_len = UnixDomainSocket::RecvMsg(ipc_socketpair_, buf, buf 327 sandbox/linux/services/broker_process.cc sizeof(buf), &fds); buf 343 sandbox/linux/services/broker_process.cc Pickle pickle(buf, msg_len); buf 285 sandbox/linux/services/broker_process_unittest.cc char buf[3]; buf 286 sandbox/linux/services/broker_process_unittest.cc memset(buf, 0, sizeof(buf)); buf 287 sandbox/linux/services/broker_process_unittest.cc int read_len1 = read(cpuinfo_fd, buf, sizeof(buf)); buf 303 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(memcmp(buf, buf2, read_len1), 0); buf 349 sandbox/linux/services/broker_process_unittest.cc char buf[1024]; buf 350 sandbox/linux/services/broker_process_unittest.cc len = read(tempfile.fd(), buf, sizeof(buf)); buf 353 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(memcmp(test_text, buf, sizeof(test_text)), 0); buf 56 sandbox/linux/services/libc_urandom_override.cc typedef int (*XstatFunction)(int version, const char *path, struct stat *buf); buf 58 sandbox/linux/services/libc_urandom_override.cc struct stat64 *buf); buf 63 sandbox/linux/services/libc_urandom_override.cc typedef int (*StatFunction)(const char *path, struct stat *buf); buf 64 sandbox/linux/services/libc_urandom_override.cc typedef int (*Stat64Function)(const char *path, struct stat64 *buf); buf 167 sandbox/linux/services/libc_urandom_override.cc struct stat *buf) __asm__ ("__xstat"); buf 170 sandbox/linux/services/libc_urandom_override.cc int xstat_override(int version, const char *path, struct stat *buf) { buf 172 sandbox/linux/services/libc_urandom_override.cc int result = __fxstat(version, base::GetUrandomFD(), buf); buf 177 sandbox/linux/services/libc_urandom_override.cc return g_libc_xstat(version, path, buf); buf 184 sandbox/linux/services/libc_urandom_override.cc struct stat64 *buf) __asm__ ("__xstat64"); buf 187 sandbox/linux/services/libc_urandom_override.cc int xstat64_override(int version, const char *path, struct stat64 *buf) { buf 189 sandbox/linux/services/libc_urandom_override.cc int result = __fxstat64(version, base::GetUrandomFD(), buf); buf 194 sandbox/linux/services/libc_urandom_override.cc return g_libc_xstat64(version, path, buf); buf 202 sandbox/linux/services/libc_urandom_override.cc struct stat *buf) __asm__ ("stat"); buf 205 sandbox/linux/services/libc_urandom_override.cc int stat_override(const char *path, struct stat *buf) { buf 207 sandbox/linux/services/libc_urandom_override.cc int result = fstat(base::GetUrandomFD(), buf); buf 212 sandbox/linux/services/libc_urandom_override.cc return g_libc_stat(path, buf); buf 218 sandbox/linux/services/libc_urandom_override.cc struct stat64 *buf) __asm__ ("stat64"); buf 221 sandbox/linux/services/libc_urandom_override.cc int stat64_override(const char *path, struct stat64 *buf) { buf 223 sandbox/linux/services/libc_urandom_override.cc int result = fstat64(base::GetUrandomFD(), buf); buf 228 sandbox/linux/services/libc_urandom_override.cc return g_libc_stat64(path, buf); buf 34 sandbox/linux/suid/linux_util.c char buf[256]; buf 35 sandbox/linux/suid/linux_util.c const ssize_t n = readlinkat(base_dir_fd, path, buf, sizeof(buf) - 1); buf 38 sandbox/linux/suid/linux_util.c buf[n] = 0; buf 40 sandbox/linux/suid/linux_util.c if (memcmp(kSocketLinkPrefix, buf, sizeof(kSocketLinkPrefix) - 1)) buf 46 sandbox/linux/suid/linux_util.c strtoull(buf + sizeof(kSocketLinkPrefix) - 1, &endptr, 10); buf 88 sandbox/linux/suid/linux_util.c char buf[256]; buf 90 sandbox/linux/suid/linux_util.c snprintf(buf, sizeof(buf), "/proc/%lu", pid_ul); buf 91 sandbox/linux/suid/linux_util.c proc_pid_fd = open(buf, O_RDONLY | O_DIRECTORY); buf 107 sandbox/linux/suid/linux_util.c char buf[256]; buf 108 sandbox/linux/suid/linux_util.c int printed = snprintf(buf, sizeof(buf), "fd/%s", dent->d_name); buf 109 sandbox/linux/suid/linux_util.c if (printed < 0 || printed >= (int)(sizeof(buf) - 1)) { buf 114 sandbox/linux/suid/linux_util.c if (ProcPathGetInodeAt(&fd_inode, proc_pid_fd, buf)) { buf 68 sandbox/linux/suid/process_util_linux.c char buf[11]; // 0 <= |score| <= kMaxOomScore; using log_10(2**32) + 1 size buf 69 sandbox/linux/suid/process_util_linux.c snprintf(buf, sizeof(buf), "%d", score); buf 70 sandbox/linux/suid/process_util_linux.c size_t len = strlen(buf); buf 72 sandbox/linux/suid/process_util_linux.c ssize_t bytes_written = write(fd, buf, len); buf 342 sql/connection.cc scoped_ptr<char[]> buf(new char[page_size]); buf 344 sql/connection.cc rc = file->pMethods->xRead(file, buf.get(), page_size, pos); buf 47 sql/test/test_helpers.cc unsigned ReadBigEndian(unsigned char* buf, size_t bytes) { buf 48 sql/test/test_helpers.cc unsigned r = buf[0]; buf 51 sql/test/test_helpers.cc r |= buf[i]; buf 57 sql/test/test_helpers.cc void WriteBigEndian(unsigned val, unsigned char* buf, size_t bytes) { buf 59 sql/test/test_helpers.cc buf[bytes - i - 1] = (val & 0xFF); buf 51 third_party/ashmem/ashmem-dev.c char buf[ASHMEM_NAME_LEN]; buf 53 third_party/ashmem/ashmem-dev.c strlcpy(buf, name, sizeof(buf)); buf 54 third_party/ashmem/ashmem-dev.c ret = ioctl(fd, ASHMEM_SET_NAME, buf); buf 74 third_party/bintrees/bintrees/cwalker.c void *buf; buf 74 third_party/bintrees/bintrees/qavltree.c void *buf; buf 74 third_party/bintrees/bintrees/qbintree.c void *buf; buf 74 third_party/bintrees/bintrees/qrbtree.c void *buf; buf 96 third_party/bspatch/mbspatch.cc unsigned char *buf = (unsigned char*) malloc(header->cblen + buf 99 third_party/bspatch/mbspatch.cc if (!buf) buf 105 third_party/bspatch/mbspatch.cc unsigned char *wb = buf; buf 122 third_party/bspatch/mbspatch.cc MBSPatchTriple *ctrlsrc = (MBSPatchTriple*) buf; buf 123 third_party/bspatch/mbspatch.cc unsigned char *diffsrc = buf + header->cblen; buf 189 third_party/bspatch/mbspatch.cc free(buf); buf 193 third_party/bspatch/mbspatch.cc int CalculateCrc(const unsigned char *buf, int size) { buf 196 third_party/bspatch/mbspatch.cc crc = ~CrcCalc(buf, size); buf 217 third_party/bspatch/mbspatch.cc unsigned char *buf = NULL; buf 244 third_party/bspatch/mbspatch.cc buf = (unsigned char*) malloc(header.slen); buf 245 third_party/bspatch/mbspatch.cc if (!buf) { buf 250 third_party/bspatch/mbspatch.cc if (read(ofd, buf, header.slen) != header.slen) { buf 255 third_party/bspatch/mbspatch.cc if (CalculateCrc(buf, header.slen) != header.scrc32) { buf 266 third_party/bspatch/mbspatch.cc MBS_ApplyPatch(&header, pfd, buf, nfd); buf 269 third_party/bspatch/mbspatch.cc free(buf); buf 111 third_party/bspatch/mbspatch.h int CalculateCrc(const unsigned char *buf, int size); buf 876 third_party/cld/base/logging.h LogStream(char *buf, int len, int ctr) buf 877 third_party/cld/base/logging.h : ostrstream(buf, len), buf 1362 third_party/cld/base/logging.h int posix_strerror_r(int err, char *buf, size_t len); buf 186 third_party/expat/files/lib/xmlparse.c char *buf; /* buffer for name components */ buf 1148 third_party/expat/files/lib/xmlparse.c FREE(p->buf); buf 2061 third_party/expat/files/lib/xmlparse.c char *rawNameBuf = tag->buf + nameLen; buf 2073 third_party/expat/files/lib/xmlparse.c if (bufSize > tag->bufEnd - tag->buf) { buf 2074 third_party/expat/files/lib/xmlparse.c char *temp = (char *)REALLOC(tag->buf, bufSize); buf 2080 third_party/expat/files/lib/xmlparse.c if (tag->name.str == (XML_Char *)tag->buf) buf 2087 third_party/expat/files/lib/xmlparse.c (XML_Char *)tag->buf); buf 2088 third_party/expat/files/lib/xmlparse.c tag->buf = temp; buf 2396 third_party/expat/files/lib/xmlparse.c tag->buf = (char *)MALLOC(INIT_TAG_BUF_SIZE); buf 2397 third_party/expat/files/lib/xmlparse.c if (!tag->buf) { buf 2401 third_party/expat/files/lib/xmlparse.c tag->bufEnd = tag->buf + INIT_TAG_BUF_SIZE; buf 2414 third_party/expat/files/lib/xmlparse.c toPtr = (XML_Char *)tag->buf; buf 2421 third_party/expat/files/lib/xmlparse.c convLen = (int)(toPtr - (XML_Char *)tag->buf); buf 2426 third_party/expat/files/lib/xmlparse.c bufSize = (int)(tag->bufEnd - tag->buf) << 1; buf 2428 third_party/expat/files/lib/xmlparse.c char *temp = (char *)REALLOC(tag->buf, bufSize); buf 2431 third_party/expat/files/lib/xmlparse.c tag->buf = temp; buf 2437 third_party/expat/files/lib/xmlparse.c tag->name.str = (XML_Char *)tag->buf; buf 2555 third_party/expat/files/lib/xmlparse.c XML_Char buf[XML_ENCODE_MAX]; buf 2556 third_party/expat/files/lib/xmlparse.c characterDataHandler(handlerArg, buf, XmlEncode(n, (ICHAR *)buf)); buf 4959 third_party/expat/files/lib/xmlparse.c XML_Char buf[XML_ENCODE_MAX]; buf 4971 third_party/expat/files/lib/xmlparse.c n = XmlEncode(n, (ICHAR *)buf); buf 4978 third_party/expat/files/lib/xmlparse.c if (!poolAppendChar(pool, buf[i])) buf 5203 third_party/expat/files/lib/xmlparse.c XML_Char buf[XML_ENCODE_MAX]; buf 5212 third_party/expat/files/lib/xmlparse.c n = XmlEncode(n, (ICHAR *)buf); buf 5224 third_party/expat/files/lib/xmlparse.c *(pool->ptr)++ = buf[i]; buf 950 third_party/expat/files/lib/xmltok.c char buf[1]; buf 951 third_party/expat/files/lib/xmltok.c char *p = buf; buf 953 third_party/expat/files/lib/xmltok.c if (p == buf) buf 956 third_party/expat/files/lib/xmltok.c return buf[0]; buf 1193 third_party/expat/files/lib/xmltok.c XmlUtf8Encode(int c, char *buf) buf 1205 third_party/expat/files/lib/xmltok.c buf[0] = (char)(c | UTF8_cval1); buf 1209 third_party/expat/files/lib/xmltok.c buf[0] = (char)((c >> 6) | UTF8_cval2); buf 1210 third_party/expat/files/lib/xmltok.c buf[1] = (char)((c & 0x3f) | 0x80); buf 1214 third_party/expat/files/lib/xmltok.c buf[0] = (char)((c >> 12) | UTF8_cval3); buf 1215 third_party/expat/files/lib/xmltok.c buf[1] = (char)(((c >> 6) & 0x3f) | 0x80); buf 1216 third_party/expat/files/lib/xmltok.c buf[2] = (char)((c & 0x3f) | 0x80); buf 1220 third_party/expat/files/lib/xmltok.c buf[0] = (char)((c >> 18) | UTF8_cval4); buf 1221 third_party/expat/files/lib/xmltok.c buf[1] = (char)(((c >> 12) & 0x3f) | 0x80); buf 1222 third_party/expat/files/lib/xmltok.c buf[2] = (char)(((c >> 6) & 0x3f) | 0x80); buf 1223 third_party/expat/files/lib/xmltok.c buf[3] = (char)((c & 0x3f) | 0x80); buf 1230 third_party/expat/files/lib/xmltok.c XmlUtf16Encode(int charNum, unsigned short *buf) buf 1235 third_party/expat/files/lib/xmltok.c buf[0] = (unsigned short)charNum; buf 1240 third_party/expat/files/lib/xmltok.c buf[0] = (unsigned short)((charNum >> 10) + 0xD800); buf 1241 third_party/expat/files/lib/xmltok.c buf[1] = (unsigned short)((charNum & 0x3FF) + 0xDC00); buf 1297 third_party/expat/files/lib/xmltok.c char buf[XML_UTF8_ENCODE_MAX]; buf 1307 third_party/expat/files/lib/xmltok.c n = XmlUtf8Encode(c, buf); buf 1310 third_party/expat/files/lib/xmltok.c utf8 = buf; buf 280 third_party/expat/files/lib/xmltok.h int FASTCALL XmlUtf8Encode(int charNumber, char *buf); buf 281 third_party/expat/files/lib/xmltok.h int FASTCALL XmlUtf16Encode(int charNumber, unsigned short *buf); buf 75 third_party/expat/files/lib/xmltok_ns.c char buf[ENCODING_MAX]; buf 76 third_party/expat/files/lib/xmltok_ns.c char *p = buf; buf 82 third_party/expat/files/lib/xmltok_ns.c if (streqci(buf, KW_UTF_16) && enc->minBytesPerChar == 2) buf 84 third_party/expat/files/lib/xmltok_ns.c i = getEncodingIndex(buf); buf 443 third_party/harfbuzz-ng/src/hb-buffer-deserialize-json.hh const char *buf, buf 448 third_party/harfbuzz-ng/src/hb-buffer-deserialize-json.hh const char *p = buf, *pe = buf + buf_len; buf 320 third_party/harfbuzz-ng/src/hb-buffer-deserialize-text.hh const char *buf, buf 325 third_party/harfbuzz-ng/src/hb-buffer-deserialize-text.hh const char *p = buf, *pe = buf + buf_len; buf 95 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char *buf, buf 152 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc memcpy (buf, b, l); buf 153 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf += l; buf 156 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc *buf = '\0'; buf 168 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char *buf, buf 214 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc memcpy (buf, b, l); buf 215 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf += l; buf 218 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc *buf = '\0'; buf 249 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char *buf, buf 276 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf, buf_size, buf_consumed, buf 281 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf, buf_size, buf_consumed, buf 295 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char buf[32]; buf 296 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - pp)); buf 297 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc strncpy (buf, pp, len); buf 298 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf[len] = '\0'; buf 300 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char *p = buf; buf 316 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char buf[32]; buf 317 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - pp)); buf 318 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc strncpy (buf, pp, len); buf 319 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf[len] = '\0'; buf 321 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc char *p = buf; buf 354 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc const char *buf, buf 363 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc *end_ptr = buf; buf 369 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf_len = strlen (buf); buf 373 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc *end_ptr = buf; buf 386 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf, buf_len, end_ptr, buf 391 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc buf, buf_len, end_ptr, buf 591 third_party/harfbuzz-ng/src/hb-buffer.cc char buf[80]; buf 593 third_party/harfbuzz-ng/src/hb-buffer.cc buf[i] = '0' + buffer->allocated_var_bytes[7 - i]; buf 594 third_party/harfbuzz-ng/src/hb-buffer.cc buf[8] = '\0'; buf 597 third_party/harfbuzz-ng/src/hb-buffer.cc buf); buf 305 third_party/harfbuzz-ng/src/hb-buffer.h char *buf, buf 314 third_party/harfbuzz-ng/src/hb-buffer.h const char *buf, buf 98 third_party/harfbuzz-ng/src/hb-common.cc hb_tag_to_string (hb_tag_t tag, char *buf) buf 100 third_party/harfbuzz-ng/src/hb-common.cc buf[0] = (char) (uint8_t) (tag >> 24); buf 101 third_party/harfbuzz-ng/src/hb-common.cc buf[1] = (char) (uint8_t) (tag >> 16); buf 102 third_party/harfbuzz-ng/src/hb-common.cc buf[2] = (char) (uint8_t) (tag >> 8); buf 103 third_party/harfbuzz-ng/src/hb-common.cc buf[3] = (char) (uint8_t) (tag >> 0); buf 105 third_party/harfbuzz-ng/src/hb-common.h hb_tag_to_string (hb_tag_t tag, char *buf); buf 256 third_party/harfbuzz-ng/src/hb-ft.cc char buf[128]; buf 257 third_party/harfbuzz-ng/src/hb-ft.cc len = MIN (len, (int) sizeof (buf) - 1); buf 258 third_party/harfbuzz-ng/src/hb-ft.cc strncpy (buf, name, len); buf 259 third_party/harfbuzz-ng/src/hb-ft.cc buf[len] = '\0'; buf 260 third_party/harfbuzz-ng/src/hb-ft.cc *glyph = FT_Get_Name_Index (ft_face, buf); buf 266 third_party/harfbuzz-ng/src/hb-ft.cc char buf[128]; buf 267 third_party/harfbuzz-ng/src/hb-ft.cc if (!FT_Get_Glyph_Name(ft_face, 0, buf, sizeof (buf)) && buf 268 third_party/harfbuzz-ng/src/hb-ft.cc len < 0 ? !strcmp (buf, name) : !strncmp (buf, name, len)) buf 91 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic-fallback.hh char buf[(SHAPING_TABLE_LAST - SHAPING_TABLE_FIRST + 1) * 4 + 128]; buf 92 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic-fallback.hh OT::hb_serialize_context_t c (buf, sizeof (buf)); buf 167 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic-fallback.hh char buf[ARRAY_LENGTH_CONST (ligature_list) * 16 + 128]; buf 168 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic-fallback.hh OT::hb_serialize_context_t c (buf, sizeof (buf)); buf 876 third_party/harfbuzz-ng/src/hb-ot-tag.cc unsigned char buf[14] = "zh-x-hbot"; buf 877 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[9] = tag >> 24; buf 878 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[10] = (tag >> 16) & 0xFF; buf 879 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[11] = (tag >> 8) & 0xFF; buf 880 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[12] = tag & 0xFF; buf 881 third_party/harfbuzz-ng/src/hb-ot-tag.cc if (buf[12] == 0x20) buf 882 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[12] = '\0'; buf 883 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[13] = '\0'; buf 884 third_party/harfbuzz-ng/src/hb-ot-tag.cc return hb_language_from_string ((char *) buf, -1); buf 891 third_party/harfbuzz-ng/src/hb-ot-tag.cc unsigned char buf[11] = "x-hbot"; buf 892 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[6] = tag >> 24; buf 893 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[7] = (tag >> 16) & 0xFF; buf 894 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[8] = (tag >> 8) & 0xFF; buf 895 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[9] = tag & 0xFF; buf 896 third_party/harfbuzz-ng/src/hb-ot-tag.cc if (buf[9] == 0x20) buf 897 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[9] = '\0'; buf 898 third_party/harfbuzz-ng/src/hb-ot-tag.cc buf[10] = '\0'; buf 899 third_party/harfbuzz-ng/src/hb-ot-tag.cc return hb_language_from_string ((char *) buf, -1); buf 874 third_party/harfbuzz-ng/src/hb-private.hh char buf[64]; buf 875 third_party/harfbuzz-ng/src/hb-private.hh len = MIN (ARRAY_LENGTH (buf) - 1, len); buf 876 third_party/harfbuzz-ng/src/hb-private.hh strncpy (buf, s, len); buf 877 third_party/harfbuzz-ng/src/hb-private.hh buf[len] = '\0'; buf 881 third_party/harfbuzz-ng/src/hb-private.hh unsigned long v = strtoul (buf, &end, base); buf 60 third_party/harfbuzz-ng/src/hb-shape.cc char buf[32]; buf 61 third_party/harfbuzz-ng/src/hb-shape.cc unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); buf 62 third_party/harfbuzz-ng/src/hb-shape.cc strncpy (buf, *pp, len); buf 63 third_party/harfbuzz-ng/src/hb-shape.cc buf[len] = '\0'; buf 65 third_party/harfbuzz-ng/src/hb-shape.cc char *p = buf; buf 190 third_party/harfbuzz-ng/src/hb-shape.cc char *buf, unsigned int size) buf 221 third_party/harfbuzz-ng/src/hb-shape.cc memcpy (buf, s, len); buf 222 third_party/harfbuzz-ng/src/hb-shape.cc buf[len] = '\0'; buf 59 third_party/harfbuzz-ng/src/hb-shape.h char *buf, unsigned int size); buf 99 third_party/harfbuzz-ng/src/test-buffer-serialize.cc hb_buffer_t *buf; buf 100 third_party/harfbuzz-ng/src/test-buffer-serialize.cc buf = hb_buffer_create (); buf 106 third_party/harfbuzz-ng/src/test-buffer-serialize.cc hb_buffer_clear_contents (buf); buf 109 third_party/harfbuzz-ng/src/test-buffer-serialize.cc while (hb_buffer_deserialize_glyphs (buf, buf 117 third_party/harfbuzz-ng/src/test-buffer-serialize.cc hb_buffer_serialize_glyphs (buf, 0, hb_buffer_get_length (buf), buf 124 third_party/harfbuzz-ng/src/test-buffer-serialize.cc hb_buffer_destroy (buf); buf 99 third_party/khronos/GLES2/gl2ext.h typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); buf 111 third_party/khronos/GLES2/gl2ext.h GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); buf 170 third_party/leveldatabase/env_chromium.cc char buf[512]; buf 171 third_party/leveldatabase/env_chromium.cc snprintf(buf, buf 172 third_party/leveldatabase/env_chromium.cc sizeof(buf), buf 178 third_party/leveldatabase/env_chromium.cc return Status::IOError(filename, buf); buf 186 third_party/leveldatabase/env_chromium.cc char buf[512]; buf 187 third_party/leveldatabase/env_chromium.cc snprintf(buf, buf 188 third_party/leveldatabase/env_chromium.cc sizeof(buf), buf 194 third_party/leveldatabase/env_chromium.cc return Status::IOError(filename, buf); buf 198 third_party/leveldatabase/env_chromium.cc char buf[512]; buf 199 third_party/leveldatabase/env_chromium.cc snprintf(buf, buf 200 third_party/leveldatabase/env_chromium.cc sizeof(buf), buf 205 third_party/leveldatabase/env_chromium.cc return Status::IOError(filename, buf); buf 555 third_party/leveldatabase/env_chromium.cc char buf[100]; buf 556 third_party/leveldatabase/env_chromium.cc snprintf(buf, buf 557 third_party/leveldatabase/env_chromium.cc sizeof(buf), buf 560 third_party/leveldatabase/env_chromium.cc return MakeIOError(src, buf, kRenameFile, error); buf 125 third_party/leveldatabase/env_chromium_win.cc char buf[512]; buf 126 third_party/leveldatabase/env_chromium_win.cc if (snprintf(buf, buf 127 third_party/leveldatabase/env_chromium_win.cc sizeof(buf), buf 133 third_party/leveldatabase/env_chromium_win.cc return Status::IOError(filename, buf); buf 36 third_party/libaddressinput/chromium/cpp/src/util/md5.cc uint32 buf[4]; buf 44 third_party/libaddressinput/chromium/cpp/src/util/md5.cc void byteReverse(unsigned char *buf, unsigned longs) { buf 47 third_party/libaddressinput/chromium/cpp/src/util/md5.cc t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 | buf 48 third_party/libaddressinput/chromium/cpp/src/util/md5.cc ((unsigned)buf[1]<<8 | buf[0]); buf 49 third_party/libaddressinput/chromium/cpp/src/util/md5.cc *(uint32 *)buf = t; buf 50 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf += 4; buf 71 third_party/libaddressinput/chromium/cpp/src/util/md5.cc void MD5Transform(uint32 buf[4], const uint32 in[16]) { buf 74 third_party/libaddressinput/chromium/cpp/src/util/md5.cc a = buf[0]; buf 75 third_party/libaddressinput/chromium/cpp/src/util/md5.cc b = buf[1]; buf 76 third_party/libaddressinput/chromium/cpp/src/util/md5.cc c = buf[2]; buf 77 third_party/libaddressinput/chromium/cpp/src/util/md5.cc d = buf[3]; buf 147 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf[0] += a; buf 148 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf[1] += b; buf 149 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf[2] += c; buf 150 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf[3] += d; buf 164 third_party/libaddressinput/chromium/cpp/src/util/md5.cc ctx->buf[0] = 0x67452301; buf 165 third_party/libaddressinput/chromium/cpp/src/util/md5.cc ctx->buf[1] = 0xefcdab89; buf 166 third_party/libaddressinput/chromium/cpp/src/util/md5.cc ctx->buf[2] = 0x98badcfe; buf 167 third_party/libaddressinput/chromium/cpp/src/util/md5.cc ctx->buf[3] = 0x10325476; buf 180 third_party/libaddressinput/chromium/cpp/src/util/md5.cc const unsigned char* buf = (const unsigned char*)inbuf; buf 199 third_party/libaddressinput/chromium/cpp/src/util/md5.cc memcpy(p, buf, len); buf 202 third_party/libaddressinput/chromium/cpp/src/util/md5.cc memcpy(p, buf, t); buf 204 third_party/libaddressinput/chromium/cpp/src/util/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 205 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf += t; buf 212 third_party/libaddressinput/chromium/cpp/src/util/md5.cc memcpy(ctx->in, buf, 64); buf 214 third_party/libaddressinput/chromium/cpp/src/util/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 215 third_party/libaddressinput/chromium/cpp/src/util/md5.cc buf += 64; buf 221 third_party/libaddressinput/chromium/cpp/src/util/md5.cc memcpy(ctx->in, buf, len); buf 249 third_party/libaddressinput/chromium/cpp/src/util/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 263 third_party/libaddressinput/chromium/cpp/src/util/md5.cc MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 264 third_party/libaddressinput/chromium/cpp/src/util/md5.cc byteReverse((unsigned char *)ctx->buf, 4); buf 265 third_party/libaddressinput/chromium/cpp/src/util/md5.cc memcpy(digest->a, ctx->buf, 16); buf 137 third_party/libevent/buffer.c evbuffer_add_vprintf(struct evbuffer *buf, const char *fmt, va_list ap) buf 141 third_party/libevent/buffer.c size_t oldoff = buf->off; buf 146 third_party/libevent/buffer.c evbuffer_expand(buf, 64); buf 148 third_party/libevent/buffer.c size_t used = buf->misalign + buf->off; buf 149 third_party/libevent/buffer.c buffer = (char *)buf->buffer + buf->off; buf 150 third_party/libevent/buffer.c assert(buf->totallen >= used); buf 151 third_party/libevent/buffer.c space = buf->totallen - used; buf 165 third_party/libevent/buffer.c buf->off += sz; buf 166 third_party/libevent/buffer.c if (buf->cb != NULL) buf 167 third_party/libevent/buffer.c (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); buf 170 third_party/libevent/buffer.c if (evbuffer_expand(buf, sz + 1) == -1) buf 178 third_party/libevent/buffer.c evbuffer_add_printf(struct evbuffer *buf, const char *fmt, ...) buf 184 third_party/libevent/buffer.c res = evbuffer_add_vprintf(buf, fmt, ap); buf 193 third_party/libevent/buffer.c evbuffer_remove(struct evbuffer *buf, void *data, size_t datlen) buf 196 third_party/libevent/buffer.c if (nread >= buf->off) buf 197 third_party/libevent/buffer.c nread = buf->off; buf 199 third_party/libevent/buffer.c memcpy(data, buf->buffer, nread); buf 200 third_party/libevent/buffer.c evbuffer_drain(buf, nread); buf 254 third_party/libevent/buffer.c evbuffer_align(struct evbuffer *buf) buf 256 third_party/libevent/buffer.c memmove(buf->orig_buffer, buf->buffer, buf->off); buf 257 third_party/libevent/buffer.c buf->buffer = buf->orig_buffer; buf 258 third_party/libevent/buffer.c buf->misalign = 0; buf 264 third_party/libevent/buffer.c evbuffer_expand(struct evbuffer *buf, size_t datlen) buf 266 third_party/libevent/buffer.c size_t need = buf->misalign + buf->off + datlen; buf 269 third_party/libevent/buffer.c if (buf->totallen >= need) buf 276 third_party/libevent/buffer.c if (buf->misalign >= datlen) { buf 277 third_party/libevent/buffer.c evbuffer_align(buf); buf 280 third_party/libevent/buffer.c size_t length = buf->totallen; buf 287 third_party/libevent/buffer.c if (buf->orig_buffer != buf->buffer) buf 288 third_party/libevent/buffer.c evbuffer_align(buf); buf 289 third_party/libevent/buffer.c if ((newbuf = realloc(buf->buffer, length)) == NULL) buf 292 third_party/libevent/buffer.c buf->orig_buffer = buf->buffer = newbuf; buf 293 third_party/libevent/buffer.c buf->totallen = length; buf 300 third_party/libevent/buffer.c evbuffer_add(struct evbuffer *buf, const void *data, size_t datlen) buf 302 third_party/libevent/buffer.c size_t need = buf->misalign + buf->off + datlen; buf 303 third_party/libevent/buffer.c size_t oldoff = buf->off; buf 305 third_party/libevent/buffer.c if (buf->totallen < need) { buf 306 third_party/libevent/buffer.c if (evbuffer_expand(buf, datlen) == -1) buf 310 third_party/libevent/buffer.c memcpy(buf->buffer + buf->off, data, datlen); buf 311 third_party/libevent/buffer.c buf->off += datlen; buf 313 third_party/libevent/buffer.c if (datlen && buf->cb != NULL) buf 314 third_party/libevent/buffer.c (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); buf 320 third_party/libevent/buffer.c evbuffer_drain(struct evbuffer *buf, size_t len) buf 322 third_party/libevent/buffer.c size_t oldoff = buf->off; buf 324 third_party/libevent/buffer.c if (len >= buf->off) { buf 325 third_party/libevent/buffer.c buf->off = 0; buf 326 third_party/libevent/buffer.c buf->buffer = buf->orig_buffer; buf 327 third_party/libevent/buffer.c buf->misalign = 0; buf 331 third_party/libevent/buffer.c buf->buffer += len; buf 332 third_party/libevent/buffer.c buf->misalign += len; buf 334 third_party/libevent/buffer.c buf->off -= len; buf 338 third_party/libevent/buffer.c if (buf->off != oldoff && buf->cb != NULL) buf 339 third_party/libevent/buffer.c (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); buf 350 third_party/libevent/buffer.c evbuffer_read(struct evbuffer *buf, int fd, int howmuch) buf 353 third_party/libevent/buffer.c size_t oldoff = buf->off; buf 372 third_party/libevent/buffer.c if ((size_t)n > buf->totallen << 2) buf 373 third_party/libevent/buffer.c n = buf->totallen << 2; buf 382 third_party/libevent/buffer.c if (evbuffer_expand(buf, howmuch) == -1) buf 386 third_party/libevent/buffer.c p = buf->buffer + buf->off; buf 398 third_party/libevent/buffer.c buf->off += n; buf 401 third_party/libevent/buffer.c if (buf->off != oldoff && buf->cb != NULL) buf 402 third_party/libevent/buffer.c (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); buf 77 third_party/libevent/evbuffer.c bufferevent_read_pressure_cb(struct evbuffer *buf, size_t old, size_t now, buf 85 third_party/libevent/evbuffer.c evbuffer_setcb(buf, NULL, NULL); buf 114 third_party/libevent/evbuffer.c struct evbuffer *buf = bufev->input; buf 116 third_party/libevent/evbuffer.c evbuffer_setcb(buf, buf 143 third_party/libevent/evbuffer.c struct evbuffer *buf = bufev->input; buf 147 third_party/libevent/evbuffer.c evbuffer_setcb(buf, bufferevent_read_pressure_cb, bufev); buf 343 third_party/libevent/evbuffer.c bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer *buf) buf 347 third_party/libevent/evbuffer.c res = bufferevent_write(bufev, buf->buffer, buf->off); buf 349 third_party/libevent/evbuffer.c evbuffer_drain(buf, buf->off); buf 357 third_party/libevent/evbuffer.c struct evbuffer *buf = bufev->input; buf 359 third_party/libevent/evbuffer.c if (buf->off < size) buf 360 third_party/libevent/evbuffer.c size = buf->off; buf 363 third_party/libevent/evbuffer.c memcpy(data, buf->buffer, size); buf 366 third_party/libevent/evbuffer.c evbuffer_drain(buf, size); buf 388 third_party/libevent/evdns.c static char buf[32]; buf 390 third_party/libevent/evdns.c evutil_snprintf(buf, sizeof(buf), "%d.%d.%d.%d", buf 395 third_party/libevent/evdns.c return buf; buf 417 third_party/libevent/evdns.c static char buf[512]; buf 421 third_party/libevent/evdns.c evutil_vsnprintf(buf, sizeof(buf), fmt, args); buf 422 third_party/libevent/evdns.c buf[sizeof(buf)-1] = '\0'; buf 423 third_party/libevent/evdns.c evdns_log_fn(warn, buf); buf 1370 third_party/libevent/evdns.c dnsname_to_labels(u8 *const buf, size_t buf_len, off_t j, buf 1381 third_party/libevent/evdns.c memcpy(buf + j, &_t, 2); \ buf 1388 third_party/libevent/evdns.c memcpy(buf + j, &_t32, 4); \ buf 1406 third_party/libevent/evdns.c buf[j++] = label_len; buf 1408 third_party/libevent/evdns.c memcpy(buf + j, start, end - start); buf 1417 third_party/libevent/evdns.c buf[j++] = label_len; buf 1419 third_party/libevent/evdns.c memcpy(buf + j, start, name - start); buf 1429 third_party/libevent/evdns.c if (!j || buf[j-1]) buf[j++] = 0; buf 1452 third_party/libevent/evdns.c u8 *const buf, size_t buf_len) { buf 1463 third_party/libevent/evdns.c j = dnsname_to_labels(buf, buf_len, j, name, name_len, NULL); buf 1600 third_party/libevent/evdns.c char buf[32]; buf 1605 third_party/libevent/evdns.c evutil_snprintf(buf, sizeof(buf), "%d.%d.%d.%d.in-addr.arpa", buf 1610 third_party/libevent/evdns.c inaddr_name = buf; buf 1630 third_party/libevent/evdns.c unsigned char buf[1500]; buf 1631 third_party/libevent/evdns.c size_t buf_len = sizeof(buf); buf 1657 third_party/libevent/evdns.c j = dnsname_to_labels(buf, buf_len, j, s, strlen(s), &table); buf 1676 third_party/libevent/evdns.c r = dnsname_to_labels(buf, buf_len, j, item->name, strlen(item->name), &table); buf 1688 third_party/libevent/evdns.c r = dnsname_to_labels(buf, buf_len, j, item->data, strlen(item->data), &table); buf 1693 third_party/libevent/evdns.c memcpy(buf+len_idx, &_t, 2); buf 1698 third_party/libevent/evdns.c memcpy(buf+j, item->data, item->datalen); buf 1708 third_party/libevent/evdns.c buf[2] |= 0x02; /* set the truncated bit. */ buf 1718 third_party/libevent/evdns.c memcpy(req->response, buf, req->response_len); buf 2184 third_party/libevent/evdns.c char buf[20]; buf 2195 third_party/libevent/evdns.c if ((cp-ip_as_string) >= (int)sizeof(buf)) { buf 2198 third_party/libevent/evdns.c memcpy(buf, ip_as_string, cp-ip_as_string); buf 2199 third_party/libevent/evdns.c buf[cp-ip_as_string] = '\0'; buf 2200 third_party/libevent/evdns.c cp = buf; buf 2323 third_party/libevent/evdns.c char buf[32]; buf 2328 third_party/libevent/evdns.c evutil_snprintf(buf, sizeof(buf), "%d.%d.%d.%d.in-addr.arpa", buf 2333 third_party/libevent/evdns.c log(EVDNS_LOG_DEBUG, "Resolve requested for %s (reverse)", buf); buf 2334 third_party/libevent/evdns.c req = request_new(TYPE_PTR, buf, flags, callback, ptr); buf 2342 third_party/libevent/evdns.c char buf[73]; buf 2347 third_party/libevent/evdns.c cp = buf; buf 2355 third_party/libevent/evdns.c assert(cp + strlen("ip6.arpa") < buf+sizeof(buf)); buf 2357 third_party/libevent/evdns.c log(EVDNS_LOG_DEBUG, "Resolve requested for %s (reverse)", buf); buf 2358 third_party/libevent/evdns.c req = request_new(TYPE_PTR, buf, flags, callback, ptr); buf 2814 third_party/libevent/evdns.c char *buf; buf 2822 third_party/libevent/evdns.c buf = malloc(ips-addr+1); buf 2823 third_party/libevent/evdns.c if (!buf) return 4; buf 2824 third_party/libevent/evdns.c memcpy(buf, addr, ips-addr); buf 2825 third_party/libevent/evdns.c buf[ips-addr] = '\0'; buf 2826 third_party/libevent/evdns.c r = evdns_nameserver_ip_add(buf); buf 2827 third_party/libevent/evdns.c free(buf); buf 2844 third_party/libevent/evdns.c void *buf = NULL; buf 2860 third_party/libevent/evdns.c buf = malloc(size); buf 2861 third_party/libevent/evdns.c if (!buf) { status = 4; goto done; } buf 2862 third_party/libevent/evdns.c fixed = buf; buf 2869 third_party/libevent/evdns.c free(buf); buf 2870 third_party/libevent/evdns.c buf = malloc(size); buf 2871 third_party/libevent/evdns.c if (!buf) { status = 4; goto done; } buf 2872 third_party/libevent/evdns.c fixed = buf; buf 2905 third_party/libevent/evdns.c if (buf) buf 2906 third_party/libevent/evdns.c free(buf); buf 2915 third_party/libevent/evdns.c char *buf; buf 2922 third_party/libevent/evdns.c if (!(buf = malloc(bufsz))) buf 2925 third_party/libevent/evdns.c if (RegQueryValueEx(key, subkey, 0, &type, (LPBYTE)buf, &bufsz) buf 2927 third_party/libevent/evdns.c status = evdns_nameserver_ip_add_line(buf); buf 2930 third_party/libevent/evdns.c free(buf); buf 897 third_party/libevent/event.h int bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer *buf); buf 1151 third_party/libevent/event.h void evtag_marshal_string(struct evbuffer *buf, ev_uint32_t tag, buf 209 third_party/libevent/event_tagging.c evtag_marshal_string(struct evbuffer *buf, ev_uint32_t tag, const char *string) buf 211 third_party/libevent/event_tagging.c evtag_marshal(buf, tag, string, strlen(string)); buf 224 third_party/libevent/evutil.c evutil_snprintf(char *buf, size_t buflen, const char *format, ...) buf 229 third_party/libevent/evutil.c r = evutil_vsnprintf(buf, buflen, format, ap); buf 235 third_party/libevent/evutil.c evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap) buf 238 third_party/libevent/evutil.c int r = _vsnprintf(buf, buflen, format, ap); buf 239 third_party/libevent/evutil.c buf[buflen-1] = '\0'; buf 245 third_party/libevent/evutil.c int r = vsnprintf(buf, buflen, format, ap); buf 246 third_party/libevent/evutil.c buf[buflen-1] = '\0'; buf 175 third_party/libevent/evutil.h int evutil_snprintf(char *buf, size_t buflen, const char *format, ...) buf 180 third_party/libevent/evutil.h int evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap); buf 244 third_party/libevent/http.c html_replace(char ch, char *buf) buf 262 third_party/libevent/http.c buf[0] = ch; buf 263 third_party/libevent/http.c buf[1] = '\0'; buf 265 third_party/libevent/http.c return buf; buf 784 third_party/libevent/http.c evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf) buf 788 third_party/libevent/http.c while ((len = EVBUFFER_LENGTH(buf)) > 0) { buf 792 third_party/libevent/http.c char *p = evbuffer_readline(buf); buf 825 third_party/libevent/http.c EVBUFFER_DATA(buf), (size_t)req->ntoread); buf 826 third_party/libevent/http.c evbuffer_drain(buf, (size_t)req->ntoread); buf 841 third_party/libevent/http.c struct evbuffer *buf = evcon->input_buffer; buf 843 third_party/libevent/http.c switch (evhttp_parse_headers(req, buf)) { buf 862 third_party/libevent/http.c struct evbuffer *buf = evcon->input_buffer; buf 865 third_party/libevent/http.c switch (evhttp_handle_chunked_read(req, buf)) { buf 886 third_party/libevent/http.c evbuffer_add_buffer(req->input_buffer, buf); buf 887 third_party/libevent/http.c } else if (EVBUFFER_LENGTH(buf) >= req->ntoread) { buf 889 third_party/libevent/http.c evbuffer_add(req->input_buffer, EVBUFFER_DATA(buf), buf 891 third_party/libevent/http.c evbuffer_drain(buf, (size_t)req->ntoread); buf 914 third_party/libevent/http.c struct evbuffer *buf = evcon->input_buffer; buf 921 third_party/libevent/http.c n = evbuffer_read(buf, fd, -1); buf 922 third_party/libevent/http.c len = EVBUFFER_LENGTH(buf); buf 1899 third_party/libevent/http.c struct evbuffer *buf = evbuffer_new(); buf 1906 third_party/libevent/http.c evbuffer_add_printf(buf, ERR_FORMAT, error, reason); buf 1908 third_party/libevent/http.c evhttp_send_page(req, buf); buf 1910 third_party/libevent/http.c evbuffer_free(buf); buf 2047 third_party/libevent/http.c struct evbuffer *buf = evbuffer_new(); buf 2052 third_party/libevent/http.c evbuffer_add(buf, p, 1); buf 2054 third_party/libevent/http.c evbuffer_add_printf(buf, "%%%02X", (u_char)(*p)); buf 2057 third_party/libevent/http.c evbuffer_add(buf, "", 1); buf 2058 third_party/libevent/http.c p = strdup((char *)EVBUFFER_DATA(buf)); buf 2059 third_party/libevent/http.c evbuffer_free(buf); buf 2217 third_party/libevent/http.c struct evbuffer *buf = evbuffer_new(); buf 2221 third_party/libevent/http.c evbuffer_add_printf(buf, ERR_FORMAT, escaped_html); buf 2225 third_party/libevent/http.c evhttp_send_page(req, buf); buf 2227 third_party/libevent/http.c evbuffer_free(buf); buf 134 third_party/libevent/log.c char buf[1024]; buf 138 third_party/libevent/log.c evutil_vsnprintf(buf, sizeof(buf), fmt, ap); buf 140 third_party/libevent/log.c buf[0] = '\0'; buf 143 third_party/libevent/log.c len = strlen(buf); buf 144 third_party/libevent/log.c if (len < sizeof(buf) - 3) { buf 145 third_party/libevent/log.c evutil_snprintf(buf + len, sizeof(buf) - len, ": %s", buf 150 third_party/libevent/log.c event_log(severity, buf); buf 30 third_party/libevent/sample/event-test.c char buf[255]; buf 43 third_party/libevent/sample/event-test.c len = ReadFile((HANDLE)fd, buf, sizeof(buf) - 1, &dwBytesRead, NULL); buf 52 third_party/libevent/sample/event-test.c buf[dwBytesRead] = '\0'; buf 54 third_party/libevent/sample/event-test.c len = read(fd, buf, sizeof(buf) - 1); buf 64 third_party/libevent/sample/event-test.c buf[len] = '\0'; buf 66 third_party/libevent/sample/event-test.c fprintf(stdout, "Read: %s\n", buf); buf 88 third_party/libevent/test/regress.c #define write(fd,buf,len) send((fd),(buf),(len),0) buf 89 third_party/libevent/test/regress.c #define read(fd,buf,len) recv((fd),(buf),(len),0) buf 95 third_party/libevent/test/regress.c char buf[256]; buf 101 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); buf 230 third_party/libevent/test/regress.c char buf[128]; buf 233 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); buf 248 third_party/libevent/test/regress.c char buf[128]; buf 251 third_party/libevent/test/regress.c len = sizeof(buf); buf 255 third_party/libevent/test/regress.c len = write(fd, buf, len); buf 1031 third_party/libevent/test/regress.c struct evbuffer * buf = evbuffer_new(); buf 1035 third_party/libevent/test/regress.c evbuffer_add(buf, (u_char*)test1, strlen(test1)); buf 1036 third_party/libevent/test/regress.c evbuffer_drain(buf, strlen(test1)); buf 1037 third_party/libevent/test/regress.c evbuffer_add(buf, (u_char*)test2, strlen(test2)); buf 1038 third_party/libevent/test/regress.c p = evbuffer_find(buf, (u_char*)"\r\n", 2); buf 1051 third_party/libevent/test/regress.c evbuffer_drain(buf, strlen(test2)); buf 1055 third_party/libevent/test/regress.c evbuffer_add(buf, (u_char *)test3, EVBUFFER_INITIAL_LENGTH); buf 1056 third_party/libevent/test/regress.c p = evbuffer_find(buf, (u_char *)"xy", 2); buf 1066 third_party/libevent/test/regress.c p = evbuffer_find(buf, (u_char *)"ax", 2); buf 1074 third_party/libevent/test/regress.c evbuffer_free(buf); buf 1227 third_party/libevent/test/regress.c char buf[32]; buf 1231 third_party/libevent/test/regress.c evutil_snprintf(buf, sizeof(buf), "Testing Priorities %d: ", npriorities); buf 1232 third_party/libevent/test/regress.c setup_test(buf); buf 1317 third_party/libevent/test/regress.c char buf[256]; buf 1320 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); buf 94 third_party/libevent/test/regress_dns.c char buf[INET6_ADDRSTRLEN+1]; buf 100 third_party/libevent/test/regress_dns.c const char *b = inet_ntop(AF_INET6, &in6_addrs[i], buf,sizeof(buf)); buf 263 third_party/libevent/test/regress_dns.c char buf[INET6_ADDRSTRLEN+1]; buf 266 third_party/libevent/test/regress_dns.c const char *b = inet_ntop(AF_INET6, &in6_addrs[0],buf,sizeof(buf)); buf 39 third_party/libevent/test/test-eof.c char buf[256]; buf 42 third_party/libevent/test/test-eof.c len = recv(fd, buf, sizeof(buf), 0); buf 207 third_party/libjpeg/jdmainct.c JSAMPARRAY buf, xbuf0, xbuf1; buf 216 third_party/libjpeg/jdmainct.c buf = main->buffer[ci]; buf 218 third_party/libjpeg/jdmainct.c xbuf0[i] = xbuf1[i] = buf[i]; buf 222 third_party/libjpeg/jdmainct.c xbuf1[rgroup*(M-2) + i] = buf[rgroup*M + i]; buf 223 third_party/libjpeg/jdmainct.c xbuf1[rgroup*M + i] = buf[rgroup*(M-2) + i]; buf 88 third_party/libjpeg/jinclude.h #define JFREAD(file,buf,sizeofbuf) \ buf 89 third_party/libjpeg/jinclude.h ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) buf 90 third_party/libjpeg/jinclude.h #define JFWRITE(file,buf,sizeofbuf) \ buf 91 third_party/libjpeg/jinclude.h ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) buf 2867 third_party/libpng/png.h # define png_get_uint_32(buf) ( *((png_uint_32p) (buf))) buf 2868 third_party/libpng/png.h # define png_get_uint_16(buf) ( *((png_uint_16p) (buf))) buf 2869 third_party/libpng/png.h # define png_get_int_32(buf) ( *((png_int_32p) (buf))) buf 2871 third_party/libpng/png.h extern PNG_EXPORT(png_uint_32,png_get_uint_32) PNGARG((png_bytep buf)); buf 2872 third_party/libpng/png.h extern PNG_EXPORT(png_uint_16,png_get_uint_16) PNGARG((png_bytep buf)); buf 2873 third_party/libpng/png.h extern PNG_EXPORT(png_int_32,png_get_int_32) PNGARG((png_bytep buf)); buf 2876 third_party/libpng/png.h PNGARG((png_structp png_ptr, png_bytep buf)); buf 2882 third_party/libpng/png.h PNGARG((png_bytep buf, png_uint_32 i)); buf 2884 third_party/libpng/png.h PNGARG((png_bytep buf, png_int_32 i)); buf 2891 third_party/libpng/png.h PNGARG((png_bytep buf, unsigned int i)); buf 3198 third_party/libpng/png.h PNG_EXTERN void png_crc_read PNGARG((png_structp png_ptr, png_bytep buf, buf 104 third_party/libpng/pngrio.c png_byte buf[NEAR_BUF_SIZE]; buf 112 third_party/libpng/pngrio.c if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) ) buf 115 third_party/libpng/pngrio.c err = fread(buf, (png_size_t)1, read, io_ptr); buf 117 third_party/libpng/pngrio.c png_memcpy(data, buf, read); /* copy far buffer to near buffer */ buf 54 third_party/libpng/pngrutil.c png_get_uint_31(png_structp png_ptr, png_bytep buf) buf 57 third_party/libpng/pngrutil.c png_uint_32 i = png_get_uint_32(buf); buf 60 third_party/libpng/pngrutil.c png_uint_32 i = ((png_uint_32)(*buf) << 24) + buf 61 third_party/libpng/pngrutil.c ((png_uint_32)(*(buf + 1)) << 16) + buf 62 third_party/libpng/pngrutil.c ((png_uint_32)(*(buf + 2)) << 8) + buf 63 third_party/libpng/pngrutil.c (png_uint_32)(*(buf + 3)); buf 72 third_party/libpng/pngrutil.c png_get_uint_32(png_bytep buf) buf 74 third_party/libpng/pngrutil.c png_uint_32 i = ((png_uint_32)(*buf) << 24) + buf 75 third_party/libpng/pngrutil.c ((png_uint_32)(*(buf + 1)) << 16) + buf 76 third_party/libpng/pngrutil.c ((png_uint_32)(*(buf + 2)) << 8) + buf 77 third_party/libpng/pngrutil.c (png_uint_32)(*(buf + 3)); buf 87 third_party/libpng/pngrutil.c png_get_int_32(png_bytep buf) buf 89 third_party/libpng/pngrutil.c png_int_32 i = ((png_int_32)(*buf) << 24) + buf 90 third_party/libpng/pngrutil.c ((png_int_32)(*(buf + 1)) << 16) + buf 91 third_party/libpng/pngrutil.c ((png_int_32)(*(buf + 2)) << 8) + buf 92 third_party/libpng/pngrutil.c (png_int_32)(*(buf + 3)); buf 99 third_party/libpng/pngrutil.c png_get_uint_16(png_bytep buf) buf 101 third_party/libpng/pngrutil.c png_uint_16 i = (png_uint_16)(((png_uint_16)(*buf) << 8) + buf 102 third_party/libpng/pngrutil.c (png_uint_16)(*(buf + 1))); buf 114 third_party/libpng/pngrutil.c png_byte buf[8]; buf 118 third_party/libpng/pngrutil.c png_read_data(png_ptr, buf, 8); buf 119 third_party/libpng/pngrutil.c length = png_get_uint_31(png_ptr, buf); buf 122 third_party/libpng/pngrutil.c png_memcpy(png_ptr->chunk_name, buf + 4, 4); buf 139 third_party/libpng/pngrutil.c png_crc_read(png_structp png_ptr, png_bytep buf, png_size_t length) buf 143 third_party/libpng/pngrutil.c png_read_data(png_ptr, buf, length); buf 144 third_party/libpng/pngrutil.c png_calculate_crc(png_ptr, buf, length); buf 443 third_party/libpng/pngrutil.c png_byte buf[13]; buf 459 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 13); buf 462 third_party/libpng/pngrutil.c width = png_get_uint_31(png_ptr, buf); buf 463 third_party/libpng/pngrutil.c height = png_get_uint_31(png_ptr, buf + 4); buf 464 third_party/libpng/pngrutil.c bit_depth = buf[8]; buf 465 third_party/libpng/pngrutil.c color_type = buf[9]; buf 466 third_party/libpng/pngrutil.c compression_type = buf[10]; buf 467 third_party/libpng/pngrutil.c filter_type = buf[11]; buf 468 third_party/libpng/pngrutil.c interlace_type = buf[12]; buf 575 third_party/libpng/pngrutil.c png_byte buf[3]; buf 577 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 3); buf 578 third_party/libpng/pngrutil.c pal_ptr->red = buf[0]; buf 579 third_party/libpng/pngrutil.c pal_ptr->green = buf[1]; buf 580 third_party/libpng/pngrutil.c pal_ptr->blue = buf[2]; buf 585 third_party/libpng/pngrutil.c png_byte buf[3]; buf 587 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 3); buf 589 third_party/libpng/pngrutil.c palette[i].red = buf[0]; buf 590 third_party/libpng/pngrutil.c palette[i].green = buf[1]; buf 591 third_party/libpng/pngrutil.c palette[i].blue = buf[2]; buf 685 third_party/libpng/pngrutil.c png_byte buf[4]; buf 719 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 4); buf 723 third_party/libpng/pngrutil.c igamma = (png_fixed_point)png_get_uint_32(buf); buf 763 third_party/libpng/pngrutil.c png_byte buf[4]; buf 767 third_party/libpng/pngrutil.c buf[0] = buf[1] = buf[2] = buf[3] = 0; buf 801 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, truelen); buf 807 third_party/libpng/pngrutil.c png_ptr->sig_bit.red = buf[0]; buf 808 third_party/libpng/pngrutil.c png_ptr->sig_bit.green = buf[1]; buf 809 third_party/libpng/pngrutil.c png_ptr->sig_bit.blue = buf[2]; buf 810 third_party/libpng/pngrutil.c png_ptr->sig_bit.alpha = buf[3]; buf 814 third_party/libpng/pngrutil.c png_ptr->sig_bit.gray = buf[0]; buf 815 third_party/libpng/pngrutil.c png_ptr->sig_bit.red = buf[0]; buf 816 third_party/libpng/pngrutil.c png_ptr->sig_bit.green = buf[0]; buf 817 third_party/libpng/pngrutil.c png_ptr->sig_bit.blue = buf[0]; buf 818 third_party/libpng/pngrutil.c png_ptr->sig_bit.alpha = buf[1]; buf 828 third_party/libpng/pngrutil.c png_byte buf[32]; buf 869 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 32); buf 873 third_party/libpng/pngrutil.c uint_x = png_get_uint_32(buf); buf 874 third_party/libpng/pngrutil.c uint_y = png_get_uint_32(buf + 4); buf 878 third_party/libpng/pngrutil.c uint_x = png_get_uint_32(buf + 8); buf 879 third_party/libpng/pngrutil.c uint_y = png_get_uint_32(buf + 12); buf 883 third_party/libpng/pngrutil.c uint_x = png_get_uint_32(buf + 16); buf 884 third_party/libpng/pngrutil.c uint_y = png_get_uint_32(buf + 20); buf 888 third_party/libpng/pngrutil.c uint_x = png_get_uint_32(buf + 24); buf 889 third_party/libpng/pngrutil.c uint_y = png_get_uint_32(buf + 28); buf 955 third_party/libpng/pngrutil.c png_byte buf[1]; buf 985 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 1); buf 989 third_party/libpng/pngrutil.c intent = buf[0]; buf 1356 third_party/libpng/pngrutil.c png_byte buf[2]; buf 1365 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 2); buf 1367 third_party/libpng/pngrutil.c png_ptr->trans_values.gray = png_get_uint_16(buf); buf 1371 third_party/libpng/pngrutil.c png_byte buf[6]; buf 1379 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, (png_size_t)length); buf 1381 third_party/libpng/pngrutil.c png_ptr->trans_values.red = png_get_uint_16(buf); buf 1382 third_party/libpng/pngrutil.c png_ptr->trans_values.green = png_get_uint_16(buf + 2); buf 1383 third_party/libpng/pngrutil.c png_ptr->trans_values.blue = png_get_uint_16(buf + 4); buf 1431 third_party/libpng/pngrutil.c png_byte buf[6]; buf 1471 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, truelen); buf 1481 third_party/libpng/pngrutil.c png_ptr->background.index = buf[0]; buf 1484 third_party/libpng/pngrutil.c if (buf[0] >= info_ptr->num_palette) buf 1490 third_party/libpng/pngrutil.c (png_uint_16)png_ptr->palette[buf[0]].red; buf 1492 third_party/libpng/pngrutil.c (png_uint_16)png_ptr->palette[buf[0]].green; buf 1494 third_party/libpng/pngrutil.c (png_uint_16)png_ptr->palette[buf[0]].blue; buf 1502 third_party/libpng/pngrutil.c png_ptr->background.gray = png_get_uint_16(buf); buf 1506 third_party/libpng/pngrutil.c png_ptr->background.red = png_get_uint_16(buf); buf 1507 third_party/libpng/pngrutil.c png_ptr->background.green = png_get_uint_16(buf + 2); buf 1508 third_party/libpng/pngrutil.c png_ptr->background.blue = png_get_uint_16(buf + 4); buf 1556 third_party/libpng/pngrutil.c png_byte buf[2]; buf 1558 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 2); buf 1559 third_party/libpng/pngrutil.c readbuf[i] = png_get_uint_16(buf); buf 1573 third_party/libpng/pngrutil.c png_byte buf[9]; buf 1601 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 9); buf 1605 third_party/libpng/pngrutil.c res_x = png_get_uint_32(buf); buf 1606 third_party/libpng/pngrutil.c res_y = png_get_uint_32(buf + 4); buf 1607 third_party/libpng/pngrutil.c unit_type = buf[8]; buf 1616 third_party/libpng/pngrutil.c png_byte buf[9]; buf 1644 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 9); buf 1648 third_party/libpng/pngrutil.c offset_x = png_get_int_32(buf); buf 1649 third_party/libpng/pngrutil.c offset_y = png_get_int_32(buf + 4); buf 1650 third_party/libpng/pngrutil.c unit_type = buf[8]; buf 1662 third_party/libpng/pngrutil.c png_charp buf, units, endptr; buf 1706 third_party/libpng/pngrutil.c for (buf = png_ptr->chunkdata; *buf; buf++) buf 1713 third_party/libpng/pngrutil.c if (endptr <= buf + 12) buf 1722 third_party/libpng/pngrutil.c X0 = png_get_int_32((png_bytep)buf+1); buf 1723 third_party/libpng/pngrutil.c X1 = png_get_int_32((png_bytep)buf+5); buf 1724 third_party/libpng/pngrutil.c type = buf[9]; buf 1725 third_party/libpng/pngrutil.c nparams = buf[10]; buf 1726 third_party/libpng/pngrutil.c units = buf + 11; buf 1746 third_party/libpng/pngrutil.c for (buf = units; *buf; buf++) buf 1763 third_party/libpng/pngrutil.c buf++; /* Skip the null string terminator from previous parameter. */ buf 1766 third_party/libpng/pngrutil.c for (params[i] = buf; buf <= endptr && *buf != 0x00; buf++) buf 1770 third_party/libpng/pngrutil.c if (buf > endptr) buf 1958 third_party/libpng/pngrutil.c png_byte buf[7]; buf 1982 third_party/libpng/pngrutil.c png_crc_read(png_ptr, buf, 7); buf 1986 third_party/libpng/pngrutil.c mod_time.second = buf[6]; buf 1987 third_party/libpng/pngrutil.c mod_time.minute = buf[5]; buf 1988 third_party/libpng/pngrutil.c mod_time.hour = buf[4]; buf 1989 third_party/libpng/pngrutil.c mod_time.day = buf[3]; buf 1990 third_party/libpng/pngrutil.c mod_time.month = buf[2]; buf 1991 third_party/libpng/pngrutil.c mod_time.year = png_get_uint_16(buf); buf 97 third_party/libpng/pngwio.c png_byte buf[NEAR_BUF_SIZE]; buf 104 third_party/libpng/pngwio.c png_memcpy(buf, data, written); /* Copy far buffer to near buffer */ buf 106 third_party/libpng/pngwio.c if ( !WriteFile(io_ptr, buf, written, &err, NULL) ) buf 109 third_party/libpng/pngwio.c err = fwrite(buf, 1, written, io_ptr); buf 24 third_party/libpng/pngwutil.c png_save_uint_32(png_bytep buf, png_uint_32 i) buf 26 third_party/libpng/pngwutil.c buf[0] = (png_byte)((i >> 24) & 0xff); buf 27 third_party/libpng/pngwutil.c buf[1] = (png_byte)((i >> 16) & 0xff); buf 28 third_party/libpng/pngwutil.c buf[2] = (png_byte)((i >> 8) & 0xff); buf 29 third_party/libpng/pngwutil.c buf[3] = (png_byte)(i & 0xff); buf 37 third_party/libpng/pngwutil.c png_save_int_32(png_bytep buf, png_int_32 i) buf 39 third_party/libpng/pngwutil.c buf[0] = (png_byte)((i >> 24) & 0xff); buf 40 third_party/libpng/pngwutil.c buf[1] = (png_byte)((i >> 16) & 0xff); buf 41 third_party/libpng/pngwutil.c buf[2] = (png_byte)((i >> 8) & 0xff); buf 42 third_party/libpng/pngwutil.c buf[3] = (png_byte)(i & 0xff); buf 50 third_party/libpng/pngwutil.c png_save_uint_16(png_bytep buf, unsigned int i) buf 52 third_party/libpng/pngwutil.c buf[0] = (png_byte)((i >> 8) & 0xff); buf 53 third_party/libpng/pngwutil.c buf[1] = (png_byte)(i & 0xff); buf 102 third_party/libpng/pngwutil.c png_byte buf[8]; buf 112 third_party/libpng/pngwutil.c png_save_uint_32(buf, length); buf 113 third_party/libpng/pngwutil.c png_memcpy(buf + 4, chunk_name, 4); buf 114 third_party/libpng/pngwutil.c png_write_data(png_ptr, buf, (png_size_t)8); buf 147 third_party/libpng/pngwutil.c png_byte buf[4]; buf 152 third_party/libpng/pngwutil.c png_save_uint_32(buf, png_ptr->crc); buf 154 third_party/libpng/pngwutil.c png_write_data(png_ptr, buf, (png_size_t)4); buf 401 third_party/libpng/pngwutil.c png_byte buf[13]; /* Buffer to store the IHDR info */ buf 508 third_party/libpng/pngwutil.c png_save_uint_32(buf, width); buf 509 third_party/libpng/pngwutil.c png_save_uint_32(buf + 4, height); buf 510 third_party/libpng/pngwutil.c buf[8] = (png_byte)bit_depth; buf 511 third_party/libpng/pngwutil.c buf[9] = (png_byte)color_type; buf 512 third_party/libpng/pngwutil.c buf[10] = (png_byte)compression_type; buf 513 third_party/libpng/pngwutil.c buf[11] = (png_byte)filter_type; buf 514 third_party/libpng/pngwutil.c buf[12] = (png_byte)interlace_type; buf 517 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_IHDR, buf, (png_size_t)13); buf 580 third_party/libpng/pngwutil.c png_byte buf[3]; buf 616 third_party/libpng/pngwutil.c buf[0] = pal_ptr->red; buf 617 third_party/libpng/pngwutil.c buf[1] = pal_ptr->green; buf 618 third_party/libpng/pngwutil.c buf[2] = pal_ptr->blue; buf 619 third_party/libpng/pngwutil.c png_write_chunk_data(png_ptr, buf, (png_size_t)3); buf 628 third_party/libpng/pngwutil.c buf[0] = pal_ptr[i].red; buf 629 third_party/libpng/pngwutil.c buf[1] = pal_ptr[i].green; buf 630 third_party/libpng/pngwutil.c buf[2] = pal_ptr[i].blue; buf 631 third_party/libpng/pngwutil.c png_write_chunk_data(png_ptr, buf, (png_size_t)3); buf 718 third_party/libpng/pngwutil.c png_byte buf[4]; buf 724 third_party/libpng/pngwutil.c png_save_uint_32(buf, igamma); buf 725 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_gAMA, buf, (png_size_t)4); buf 735 third_party/libpng/pngwutil.c png_byte buf[4]; buf 740 third_party/libpng/pngwutil.c png_save_uint_32(buf, (png_uint_32)file_gamma); buf 741 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_gAMA, buf, (png_size_t)4); buf 754 third_party/libpng/pngwutil.c png_byte buf[1]; buf 761 third_party/libpng/pngwutil.c buf[0]=(png_byte)srgb_intent; buf 762 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_sRGB, buf, (png_size_t)1); buf 936 third_party/libpng/pngwutil.c png_byte buf[4]; buf 955 third_party/libpng/pngwutil.c buf[0] = sbit->red; buf 956 third_party/libpng/pngwutil.c buf[1] = sbit->green; buf 957 third_party/libpng/pngwutil.c buf[2] = sbit->blue; buf 967 third_party/libpng/pngwutil.c buf[0] = sbit->gray; buf 978 third_party/libpng/pngwutil.c buf[size++] = sbit->alpha; buf 981 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_sBIT, buf, size); buf 996 third_party/libpng/pngwutil.c png_byte buf[32]; buf 1019 third_party/libpng/pngwutil.c png_save_uint_32(buf, int_white_x); buf 1020 third_party/libpng/pngwutil.c png_save_uint_32(buf + 4, int_white_y); buf 1022 third_party/libpng/pngwutil.c png_save_uint_32(buf + 8, int_red_x); buf 1023 third_party/libpng/pngwutil.c png_save_uint_32(buf + 12, int_red_y); buf 1025 third_party/libpng/pngwutil.c png_save_uint_32(buf + 16, int_green_x); buf 1026 third_party/libpng/pngwutil.c png_save_uint_32(buf + 20, int_green_y); buf 1028 third_party/libpng/pngwutil.c png_save_uint_32(buf + 24, int_blue_x); buf 1029 third_party/libpng/pngwutil.c png_save_uint_32(buf + 28, int_blue_y); buf 1031 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_cHRM, buf, (png_size_t)32); buf 1045 third_party/libpng/pngwutil.c png_byte buf[32]; buf 1055 third_party/libpng/pngwutil.c png_save_uint_32(buf, (png_uint_32)white_x); buf 1056 third_party/libpng/pngwutil.c png_save_uint_32(buf + 4, (png_uint_32)white_y); buf 1058 third_party/libpng/pngwutil.c png_save_uint_32(buf + 8, (png_uint_32)red_x); buf 1059 third_party/libpng/pngwutil.c png_save_uint_32(buf + 12, (png_uint_32)red_y); buf 1061 third_party/libpng/pngwutil.c png_save_uint_32(buf + 16, (png_uint_32)green_x); buf 1062 third_party/libpng/pngwutil.c png_save_uint_32(buf + 20, (png_uint_32)green_y); buf 1064 third_party/libpng/pngwutil.c png_save_uint_32(buf + 24, (png_uint_32)blue_x); buf 1065 third_party/libpng/pngwutil.c png_save_uint_32(buf + 28, (png_uint_32)blue_y); buf 1067 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_cHRM, buf, (png_size_t)32); buf 1082 third_party/libpng/pngwutil.c png_byte buf[6]; buf 1106 third_party/libpng/pngwutil.c png_save_uint_16(buf, tran->gray); buf 1107 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_tRNS, buf, (png_size_t)2); buf 1112 third_party/libpng/pngwutil.c png_save_uint_16(buf, tran->red); buf 1113 third_party/libpng/pngwutil.c png_save_uint_16(buf + 2, tran->green); buf 1114 third_party/libpng/pngwutil.c png_save_uint_16(buf + 4, tran->blue); buf 1115 third_party/libpng/pngwutil.c if (png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4])) buf 1121 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_tRNS, buf, (png_size_t)6); buf 1138 third_party/libpng/pngwutil.c png_byte buf[6]; buf 1154 third_party/libpng/pngwutil.c buf[0] = back->index; buf 1155 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_bKGD, buf, (png_size_t)1); buf 1159 third_party/libpng/pngwutil.c png_save_uint_16(buf, back->red); buf 1160 third_party/libpng/pngwutil.c png_save_uint_16(buf + 2, back->green); buf 1161 third_party/libpng/pngwutil.c png_save_uint_16(buf + 4, back->blue); buf 1162 third_party/libpng/pngwutil.c if (png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4])) buf 1168 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_bKGD, buf, (png_size_t)6); buf 1178 third_party/libpng/pngwutil.c png_save_uint_16(buf, back->gray); buf 1179 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_bKGD, buf, (png_size_t)2); buf 1193 third_party/libpng/pngwutil.c png_byte buf[3]; buf 1209 third_party/libpng/pngwutil.c png_save_uint_16(buf, hist[i]); buf 1210 third_party/libpng/pngwutil.c png_write_chunk_data(png_ptr, buf, (png_size_t)2); buf 1399 third_party/libpng/pngwutil.c char buf[1]; buf 1438 third_party/libpng/pngwutil.c buf[0] = (png_byte)compression; buf 1440 third_party/libpng/pngwutil.c png_write_chunk_data(png_ptr, (png_bytep)buf, (png_size_t)1); buf 1547 third_party/libpng/pngwutil.c png_byte buf[9]; buf 1554 third_party/libpng/pngwutil.c png_save_int_32(buf, x_offset); buf 1555 third_party/libpng/pngwutil.c png_save_int_32(buf + 4, y_offset); buf 1556 third_party/libpng/pngwutil.c buf[8] = (png_byte)unit_type; buf 1558 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_oFFs, buf, (png_size_t)9); buf 1572 third_party/libpng/pngwutil.c png_byte buf[10]; buf 1604 third_party/libpng/pngwutil.c png_save_int_32(buf, X0); buf 1605 third_party/libpng/pngwutil.c png_save_int_32(buf + 4, X1); buf 1606 third_party/libpng/pngwutil.c buf[8] = (png_byte)type; buf 1607 third_party/libpng/pngwutil.c buf[9] = (png_byte)nparams; buf 1608 third_party/libpng/pngwutil.c png_write_chunk_data(png_ptr, buf, (png_size_t)10); buf 1633 third_party/libpng/pngwutil.c char buf[64]; buf 1638 third_party/libpng/pngwutil.c buf[0] = (char)unit; buf 1646 third_party/libpng/pngwutil.c WideCharToMultiByte(CP_ACP, 0, wc_buf, -1, buf + 1, wc_len, NULL, buf 1651 third_party/libpng/pngwutil.c WideCharToMultiByte(CP_ACP, 0, wc_buf, -1, buf + total_len, wc_len, buf 1656 third_party/libpng/pngwutil.c png_snprintf(buf + 1, 63, "%12.12e", width); buf 1657 third_party/libpng/pngwutil.c total_len = 1 + png_strlen(buf + 1) + 1; buf 1658 third_party/libpng/pngwutil.c png_snprintf(buf + total_len, 64-total_len, "%12.12e", height); buf 1659 third_party/libpng/pngwutil.c total_len += png_strlen(buf + total_len); buf 1663 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_sCAL, (png_bytep)buf, total_len); buf 1674 third_party/libpng/pngwutil.c png_byte buf[64]; buf 1688 third_party/libpng/pngwutil.c buf[0] = (png_byte)unit; buf 1689 third_party/libpng/pngwutil.c png_memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ buf 1690 third_party/libpng/pngwutil.c png_memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ buf 1693 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_sCAL, buf, total_len); buf 1709 third_party/libpng/pngwutil.c png_byte buf[9]; buf 1716 third_party/libpng/pngwutil.c png_save_uint_32(buf, x_pixels_per_unit); buf 1717 third_party/libpng/pngwutil.c png_save_uint_32(buf + 4, y_pixels_per_unit); buf 1718 third_party/libpng/pngwutil.c buf[8] = (png_byte)unit_type; buf 1720 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_pHYs, buf, (png_size_t)9); buf 1734 third_party/libpng/pngwutil.c png_byte buf[7]; buf 1746 third_party/libpng/pngwutil.c png_save_uint_16(buf, mod_time->year); buf 1747 third_party/libpng/pngwutil.c buf[2] = mod_time->month; buf 1748 third_party/libpng/pngwutil.c buf[3] = mod_time->day; buf 1749 third_party/libpng/pngwutil.c buf[4] = mod_time->hour; buf 1750 third_party/libpng/pngwutil.c buf[5] = mod_time->minute; buf 1751 third_party/libpng/pngwutil.c buf[6] = mod_time->second; buf 1753 third_party/libpng/pngwutil.c png_write_chunk(png_ptr, (png_bytep)png_tIME, buf, (png_size_t)7); buf 2076 third_party/libusb/src/libusb/core.c char buf[USBI_MAX_LOG_LEN]; buf 2133 third_party/libusb/src/libusb/core.c header_len = snprintf(buf, sizeof(buf), buf 2137 third_party/libusb/src/libusb/core.c header_len = snprintf(buf, sizeof(buf), buf 2141 third_party/libusb/src/libusb/core.c if (header_len < 0 || header_len >= sizeof(buf)) { buf 2147 third_party/libusb/src/libusb/core.c buf[header_len] = '\0'; buf 2148 third_party/libusb/src/libusb/core.c text_len = vsnprintf(buf + header_len, sizeof(buf) - header_len, buf 2150 third_party/libusb/src/libusb/core.c if (text_len < 0 || text_len + header_len >= sizeof(buf)) { buf 2153 third_party/libusb/src/libusb/core.c text_len = sizeof(buf) - header_len; buf 2155 third_party/libusb/src/libusb/core.c if (header_len + text_len + sizeof(USBI_LOG_LINE_END) >= sizeof(buf)) { buf 2157 third_party/libusb/src/libusb/core.c text_len -= (header_len + text_len + sizeof(USBI_LOG_LINE_END)) - sizeof(buf); buf 2159 third_party/libusb/src/libusb/core.c strcpy(buf + header_len + text_len, USBI_LOG_LINE_END); buf 2161 third_party/libusb/src/libusb/core.c usbi_log_str(ctx, level, buf); buf 498 third_party/libusb/src/libusb/descriptor.c unsigned char *buf, int size, int host_endian, buf 507 third_party/libusb/src/libusb/descriptor.c r = parse_configuration(ctx, _config, buf, size, host_endian); buf 579 third_party/libusb/src/libusb/descriptor.c unsigned char *buf = NULL; buf 594 third_party/libusb/src/libusb/descriptor.c buf = malloc(_config.wTotalLength); buf 595 third_party/libusb/src/libusb/descriptor.c if (!buf) buf 598 third_party/libusb/src/libusb/descriptor.c r = usbi_backend->get_active_config_descriptor(dev, buf, buf 601 third_party/libusb/src/libusb/descriptor.c r = raw_desc_to_config(dev->ctx, buf, r, host_endian, config); buf 603 third_party/libusb/src/libusb/descriptor.c free(buf); buf 628 third_party/libusb/src/libusb/descriptor.c unsigned char *buf = NULL; buf 647 third_party/libusb/src/libusb/descriptor.c buf = malloc(_config.wTotalLength); buf 648 third_party/libusb/src/libusb/descriptor.c if (!buf) buf 651 third_party/libusb/src/libusb/descriptor.c r = usbi_backend->get_config_descriptor(dev, config_index, buf, buf 654 third_party/libusb/src/libusb/descriptor.c r = raw_desc_to_config(dev->ctx, buf, r, host_endian, config); buf 656 third_party/libusb/src/libusb/descriptor.c free(buf); buf 711 third_party/libusb/src/libusb/descriptor.c unsigned char *buf = NULL; buf 715 third_party/libusb/src/libusb/descriptor.c bConfigurationValue, &buf, &host_endian); buf 718 third_party/libusb/src/libusb/descriptor.c return raw_desc_to_config(dev->ctx, buf, r, host_endian, config); buf 285 third_party/libusb/src/libusb/os/openbsd_usb.c obsd_get_device_descriptor(struct libusb_device *dev, unsigned char *buf, buf 292 third_party/libusb/src/libusb/os/openbsd_usb.c memcpy(buf, &dpriv->ddesc, DEVICE_DESC_LENGTH); buf 301 third_party/libusb/src/libusb/os/openbsd_usb.c unsigned char *buf, size_t len, int *host_endian) buf 310 third_party/libusb/src/libusb/os/openbsd_usb.c memcpy(buf, dpriv->cdesc, len); buf 319 third_party/libusb/src/libusb/os/openbsd_usb.c unsigned char *buf, size_t len, int *host_endian) buf 331 third_party/libusb/src/libusb/os/openbsd_usb.c udf.udf_data = buf; buf 632 third_party/libusb/src/libusb/os/openbsd_usb.c unsigned char* buf; buf 652 third_party/libusb/src/libusb/os/openbsd_usb.c buf = malloc(len); buf 653 third_party/libusb/src/libusb/os/openbsd_usb.c if (buf == NULL) buf 660 third_party/libusb/src/libusb/os/openbsd_usb.c udf.udf_data = buf; buf 667 third_party/libusb/src/libusb/os/openbsd_usb.c free(buf); buf 674 third_party/libusb/src/libusb/os/openbsd_usb.c dpriv->cdesc = buf; buf 651 third_party/libusb/src/libusb/os/poll_windows.c ssize_t usbi_write(int fd, const void *buf, size_t count) buf 654 third_party/libusb/src/libusb/os/poll_windows.c UNUSED(buf); buf 687 third_party/libusb/src/libusb/os/poll_windows.c ssize_t usbi_read(int fd, void *buf, size_t count) buf 691 third_party/libusb/src/libusb/os/poll_windows.c UNUSED(buf); buf 89 third_party/libusb/src/libusb/os/poll_windows.h ssize_t usbi_write(int fd, const void *buf, size_t count); buf 90 third_party/libusb/src/libusb/os/poll_windows.h ssize_t usbi_read(int fd, void *buf, size_t count); buf 656 third_party/libusb/src/libusb/os/wince_usb.c PVOID buf = (PVOID) &transfer->buffer[sizeof(UKW_CONTROL_HEADER)]; buf 658 third_party/libusb/src/libusb/os/wince_usb.c ret = UkwIssueControlTransfer(priv->dev, flags, setup, buf, bufLen, &transfer->actual_length, wfd.overlapped); buf 3439 third_party/libusb/src/libusb/os/windows_usb.c uint8_t *buf; buf 3465 third_party/libusb/src/libusb/os/windows_usb.c buf = (uint8_t*)calloc(expected_size+1, 1); buf 3466 third_party/libusb/src/libusb/os/windows_usb.c if (buf == NULL) { buf 3469 third_party/libusb/src/libusb/os/windows_usb.c buf[0] = (uint8_t)id; // Must be set always buf 3470 third_party/libusb/src/libusb/os/windows_usb.c usbi_dbg("report ID: 0x%02X", buf[0]); buf 3476 third_party/libusb/src/libusb/os/windows_usb.c if (!DeviceIoControl(hid_handle, ioctl_code, buf, expected_size+1, buf 3477 third_party/libusb/src/libusb/os/windows_usb.c buf, expected_size+1, &read_size, overlapped)) { buf 3480 third_party/libusb/src/libusb/os/windows_usb.c safe_free(buf); buf 3484 third_party/libusb/src/libusb/os/windows_usb.c tp->hid_buffer = buf; buf 3494 third_party/libusb/src/libusb/os/windows_usb.c if (buf[0] != id) { buf 3495 third_party/libusb/src/libusb/os/windows_usb.c usbi_warn(NULL, "mismatched report ID (data is %02X, parameter is %02X)", buf[0], id); buf 3507 third_party/libusb/src/libusb/os/windows_usb.c memcpy(data, buf+1, *size); buf 3509 third_party/libusb/src/libusb/os/windows_usb.c memcpy(data, buf, *size); buf 3512 third_party/libusb/src/libusb/os/windows_usb.c safe_free(buf); buf 3520 third_party/libusb/src/libusb/os/windows_usb.c uint8_t *buf = NULL; buf 3550 third_party/libusb/src/libusb/os/windows_usb.c buf = (uint8_t*) malloc(write_size); buf 3551 third_party/libusb/src/libusb/os/windows_usb.c if (buf == NULL) { buf 3555 third_party/libusb/src/libusb/os/windows_usb.c buf[0] = 0; buf 3556 third_party/libusb/src/libusb/os/windows_usb.c memcpy(buf + 1, data, *size); buf 3560 third_party/libusb/src/libusb/os/windows_usb.c memcpy(buf, data, *size); buf 3561 third_party/libusb/src/libusb/os/windows_usb.c if (buf[0] != id) { buf 3562 third_party/libusb/src/libusb/os/windows_usb.c usbi_warn(NULL, "mismatched report ID (data is %02X, parameter is %02X)", buf[0], id); buf 3567 third_party/libusb/src/libusb/os/windows_usb.c if (!DeviceIoControl(hid_handle, ioctl_code, buf, write_size, buf 3568 third_party/libusb/src/libusb/os/windows_usb.c buf, write_size, &write_size, overlapped)) { buf 3571 third_party/libusb/src/libusb/os/windows_usb.c safe_free(buf); buf 3574 third_party/libusb/src/libusb/os/windows_usb.c tp->hid_buffer = buf; buf 3584 third_party/libusb/src/libusb/os/windows_usb.c safe_free(buf); buf 1812 third_party/libva/va/va.h void *buf; buf 2024 third_party/libva/va/va.h VABufferID buf; /* image data buffer */ buf 44 third_party/libwebp/dec/buffer.c const WebPYUVABuffer* const buf = &buffer->u.YUVA; buf 45 third_party/libwebp/dec/buffer.c const uint64_t y_size = (uint64_t)buf->y_stride * height; buf 46 third_party/libwebp/dec/buffer.c const uint64_t u_size = (uint64_t)buf->u_stride * ((height + 1) / 2); buf 47 third_party/libwebp/dec/buffer.c const uint64_t v_size = (uint64_t)buf->v_stride * ((height + 1) / 2); buf 48 third_party/libwebp/dec/buffer.c const uint64_t a_size = (uint64_t)buf->a_stride * height; buf 49 third_party/libwebp/dec/buffer.c ok &= (y_size <= buf->y_size); buf 50 third_party/libwebp/dec/buffer.c ok &= (u_size <= buf->u_size); buf 51 third_party/libwebp/dec/buffer.c ok &= (v_size <= buf->v_size); buf 52 third_party/libwebp/dec/buffer.c ok &= (buf->y_stride >= width); buf 53 third_party/libwebp/dec/buffer.c ok &= (buf->u_stride >= (width + 1) / 2); buf 54 third_party/libwebp/dec/buffer.c ok &= (buf->v_stride >= (width + 1) / 2); buf 55 third_party/libwebp/dec/buffer.c ok &= (buf->y != NULL); buf 56 third_party/libwebp/dec/buffer.c ok &= (buf->u != NULL); buf 57 third_party/libwebp/dec/buffer.c ok &= (buf->v != NULL); buf 59 third_party/libwebp/dec/buffer.c ok &= (buf->a_stride >= width); buf 60 third_party/libwebp/dec/buffer.c ok &= (a_size <= buf->a_size); buf 61 third_party/libwebp/dec/buffer.c ok &= (buf->a != NULL); buf 64 third_party/libwebp/dec/buffer.c const WebPRGBABuffer* const buf = &buffer->u.RGBA; buf 65 third_party/libwebp/dec/buffer.c const uint64_t size = (uint64_t)buf->stride * height; buf 66 third_party/libwebp/dec/buffer.c ok &= (size <= buf->size); buf 67 third_party/libwebp/dec/buffer.c ok &= (buf->stride >= width * kModeBpp[mode]); buf 68 third_party/libwebp/dec/buffer.c ok &= (buf->rgba != NULL); buf 109 third_party/libwebp/dec/buffer.c WebPYUVABuffer* const buf = &buffer->u.YUVA; buf 110 third_party/libwebp/dec/buffer.c buf->y = output; buf 111 third_party/libwebp/dec/buffer.c buf->y_stride = stride; buf 112 third_party/libwebp/dec/buffer.c buf->y_size = (size_t)size; buf 113 third_party/libwebp/dec/buffer.c buf->u = output + size; buf 114 third_party/libwebp/dec/buffer.c buf->u_stride = uv_stride; buf 115 third_party/libwebp/dec/buffer.c buf->u_size = (size_t)uv_size; buf 116 third_party/libwebp/dec/buffer.c buf->v = output + size + uv_size; buf 117 third_party/libwebp/dec/buffer.c buf->v_stride = uv_stride; buf 118 third_party/libwebp/dec/buffer.c buf->v_size = (size_t)uv_size; buf 120 third_party/libwebp/dec/buffer.c buf->a = output + size + 2 * uv_size; buf 122 third_party/libwebp/dec/buffer.c buf->a_size = (size_t)a_size; buf 123 third_party/libwebp/dec/buffer.c buf->a_stride = a_stride; buf 125 third_party/libwebp/dec/buffer.c WebPRGBABuffer* const buf = &buffer->u.RGBA; buf 126 third_party/libwebp/dec/buffer.c buf->rgba = output; buf 127 third_party/libwebp/dec/buffer.c buf->stride = stride; buf 128 third_party/libwebp/dec/buffer.c buf->size = (size_t)size; buf 26 third_party/libwebp/dec/io.c const WebPYUVABuffer* const buf = &output->u.YUVA; buf 27 third_party/libwebp/dec/io.c uint8_t* const y_dst = buf->y + io->mb_y * buf->y_stride; buf 28 third_party/libwebp/dec/io.c uint8_t* const u_dst = buf->u + (io->mb_y >> 1) * buf->u_stride; buf 29 third_party/libwebp/dec/io.c uint8_t* const v_dst = buf->v + (io->mb_y >> 1) * buf->v_stride; buf 36 third_party/libwebp/dec/io.c memcpy(y_dst + j * buf->y_stride, io->y + j * io->y_stride, mb_w); buf 39 third_party/libwebp/dec/io.c memcpy(u_dst + j * buf->u_stride, io->u + j * io->uv_stride, uv_w); buf 40 third_party/libwebp/dec/io.c memcpy(v_dst + j * buf->v_stride, io->v + j * io->uv_stride, uv_w); buf 48 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &output->u.RGBA; buf 49 third_party/libwebp/dec/io.c uint8_t* dst = buf->rgba + io->mb_y * buf->stride; buf 59 third_party/libwebp/dec/io.c dst, dst + buf->stride, mb_w); buf 63 third_party/libwebp/dec/io.c dst += 2 * buf->stride; buf 77 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &output->u.RGBA; buf 78 third_party/libwebp/dec/io.c uint8_t* dst = buf->rgba + io->mb_y * buf->stride; buf 91 third_party/libwebp/dec/io.c dst += buf->stride; buf 103 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 104 third_party/libwebp/dec/io.c uint8_t* dst = buf->rgba + io->mb_y * buf->stride; buf 122 third_party/libwebp/dec/io.c dst - buf->stride, dst, mb_w); buf 131 third_party/libwebp/dec/io.c dst += 2 * buf->stride; buf 135 third_party/libwebp/dec/io.c dst - buf->stride, dst, mb_w); buf 151 third_party/libwebp/dec/io.c dst + buf->stride, NULL, mb_w); buf 163 third_party/libwebp/dec/io.c const WebPYUVABuffer* const buf = &p->output->u.YUVA; buf 166 third_party/libwebp/dec/io.c uint8_t* dst = buf->a + io->mb_y * buf->a_stride; buf 173 third_party/libwebp/dec/io.c dst += buf->a_stride; buf 175 third_party/libwebp/dec/io.c } else if (buf->a != NULL) { buf 179 third_party/libwebp/dec/io.c dst += buf->a_stride; buf 218 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 221 third_party/libwebp/dec/io.c uint8_t* const base_rgba = buf->rgba + start_y * buf->stride; buf 233 third_party/libwebp/dec/io.c dst += buf->stride; buf 238 third_party/libwebp/dec/io.c mb_w, num_rows, buf->stride); buf 249 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 252 third_party/libwebp/dec/io.c uint8_t* const base_rgba = buf->rgba + start_y * buf->stride; buf 265 third_party/libwebp/dec/io.c alpha_dst += buf->stride; buf 268 third_party/libwebp/dec/io.c WebPApplyAlphaMultiply4444(base_rgba, mb_w, num_rows, buf->stride); buf 307 third_party/libwebp/dec/io.c const WebPYUVABuffer* const buf = &p->output->u.YUVA; buf 329 third_party/libwebp/dec/io.c buf->y, out_width, out_height, buf->y_stride, 1, buf 333 third_party/libwebp/dec/io.c buf->u, uv_out_width, uv_out_height, buf->u_stride, 1, buf 338 third_party/libwebp/dec/io.c buf->v, uv_out_width, uv_out_height, buf->v_stride, 1, buf 346 third_party/libwebp/dec/io.c buf->a, out_width, out_height, buf->a_stride, 1, buf 360 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 361 third_party/libwebp/dec/io.c uint8_t* dst = buf->rgba + (p->last_y + y_pos) * buf->stride; buf 374 third_party/libwebp/dec/io.c dst += buf->stride; buf 405 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 406 third_party/libwebp/dec/io.c uint8_t* const base_rgba = buf->rgba + (p->last_y + y_pos) * buf->stride; buf 425 third_party/libwebp/dec/io.c dst += buf->stride; buf 430 third_party/libwebp/dec/io.c width, num_lines_out, buf->stride); buf 436 third_party/libwebp/dec/io.c const WebPRGBABuffer* const buf = &p->output->u.RGBA; buf 437 third_party/libwebp/dec/io.c uint8_t* const base_rgba = buf->rgba + (p->last_y + y_pos) * buf->stride; buf 455 third_party/libwebp/dec/io.c alpha_dst += buf->stride; buf 459 third_party/libwebp/dec/io.c WebPApplyAlphaMultiply4444(base_rgba, width, num_lines_out, buf->stride); buf 190 third_party/libwebp/dec/vp8.c const uint8_t* buf, size_t size) { buf 192 third_party/libwebp/dec/vp8.c const uint8_t* sz = buf; buf 193 third_party/libwebp/dec/vp8.c const uint8_t* buf_end = buf + size; buf 200 third_party/libwebp/dec/vp8.c part_start = buf + last_part * 3; buf 246 third_party/libwebp/dec/vp8.c const uint8_t* buf; buf 261 third_party/libwebp/dec/vp8.c buf = io->data; buf 270 third_party/libwebp/dec/vp8.c const uint32_t bits = buf[0] | (buf[1] << 8) | (buf[2] << 16); buf 282 third_party/libwebp/dec/vp8.c buf += 3; buf 293 third_party/libwebp/dec/vp8.c if (!VP8CheckSignature(buf, buf_size)) { buf 297 third_party/libwebp/dec/vp8.c pic_hdr->width_ = ((buf[4] << 8) | buf[3]) & 0x3fff; buf 298 third_party/libwebp/dec/vp8.c pic_hdr->xscale_ = buf[4] >> 6; // ratio: 1, 5/4 5/3 or 2 buf 299 third_party/libwebp/dec/vp8.c pic_hdr->height_ = ((buf[6] << 8) | buf[5]) & 0x3fff; buf 300 third_party/libwebp/dec/vp8.c pic_hdr->yscale_ = buf[6] >> 6; buf 301 third_party/libwebp/dec/vp8.c buf += 7; buf 331 third_party/libwebp/dec/vp8.c VP8InitBitReader(br, buf, buf + frm_hdr->partition_length_); buf 332 third_party/libwebp/dec/vp8.c buf += frm_hdr->partition_length_; buf 348 third_party/libwebp/dec/vp8.c status = ParsePartitions(dec, buf, buf_size); buf 371 third_party/libwebp/dec/vp8.c const uint8_t* ext_buf = buf - kTrailerSize; buf 473 third_party/libwebp/dec/vp8l.c const WebPYUVABuffer* const buf = &output->u.YUVA; buf 477 third_party/libwebp/dec/vp8l.c uint8_t* const y = buf->y + y_pos * buf->y_stride; buf 487 third_party/libwebp/dec/vp8l.c uint8_t* const u = buf->u + (y_pos >> 1) * buf->u_stride; buf 488 third_party/libwebp/dec/vp8l.c uint8_t* const v = buf->v + (y_pos >> 1) * buf->v_stride; buf 527 third_party/libwebp/dec/vp8l.c if (buf->a != NULL) { buf 529 third_party/libwebp/dec/vp8l.c uint8_t* const a = buf->a + y_pos * buf->a_stride; buf 680 third_party/libwebp/dec/vp8l.c const WebPRGBABuffer* const buf = &output->u.RGBA; buf 681 third_party/libwebp/dec/vp8l.c uint8_t* const rgba = buf->rgba + dec->last_out_row_ * buf->stride; buf 684 third_party/libwebp/dec/vp8l.c rgba, buf->stride) : buf 686 third_party/libwebp/dec/vp8l.c io->mb_w, io->mb_h, rgba, buf->stride); buf 154 third_party/libwebp/dec/webp.c const uint8_t* buf; buf 161 third_party/libwebp/dec/webp.c buf = *data; buf 173 third_party/libwebp/dec/webp.c *data = buf; buf 180 third_party/libwebp/dec/webp.c chunk_size = get_le32(buf + TAG_SIZE); buf 197 third_party/libwebp/dec/webp.c if (!memcmp(buf, "VP8 ", TAG_SIZE) || buf 198 third_party/libwebp/dec/webp.c !memcmp(buf, "VP8L", TAG_SIZE)) { buf 206 third_party/libwebp/dec/webp.c if (!memcmp(buf, "ALPH", TAG_SIZE)) { // A valid ALPH header. buf 207 third_party/libwebp/dec/webp.c *alpha_data = buf + CHUNK_HEADER_SIZE; buf 212 third_party/libwebp/dec/webp.c buf += disk_chunk_size; buf 513 third_party/libwebp/dec/webp.c WebPDecBuffer buf; buf 517 third_party/libwebp/dec/webp.c WebPInitDecBuffer(&buf); buf 519 third_party/libwebp/dec/webp.c params.output = &buf; buf 520 third_party/libwebp/dec/webp.c buf.colorspace = colorspace; buf 521 third_party/libwebp/dec/webp.c buf.u.RGBA.rgba = rgba; buf 522 third_party/libwebp/dec/webp.c buf.u.RGBA.stride = stride; buf 523 third_party/libwebp/dec/webp.c buf.u.RGBA.size = size; buf 524 third_party/libwebp/dec/webp.c buf.is_external_memory = 1; buf 647 third_party/libwebp/dec/webp.c const WebPYUVABuffer* const buf = &output.u.YUVA; buf 648 third_party/libwebp/dec/webp.c *u = buf->u; buf 649 third_party/libwebp/dec/webp.c *v = buf->v; buf 650 third_party/libwebp/dec/webp.c *stride = buf->y_stride; buf 651 third_party/libwebp/dec/webp.c *uv_stride = buf->u_stride; buf 652 third_party/libwebp/dec/webp.c assert(buf->u_stride == buf->v_stride); buf 250 third_party/libwebp/enc/syntax.c uint8_t buf[3 * (MAX_NUM_PARTITIONS - 1)]; buf 257 third_party/libwebp/enc/syntax.c buf[3 * p + 0] = (part_size >> 0) & 0xff; buf 258 third_party/libwebp/enc/syntax.c buf[3 * p + 1] = (part_size >> 8) & 0xff; buf 259 third_party/libwebp/enc/syntax.c buf[3 * p + 2] = (part_size >> 16) & 0xff; buf 261 third_party/libwebp/enc/syntax.c return p ? pic->writer(buf, 3 * p, pic) : 1; buf 403 third_party/libwebp/enc/syntax.c const uint8_t* const buf = VP8BitWriterBuf(enc->parts_ + p); buf 406 third_party/libwebp/enc/syntax.c ok = ok && pic->writer(buf, size, pic); buf 145 third_party/libwebp/utils/bit_reader.c const uint8_t* const buf, size_t len) { buf 147 third_party/libwebp/utils/bit_reader.c assert(buf != NULL); buf 150 third_party/libwebp/utils/bit_reader.c br->buf_ = buf; buf 364 third_party/libxml/src/HTMLparser.c (ctxt->input->encoding != NULL) || (ctxt->input->buf == NULL) || buf 365 third_party/libxml/src/HTMLparser.c (ctxt->input->buf->encoder != NULL)) buf 2159 third_party/libxml/src/HTMLparser.c input->buf = NULL; buf 2162 third_party/libxml/src/HTMLparser.c input->buf = NULL; buf 2835 third_party/libxml/src/HTMLparser.c xmlChar buf[HTML_PARSER_BIG_BUFFER_SIZE + 5]; buf 2872 third_party/libxml/src/HTMLparser.c COPY_BUF(l,buf,nbchar,cur); buf 2878 third_party/libxml/src/HTMLparser.c ctxt->sax->cdataBlock(ctxt->userData, buf, nbchar); buf 2880 third_party/libxml/src/HTMLparser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 2900 third_party/libxml/src/HTMLparser.c ctxt->sax->cdataBlock(ctxt->userData, buf, nbchar); buf 2902 third_party/libxml/src/HTMLparser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 2920 third_party/libxml/src/HTMLparser.c xmlChar buf[HTML_PARSER_BIG_BUFFER_SIZE + 5]; buf 2934 third_party/libxml/src/HTMLparser.c COPY_BUF(l,buf,nbchar,cur); buf 2941 third_party/libxml/src/HTMLparser.c if (areBlanks(ctxt, buf, nbchar)) { buf 2944 third_party/libxml/src/HTMLparser.c buf, nbchar); buf 2948 third_party/libxml/src/HTMLparser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 2968 third_party/libxml/src/HTMLparser.c buf[nbchar] = 0; buf 2974 third_party/libxml/src/HTMLparser.c if (areBlanks(ctxt, buf, nbchar)) { buf 2976 third_party/libxml/src/HTMLparser.c ctxt->sax->ignorableWhitespace(ctxt->userData, buf, nbchar); buf 2980 third_party/libxml/src/HTMLparser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 3060 third_party/libxml/src/HTMLparser.c xmlChar *buf = NULL; buf 3096 third_party/libxml/src/HTMLparser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 3097 third_party/libxml/src/HTMLparser.c if (buf == NULL) { buf 3114 third_party/libxml/src/HTMLparser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 3117 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 3121 third_party/libxml/src/HTMLparser.c buf = tmp; buf 3128 third_party/libxml/src/HTMLparser.c COPY_BUF(l,buf,len,cur); buf 3137 third_party/libxml/src/HTMLparser.c buf[len] = 0; buf 3150 third_party/libxml/src/HTMLparser.c target, buf); buf 3152 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 3171 third_party/libxml/src/HTMLparser.c xmlChar *buf = NULL; buf 3189 third_party/libxml/src/HTMLparser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 3190 third_party/libxml/src/HTMLparser.c if (buf == NULL) { buf 3208 third_party/libxml/src/HTMLparser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 3210 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 3215 third_party/libxml/src/HTMLparser.c buf = tmp; buf 3217 third_party/libxml/src/HTMLparser.c COPY_BUF(ql,buf,len,q); buf 3230 third_party/libxml/src/HTMLparser.c buf[len] = 0; buf 3233 third_party/libxml/src/HTMLparser.c "Comment not terminated \n<!--%.50s\n", buf, NULL); buf 3234 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 3239 third_party/libxml/src/HTMLparser.c ctxt->sax->comment(ctxt->userData, buf); buf 3240 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 3483 third_party/libxml/src/HTMLparser.c (ctxt->input->buf != NULL) && buf 3484 third_party/libxml/src/HTMLparser.c (ctxt->input->buf->encoder == NULL)) { buf 3505 third_party/libxml/src/HTMLparser.c if ((ctxt->input->buf != NULL) && buf 3506 third_party/libxml/src/HTMLparser.c (ctxt->input->buf->encoder != NULL) && buf 3507 third_party/libxml/src/HTMLparser.c (ctxt->input->buf->raw != NULL) && buf 3508 third_party/libxml/src/HTMLparser.c (ctxt->input->buf->buffer != NULL)) { buf 3516 third_party/libxml/src/HTMLparser.c xmlBufferShrink(ctxt->input->buf->buffer, processed); buf 3517 third_party/libxml/src/HTMLparser.c nbchars = xmlCharEncInFunc(ctxt->input->buf->encoder, buf 3518 third_party/libxml/src/HTMLparser.c ctxt->input->buf->buffer, buf 3519 third_party/libxml/src/HTMLparser.c ctxt->input->buf->raw); buf 3526 third_party/libxml/src/HTMLparser.c ctxt->input->cur = ctxt->input->buf->buffer->content; buf 3528 third_party/libxml/src/HTMLparser.c &ctxt->input->base[ctxt->input->buf->buffer->use]; buf 4856 third_party/libxml/src/HTMLparser.c xmlParserInputBufferPtr buf; buf 4867 third_party/libxml/src/HTMLparser.c buf = xmlParserInputBufferCreateMem(buffer, size, XML_CHAR_ENCODING_NONE); buf 4868 third_party/libxml/src/HTMLparser.c if (buf == NULL) return(NULL); buf 4877 third_party/libxml/src/HTMLparser.c input->buf = buf; buf 4878 third_party/libxml/src/HTMLparser.c input->base = input->buf->buffer->content; buf 4879 third_party/libxml/src/HTMLparser.c input->cur = input->buf->buffer->content; buf 4880 third_party/libxml/src/HTMLparser.c input->end = &input->buf->buffer->content[input->buf->buffer->use]; buf 4977 third_party/libxml/src/HTMLparser.c const xmlChar *buf; buf 4993 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) { buf 4994 third_party/libxml/src/HTMLparser.c buf = in->base; buf 4997 third_party/libxml/src/HTMLparser.c buf = in->buf->buffer->content; buf 4998 third_party/libxml/src/HTMLparser.c len = in->buf->buffer->use; buf 5008 third_party/libxml/src/HTMLparser.c if ((buf[base] == '<') && (buf[base + 1] == '!') && buf 5009 third_party/libxml/src/HTMLparser.c (buf[base + 2] == '-') && (buf[base + 3] == '-')) { buf 5016 third_party/libxml/src/HTMLparser.c if (buf[base] == '"' || buf[base] == '\'') { buf 5018 third_party/libxml/src/HTMLparser.c if (buf[base] == valdellim) { buf 5023 third_party/libxml/src/HTMLparser.c valdellim = buf[base]; buf 5034 third_party/libxml/src/HTMLparser.c if ((buf[base] == '-') && (buf[base + 1] == '-') && buf 5035 third_party/libxml/src/HTMLparser.c (buf[base + 2] == '>')) { buf 5041 third_party/libxml/src/HTMLparser.c if (buf[base] == first) { buf 5043 third_party/libxml/src/HTMLparser.c if ((buf[base + 1] != next) || (buf[base + 2] != third)) buf 5046 third_party/libxml/src/HTMLparser.c if (buf[base + 1] != next) buf 5105 third_party/libxml/src/HTMLparser.c const xmlChar *buf; buf 5120 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) { buf 5121 third_party/libxml/src/HTMLparser.c buf = in->base; buf 5124 third_party/libxml/src/HTMLparser.c buf = in->buf->buffer->content; buf 5125 third_party/libxml/src/HTMLparser.c len = in->buf->buffer->use; buf 5130 third_party/libxml/src/HTMLparser.c if ((buf[base] == '<') && (buf[base + 1] == '!') && buf 5131 third_party/libxml/src/HTMLparser.c (buf[base + 2] == '-') && (buf[base + 3] == '-')) { buf 5140 third_party/libxml/src/HTMLparser.c if ((buf[base] == '-') && (buf[base + 1] == '-') && buf 5141 third_party/libxml/src/HTMLparser.c (buf[base + 2] == '>')) { buf 5148 third_party/libxml/src/HTMLparser.c if (buf[base] == stop[i]) { buf 5231 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) buf 5234 third_party/libxml/src/HTMLparser.c avail = in->buf->buffer->use - (in->cur - in->base); buf 5267 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) buf 5270 third_party/libxml/src/HTMLparser.c avail = in->buf->buffer->use - (in->cur - in->base); buf 5309 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) buf 5312 third_party/libxml/src/HTMLparser.c avail = in->buf->buffer->use - (in->cur - in->base); buf 5369 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) buf 5372 third_party/libxml/src/HTMLparser.c avail = in->buf->buffer->use - (in->cur - in->base); buf 5410 third_party/libxml/src/HTMLparser.c if (in->buf == NULL) buf 5413 third_party/libxml/src/HTMLparser.c avail = in->buf->buffer->use - (in->cur - in->base); buf 5906 third_party/libxml/src/HTMLparser.c (ctxt->input->buf != NULL) && (ctxt->instate != XML_PARSER_EOF)) { buf 5907 third_party/libxml/src/HTMLparser.c int base = ctxt->input->base - ctxt->input->buf->buffer->content; buf 5911 third_party/libxml/src/HTMLparser.c res = xmlParserInputBufferPush(ctxt->input->buf, size, chunk); buf 5917 third_party/libxml/src/HTMLparser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 5920 third_party/libxml/src/HTMLparser.c &ctxt->input->buf->buffer->content[ctxt->input->buf->buffer->use]; buf 5926 third_party/libxml/src/HTMLparser.c if ((terminate) || (ctxt->input->buf->buffer->use > 80)) buf 5930 third_party/libxml/src/HTMLparser.c if ((ctxt->input != NULL) && ctxt->input->buf != NULL) { buf 5931 third_party/libxml/src/HTMLparser.c xmlParserInputBufferPtr in = ctxt->input->buf; buf 5989 third_party/libxml/src/HTMLparser.c xmlParserInputBufferPtr buf; buf 5993 third_party/libxml/src/HTMLparser.c buf = xmlAllocParserInputBuffer(enc); buf 5994 third_party/libxml/src/HTMLparser.c if (buf == NULL) return(NULL); buf 5998 third_party/libxml/src/HTMLparser.c xmlFreeParserInputBuffer(buf); buf 6001 third_party/libxml/src/HTMLparser.c if(enc==XML_CHAR_ENCODING_UTF8 || buf->encoder) buf 6008 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 6025 third_party/libxml/src/HTMLparser.c xmlFree(buf); buf 6034 third_party/libxml/src/HTMLparser.c inputStream->buf = buf; buf 6035 third_party/libxml/src/HTMLparser.c inputStream->base = inputStream->buf->buffer->content; buf 6036 third_party/libxml/src/HTMLparser.c inputStream->cur = inputStream->buf->buffer->content; buf 6038 third_party/libxml/src/HTMLparser.c &inputStream->buf->buffer->content[inputStream->buf->buffer->use]; buf 6043 third_party/libxml/src/HTMLparser.c (ctxt->input->buf != NULL)) { buf 6044 third_party/libxml/src/HTMLparser.c int base = ctxt->input->base - ctxt->input->buf->buffer->content; buf 6047 third_party/libxml/src/HTMLparser.c xmlParserInputBufferPush(ctxt->input->buf, size, chunk); buf 6049 third_party/libxml/src/HTMLparser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 6052 third_party/libxml/src/HTMLparser.c &ctxt->input->buf->buffer->content[ctxt->input->buf->buffer->use]; buf 389 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, buf 404 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, buf 413 third_party/libxml/src/HTMLtree.c if (buf == NULL) { buf 422 third_party/libxml/src/HTMLtree.c outbuf->buffer = buf; buf 429 third_party/libxml/src/HTMLtree.c use = buf->use; buf 432 third_party/libxml/src/HTMLtree.c ret = buf->use - use; buf 448 third_party/libxml/src/HTMLtree.c htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { buf 451 third_party/libxml/src/HTMLtree.c return(htmlNodeDumpFormat(buf, doc, cur, 1)); buf 471 third_party/libxml/src/HTMLtree.c xmlOutputBufferPtr buf; buf 499 third_party/libxml/src/HTMLtree.c buf = xmlOutputBufferCreateFile(out, handler); buf 500 third_party/libxml/src/HTMLtree.c if (buf == NULL) return(0); buf 502 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormatOutput(buf, doc, cur, encoding, format); buf 504 third_party/libxml/src/HTMLtree.c ret = xmlOutputBufferClose(buf); buf 534 third_party/libxml/src/HTMLtree.c xmlOutputBufferPtr buf; buf 583 third_party/libxml/src/HTMLtree.c buf = xmlAllocOutputBufferInternal(handler); buf 584 third_party/libxml/src/HTMLtree.c if (buf == NULL) { buf 590 third_party/libxml/src/HTMLtree.c htmlDocContentDumpFormatOutput(buf, cur, NULL, format); buf 592 third_party/libxml/src/HTMLtree.c xmlOutputBufferFlush(buf); buf 593 third_party/libxml/src/HTMLtree.c if (buf->conv != NULL) { buf 594 third_party/libxml/src/HTMLtree.c *size = buf->conv->use; buf 595 third_party/libxml/src/HTMLtree.c *mem = xmlStrndup(buf->conv->content, *size); buf 597 third_party/libxml/src/HTMLtree.c *size = buf->buffer->use; buf 598 third_party/libxml/src/HTMLtree.c *mem = xmlStrndup(buf->buffer->content, *size); buf 600 third_party/libxml/src/HTMLtree.c (void)xmlOutputBufferClose(buf); buf 624 third_party/libxml/src/HTMLtree.c void xmlNsListDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur); buf 637 third_party/libxml/src/HTMLtree.c htmlDtdDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, buf 645 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "<!DOCTYPE "); buf 646 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 648 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, " PUBLIC "); buf 649 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, cur->ExternalID); buf 651 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, " "); buf 652 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, cur->SystemID); buf 655 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, " SYSTEM "); buf 656 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, cur->SystemID); buf 658 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">\n"); buf 671 third_party/libxml/src/HTMLtree.c htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, buf 684 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, " "); buf 686 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 687 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ":"); buf 689 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 693 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "="); buf 708 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, escaped); buf 711 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, value); buf 714 third_party/libxml/src/HTMLtree.c xmlBufferWriteQuotedString(buf->buffer, value); buf 718 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "=\"\""); buf 733 third_party/libxml/src/HTMLtree.c htmlAttrListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, const char *encoding) { buf 738 third_party/libxml/src/HTMLtree.c htmlAttrDumpOutput(buf, doc, cur, encoding); buf 756 third_party/libxml/src/HTMLtree.c htmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, buf 762 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormatOutput(buf, doc, cur, encoding, format); buf 778 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, buf 784 third_party/libxml/src/HTMLtree.c if ((cur == NULL) || (buf == NULL)) { buf 794 third_party/libxml/src/HTMLtree.c htmlDocContentDumpOutput(buf, (xmlDocPtr) cur, encoding); buf 798 third_party/libxml/src/HTMLtree.c htmlAttrDumpOutput(buf, doc, (xmlAttrPtr) cur, encoding); buf 812 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)buffer); buf 816 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 823 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "<!--"); buf 824 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 825 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "-->"); buf 832 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "<?"); buf 833 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 835 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, " "); buf 836 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 838 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 842 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "&"); buf 843 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 844 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ";"); buf 849 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 862 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "<"); buf 864 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 865 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ":"); buf 867 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 869 third_party/libxml/src/HTMLtree.c xmlNsListDumpOutput(buf, cur->nsDef); buf 871 third_party/libxml/src/HTMLtree.c htmlAttrListDumpOutput(buf, doc, cur->properties, encoding); buf 874 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 881 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 890 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 892 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "></"); buf 894 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 895 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ":"); buf 897 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 898 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 907 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 911 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 919 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *) cur->content); buf 928 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 929 third_party/libxml/src/HTMLtree.c htmlNodeListDumpOutput(buf, doc, cur->children, encoding, format); buf 936 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 938 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "</"); buf 940 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 941 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ":"); buf 943 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 944 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, ">"); buf 952 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 967 third_party/libxml/src/HTMLtree.c htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, buf 969 third_party/libxml/src/HTMLtree.c htmlNodeDumpFormatOutput(buf, doc, cur, encoding, 1); buf 982 third_party/libxml/src/HTMLtree.c htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, buf 988 third_party/libxml/src/HTMLtree.c if ((buf == NULL) || (cur == NULL)) buf 997 third_party/libxml/src/HTMLtree.c htmlDtdDumpOutput(buf, cur, NULL); buf 1000 third_party/libxml/src/HTMLtree.c htmlNodeListDumpOutput(buf, cur, cur->children, encoding, format); buf 1002 third_party/libxml/src/HTMLtree.c xmlOutputBufferWriteString(buf, "\n"); buf 1015 third_party/libxml/src/HTMLtree.c htmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, buf 1017 third_party/libxml/src/HTMLtree.c htmlDocContentDumpFormatOutput(buf, cur, encoding, 1); buf 1037 third_party/libxml/src/HTMLtree.c xmlOutputBufferPtr buf; buf 1078 third_party/libxml/src/HTMLtree.c buf = xmlOutputBufferCreateFile(f, handler); buf 1079 third_party/libxml/src/HTMLtree.c if (buf == NULL) return(-1); buf 1080 third_party/libxml/src/HTMLtree.c htmlDocContentDumpOutput(buf, cur, NULL); buf 1082 third_party/libxml/src/HTMLtree.c ret = xmlOutputBufferClose(buf); buf 1097 third_party/libxml/src/HTMLtree.c xmlOutputBufferPtr buf; buf 1138 third_party/libxml/src/HTMLtree.c buf = xmlOutputBufferCreateFilename(filename, handler, cur->compression); buf 1139 third_party/libxml/src/HTMLtree.c if (buf == NULL) return(0); buf 1141 third_party/libxml/src/HTMLtree.c htmlDocContentDumpOutput(buf, cur, NULL); buf 1143 third_party/libxml/src/HTMLtree.c ret = xmlOutputBufferClose(buf); buf 1161 third_party/libxml/src/HTMLtree.c xmlOutputBufferPtr buf; buf 1202 third_party/libxml/src/HTMLtree.c buf = xmlOutputBufferCreateFilename(filename, handler, 0); buf 1203 third_party/libxml/src/HTMLtree.c if (buf == NULL) return(0); buf 1205 third_party/libxml/src/HTMLtree.c htmlDocContentDumpFormatOutput(buf, cur, encoding, format); buf 1207 third_party/libxml/src/HTMLtree.c ret = xmlOutputBufferClose(buf); buf 57 third_party/libxml/src/c14n.c xmlOutputBufferPtr buf; buf 546 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, " xmlns:"); buf 547 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix); buf 548 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "=\""); buf 550 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, " xmlns=\""); buf 553 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) ns->href); buf 555 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "\""); buf 941 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, " "); buf 943 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 945 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, ":"); buf 947 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) attr->name); buf 948 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "=\""); buf 956 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) buffer); buf 963 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "\""); buf 1448 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "<"); buf 1451 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1453 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, ":"); buf 1455 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) cur->name); buf 1479 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, ">"); buf 1489 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "</"); buf 1491 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1493 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, ":"); buf 1495 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, (const char *) cur->name); buf 1496 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, ">"); buf 1552 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1576 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "\x0A<?"); buf 1578 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "<?"); buf 1581 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1586 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, " "); buf 1591 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1601 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "?>\x0A"); buf 1603 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "?>"); buf 1625 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "\x0A<!--"); buf 1627 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "<!--"); buf 1636 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, buf 1646 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "-->\x0A"); buf 1648 third_party/libxml/src/c14n.c xmlOutputBufferWriteString(ctx->buf, "-->"); buf 1774 third_party/libxml/src/c14n.c int with_comments, xmlOutputBufferPtr buf) buf 1778 third_party/libxml/src/c14n.c if ((doc == NULL) || (buf == NULL)) { buf 1786 third_party/libxml/src/c14n.c if (buf->encoder != NULL) { buf 1818 third_party/libxml/src/c14n.c ctx->buf = buf; buf 1867 third_party/libxml/src/c14n.c int with_comments, xmlOutputBufferPtr buf) { buf 1873 third_party/libxml/src/c14n.c if ((buf == NULL) || (doc == NULL)) { buf 1894 third_party/libxml/src/c14n.c if (buf->encoder != NULL) { buf 1902 third_party/libxml/src/c14n.c with_comments, buf); buf 1931 third_party/libxml/src/c14n.c ret = xmlOutputBufferFlush(buf); buf 1969 third_party/libxml/src/c14n.c int with_comments, xmlOutputBufferPtr buf) { buf 1976 third_party/libxml/src/c14n.c buf)); buf 2007 third_party/libxml/src/c14n.c xmlOutputBufferPtr buf; buf 2019 third_party/libxml/src/c14n.c buf = xmlAllocOutputBuffer(NULL); buf 2020 third_party/libxml/src/c14n.c if (buf == NULL) { buf 2029 third_party/libxml/src/c14n.c with_comments, buf); buf 2032 third_party/libxml/src/c14n.c (void) xmlOutputBufferClose(buf); buf 2036 third_party/libxml/src/c14n.c ret = buf->buffer->use; buf 2038 third_party/libxml/src/c14n.c *doc_txt_ptr = xmlStrndup(buf->buffer->content, ret); buf 2040 third_party/libxml/src/c14n.c (void) xmlOutputBufferClose(buf); buf 2077 third_party/libxml/src/c14n.c xmlOutputBufferPtr buf; buf 2092 third_party/libxml/src/c14n.c buf = xmlOutputBufferCreateFilename(filename, NULL, compression); buf 2093 third_party/libxml/src/c14n.c if (buf == NULL) { buf 2102 third_party/libxml/src/c14n.c with_comments, buf); buf 2105 third_party/libxml/src/c14n.c (void) xmlOutputBufferClose(buf); buf 2112 third_party/libxml/src/c14n.c ret = xmlOutputBufferClose(buf); buf 659 third_party/libxml/src/catalog.c xmlOutputBufferPtr buf; buf 692 third_party/libxml/src/catalog.c buf = xmlOutputBufferCreateFile(out, NULL); buf 693 third_party/libxml/src/catalog.c if (buf == NULL) { buf 697 third_party/libxml/src/catalog.c ret = xmlSaveFormatFileTo(buf, doc, NULL, 1); buf 889 third_party/libxml/src/catalog.c xmlParserInputBufferPtr buf; buf 901 third_party/libxml/src/catalog.c buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE); buf 902 third_party/libxml/src/catalog.c if (buf == NULL) { buf 914 third_party/libxml/src/catalog.c inputStream->buf = buf; buf 915 third_party/libxml/src/catalog.c inputStream->base = inputStream->buf->buffer->content; buf 916 third_party/libxml/src/catalog.c inputStream->cur = inputStream->buf->buffer->content; buf 918 third_party/libxml/src/catalog.c &inputStream->buf->buffer->content[inputStream->buf->buffer->use]; buf 2178 third_party/libxml/src/catalog.c xmlChar *buf = NULL, *tmp; buf 2195 third_party/libxml/src/catalog.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 2196 third_party/libxml/src/catalog.c if (buf == NULL) { buf 2207 third_party/libxml/src/catalog.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 2210 third_party/libxml/src/catalog.c xmlFree(buf); buf 2213 third_party/libxml/src/catalog.c buf = tmp; buf 2215 third_party/libxml/src/catalog.c buf[len++] = *cur; buf 2219 third_party/libxml/src/catalog.c buf[len] = 0; buf 2222 third_party/libxml/src/catalog.c xmlFree(buf); buf 2227 third_party/libxml/src/catalog.c xmlFree(buf); buf 2232 third_party/libxml/src/catalog.c *id = buf; buf 2247 third_party/libxml/src/catalog.c xmlChar buf[XML_MAX_NAMELEN + 5]; buf 2264 third_party/libxml/src/catalog.c buf[len++] = c; buf 2270 third_party/libxml/src/catalog.c *name = xmlStrndup(buf, len); buf 3129 third_party/libxml/src/catalog.c char buf[256]; buf 3130 third_party/libxml/src/catalog.c unsigned long len = GetModuleFileNameA(hmodule, buf, 255); buf 3132 third_party/libxml/src/catalog.c char* p = &(buf[len]); buf 3133 third_party/libxml/src/catalog.c while (*p != '\\' && p > buf) buf 3135 third_party/libxml/src/catalog.c if (p != buf) { buf 3137 third_party/libxml/src/catalog.c strncpy(p, "\\..\\etc\\catalog", 255 - (p - buf)); buf 3138 third_party/libxml/src/catalog.c uri = xmlCanonicPath(buf); buf 625 third_party/libxml/src/debugXML.c char buf[5001]; buf 627 third_party/libxml/src/debugXML.c buf[0] = 0; buf 628 third_party/libxml/src/debugXML.c xmlSnprintfElementContent(buf, 5000, elem->content, 1); buf 629 third_party/libxml/src/debugXML.c buf[5000] = 0; buf 630 third_party/libxml/src/debugXML.c fprintf(ctxt->output, "%s", buf); buf 2116 third_party/libxml/src/encoding.c char buf[50]; buf 2118 third_party/libxml/src/encoding.c snprintf(&buf[0], 49, "0x%02X 0x%02X 0x%02X 0x%02X", buf 2121 third_party/libxml/src/encoding.c buf[49] = 0; buf 2124 third_party/libxml/src/encoding.c buf); buf 2327 third_party/libxml/src/encoding.c char buf[50]; buf 2329 third_party/libxml/src/encoding.c snprintf(&buf[0], 49, "0x%02X 0x%02X 0x%02X 0x%02X", buf 2332 third_party/libxml/src/encoding.c buf[49] = 0; buf 2335 third_party/libxml/src/encoding.c buf); buf 2429 third_party/libxml/src/encoding.c if ((in->buf != NULL) && (in->buf->encoder != NULL)) { buf 2431 third_party/libxml/src/encoding.c xmlCharEncodingHandler * handler = in->buf->encoder; buf 2492 third_party/libxml/src/encoding.c if (in->buf->rawconsumed < unused) buf 2494 third_party/libxml/src/encoding.c return(in->buf->rawconsumed - unused); buf 625 third_party/libxml/src/entities.c char buf[11], *ptr; buf 633 third_party/libxml/src/entities.c snprintf(buf, sizeof(buf), "&#%d;", *cur); buf 634 third_party/libxml/src/entities.c buf[sizeof(buf) - 1] = 0; buf 635 third_party/libxml/src/entities.c ptr = buf; buf 666 third_party/libxml/src/entities.c snprintf(buf, sizeof(buf), "&#%d;", *cur); buf 667 third_party/libxml/src/entities.c buf[sizeof(buf) - 1] = 0; buf 668 third_party/libxml/src/entities.c ptr = buf; buf 676 third_party/libxml/src/entities.c snprintf(buf, sizeof(buf), "&#x%X;", val); buf 677 third_party/libxml/src/entities.c buf[sizeof(buf) - 1] = 0; buf 678 third_party/libxml/src/entities.c ptr = buf; buf 684 third_party/libxml/src/entities.c char buf[11], *ptr; buf 686 third_party/libxml/src/entities.c snprintf(buf, sizeof(buf), "&#%d;", *cur); buf 687 third_party/libxml/src/entities.c buf[sizeof(buf) - 1] = 0; buf 688 third_party/libxml/src/entities.c ptr = buf; buf 879 third_party/libxml/src/entities.c xmlDumpEntityContent(xmlBufferPtr buf, const xmlChar *content) { buf 880 third_party/libxml/src/entities.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return; buf 884 third_party/libxml/src/entities.c xmlBufferCCat(buf, "\""); buf 889 third_party/libxml/src/entities.c xmlBufferAdd(buf, base, cur - base); buf 890 third_party/libxml/src/entities.c xmlBufferAdd(buf, BAD_CAST """, 6); buf 895 third_party/libxml/src/entities.c xmlBufferAdd(buf, base, cur - base); buf 896 third_party/libxml/src/entities.c xmlBufferAdd(buf, BAD_CAST "%", 6); buf 904 third_party/libxml/src/entities.c xmlBufferAdd(buf, base, cur - base); buf 905 third_party/libxml/src/entities.c xmlBufferCCat(buf, "\""); buf 907 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, content); buf 919 third_party/libxml/src/entities.c xmlDumpEntityDecl(xmlBufferPtr buf, xmlEntityPtr ent) { buf 920 third_party/libxml/src/entities.c if ((buf == NULL) || (ent == NULL)) return; buf 923 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, "<!ENTITY "); buf 924 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->name); buf 925 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " "); buf 927 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->orig); buf 929 third_party/libxml/src/entities.c xmlDumpEntityContent(buf, ent->content); buf 930 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, ">\n"); buf 933 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, "<!ENTITY "); buf 934 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->name); buf 936 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " PUBLIC "); buf 937 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->ExternalID); buf 938 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " "); buf 939 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 941 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " SYSTEM "); buf 942 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 944 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, ">\n"); buf 947 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, "<!ENTITY "); buf 948 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->name); buf 950 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " PUBLIC "); buf 951 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->ExternalID); buf 952 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " "); buf 953 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 955 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " SYSTEM "); buf 956 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 959 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " NDATA "); buf 961 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->orig); buf 963 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->content); buf 965 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, ">\n"); buf 968 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, "<!ENTITY % "); buf 969 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->name); buf 970 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " "); buf 972 third_party/libxml/src/entities.c xmlDumpEntityContent(buf, ent->content); buf 974 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->orig); buf 975 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, ">\n"); buf 978 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, "<!ENTITY % "); buf 979 third_party/libxml/src/entities.c xmlBufferWriteCHAR(buf, ent->name); buf 981 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " PUBLIC "); buf 982 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->ExternalID); buf 983 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " "); buf 984 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 986 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, " SYSTEM "); buf 987 third_party/libxml/src/entities.c xmlBufferWriteQuotedString(buf, ent->SystemID); buf 989 third_party/libxml/src/entities.c xmlBufferWriteChar(buf, ">\n"); buf 1005 third_party/libxml/src/entities.c xmlDumpEntityDeclScan(xmlEntityPtr ent, xmlBufferPtr buf) { buf 1006 third_party/libxml/src/entities.c xmlDumpEntityDecl(buf, ent); buf 1017 third_party/libxml/src/entities.c xmlDumpEntitiesTable(xmlBufferPtr buf, xmlEntitiesTablePtr table) { buf 1018 third_party/libxml/src/entities.c xmlHashScan(table, (xmlHashScanner)xmlDumpEntityDeclScan, buf); buf 404 third_party/libxml/src/error.c xmlChar buf[150]; buf 409 third_party/libxml/src/error.c buf[i] = ' '; buf 410 third_party/libxml/src/error.c buf[i++] = '^'; buf 411 third_party/libxml/src/error.c buf[i] = 0; buf 412 third_party/libxml/src/error.c channel(data, "%s\n", buf); buf 90 third_party/libxml/src/include/libxml/HTMLtree.h htmlNodeDump (xmlBufferPtr buf, buf 114 third_party/libxml/src/include/libxml/HTMLtree.h htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, buf 120 third_party/libxml/src/include/libxml/HTMLtree.h htmlDocContentDumpOutput(xmlOutputBufferPtr buf, buf 124 third_party/libxml/src/include/libxml/HTMLtree.h htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, buf 129 third_party/libxml/src/include/libxml/HTMLtree.h htmlNodeDumpOutput (xmlOutputBufferPtr buf, buf 73 third_party/libxml/src/include/libxml/c14n.h xmlOutputBufferPtr buf); buf 117 third_party/libxml/src/include/libxml/c14n.h xmlOutputBufferPtr buf); buf 134 third_party/libxml/src/include/libxml/entities.h xmlDumpEntitiesTable (xmlBufferPtr buf, buf 137 third_party/libxml/src/include/libxml/entities.h xmlDumpEntityDecl (xmlBufferPtr buf, buf 56 third_party/libxml/src/include/libxml/parser.h xmlParserInputBufferPtr buf; /* UTF-8 encoded buffer */ buf 667 third_party/libxml/src/include/libxml/tree.h xmlBufferResize (xmlBufferPtr buf, buf 670 third_party/libxml/src/include/libxml/tree.h xmlBufferFree (xmlBufferPtr buf); buf 673 third_party/libxml/src/include/libxml/tree.h xmlBufferPtr buf); buf 675 third_party/libxml/src/include/libxml/tree.h xmlBufferAdd (xmlBufferPtr buf, buf 679 third_party/libxml/src/include/libxml/tree.h xmlBufferAddHead (xmlBufferPtr buf, buf 683 third_party/libxml/src/include/libxml/tree.h xmlBufferCat (xmlBufferPtr buf, buf 686 third_party/libxml/src/include/libxml/tree.h xmlBufferCCat (xmlBufferPtr buf, buf 689 third_party/libxml/src/include/libxml/tree.h xmlBufferShrink (xmlBufferPtr buf, buf 692 third_party/libxml/src/include/libxml/tree.h xmlBufferGrow (xmlBufferPtr buf, buf 695 third_party/libxml/src/include/libxml/tree.h xmlBufferEmpty (xmlBufferPtr buf); buf 697 third_party/libxml/src/include/libxml/tree.h xmlBufferContent (const xmlBufferPtr buf); buf 699 third_party/libxml/src/include/libxml/tree.h xmlBufferSetAllocationScheme(xmlBufferPtr buf, buf 702 third_party/libxml/src/include/libxml/tree.h xmlBufferLength (const xmlBufferPtr buf); buf 1073 third_party/libxml/src/include/libxml/tree.h xmlBufferWriteCHAR (xmlBufferPtr buf, buf 1076 third_party/libxml/src/include/libxml/tree.h xmlBufferWriteChar (xmlBufferPtr buf, buf 1079 third_party/libxml/src/include/libxml/tree.h xmlBufferWriteQuotedString(xmlBufferPtr buf, buf 1083 third_party/libxml/src/include/libxml/tree.h XMLPUBFUN void xmlAttrSerializeTxtContent(xmlBufferPtr buf, buf 1141 third_party/libxml/src/include/libxml/tree.h xmlNodeDump (xmlBufferPtr buf, buf 1148 third_party/libxml/src/include/libxml/tree.h xmlSaveFileTo (xmlOutputBufferPtr buf, buf 1152 third_party/libxml/src/include/libxml/tree.h xmlSaveFormatFileTo (xmlOutputBufferPtr buf, buf 1157 third_party/libxml/src/include/libxml/tree.h xmlNodeDumpOutput (xmlOutputBufferPtr buf, buf 167 third_party/libxml/src/include/libxml/valid.h xmlDumpNotationDecl (xmlBufferPtr buf, buf 170 third_party/libxml/src/include/libxml/valid.h xmlDumpNotationTable (xmlBufferPtr buf, buf 195 third_party/libxml/src/include/libxml/valid.h xmlSnprintfElementContent(char *buf, buf 202 third_party/libxml/src/include/libxml/valid.h xmlSprintfElementContent(char *buf, buf 223 third_party/libxml/src/include/libxml/valid.h xmlDumpElementTable (xmlBufferPtr buf, buf 226 third_party/libxml/src/include/libxml/valid.h xmlDumpElementDecl (xmlBufferPtr buf, buf 259 third_party/libxml/src/include/libxml/valid.h xmlDumpAttributeTable (xmlBufferPtr buf, buf 262 third_party/libxml/src/include/libxml/valid.h xmlDumpAttributeDecl (xmlBufferPtr buf, buf 198 third_party/libxml/src/include/libxml/xmlIO.h const char *buf); buf 251 third_party/libxml/src/include/libxml/xmlIO.h const char *buf); buf 213 third_party/libxml/src/include/libxml/xmlregexp.h xmlExpDump (xmlBufferPtr buf, buf 98 third_party/libxml/src/include/libxml/xmlstring.h xmlStrPrintf (xmlChar *buf, buf 103 third_party/libxml/src/include/libxml/xmlstring.h xmlStrVPrintf (xmlChar *buf, buf 38 third_party/libxml/src/include/libxml/xmlwriter.h xmlNewTextWriterMemory(xmlBufferPtr buf, int compression); buf 533 third_party/libxml/src/nanoftp.c xmlNanoFTPParseResponse(char *buf, int len) { buf 537 third_party/libxml/src/nanoftp.c if ((*buf >= '0') && (*buf <= '9')) buf 538 third_party/libxml/src/nanoftp.c val = val * 10 + (*buf - '0'); buf 541 third_party/libxml/src/nanoftp.c buf++; buf 542 third_party/libxml/src/nanoftp.c if ((*buf >= '0') && (*buf <= '9')) buf 543 third_party/libxml/src/nanoftp.c val = val * 10 + (*buf - '0'); buf 546 third_party/libxml/src/nanoftp.c buf++; buf 547 third_party/libxml/src/nanoftp.c if ((*buf >= '0') && (*buf <= '9')) buf 548 third_party/libxml/src/nanoftp.c val = val * 10 + (*buf - '0'); buf 551 third_party/libxml/src/nanoftp.c buf++; buf 552 third_party/libxml/src/nanoftp.c if (*buf == '-') buf 764 third_party/libxml/src/nanoftp.c char buf[200]; buf 769 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "USER anonymous\r\n"); buf 771 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "USER %s\r\n", ctxt->user); buf 772 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 773 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 775 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 777 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 792 third_party/libxml/src/nanoftp.c char buf[200]; buf 797 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS anonymous@\r\n"); buf 799 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS %s\r\n", ctxt->passwd); buf 800 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 801 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 803 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 805 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 826 third_party/libxml/src/nanoftp.c char buf[200]; buf 831 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "QUIT\r\n"); buf 832 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 834 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); /* Just to be consistent, even though we know it can't have a % in it */ buf 836 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1017 third_party/libxml/src/nanoftp.c char buf[400]; buf 1023 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "USER %s\r\n", proxyUser); buf 1024 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1025 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1027 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1029 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1043 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS %s\r\n", proxyPasswd); buf 1045 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS anonymous@\r\n"); buf 1046 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1047 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1049 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1051 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1086 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "SITE %s\r\n", ctxt->hostname); buf 1087 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1088 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1090 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1092 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1113 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "USER anonymous@%s\r\n", buf 1116 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "USER %s@%s\r\n", buf 1118 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1119 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1121 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1123 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1137 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS anonymous@\r\n"); buf 1139 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "PASS %s\r\n", ctxt->passwd); buf 1140 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1141 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1143 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1145 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1269 third_party/libxml/src/nanoftp.c char buf[400]; buf 1283 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "CWD %s\r\n", directory); buf 1284 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1285 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1287 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1289 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1318 third_party/libxml/src/nanoftp.c char buf[400]; buf 1334 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "DELE %s\r\n", file); buf 1335 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1336 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1338 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1340 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1368 third_party/libxml/src/nanoftp.c char buf[200], *cur; buf 1404 third_party/libxml/src/nanoftp.c snprintf (buf, sizeof(buf), "EPSV\r\n"); buf 1407 third_party/libxml/src/nanoftp.c snprintf (buf, sizeof(buf), "PASV\r\n"); buf 1408 third_party/libxml/src/nanoftp.c len = strlen (buf); buf 1410 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1412 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1496 third_party/libxml/src/nanoftp.c snprintf (buf, sizeof(buf), "EPRT |2|%s|%s|\r\n", adp, portp); buf 1502 third_party/libxml/src/nanoftp.c snprintf (buf, sizeof(buf), "PORT %d,%d,%d,%d,%d,%d\r\n", buf 1507 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1508 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1510 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1513 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1721 third_party/libxml/src/nanoftp.c char buf[4096 + 1]; buf 1734 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "LIST -L\r\n"); buf 1743 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "LIST -L %s\r\n", filename); buf 1745 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1746 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1748 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1750 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1792 third_party/libxml/src/nanoftp.c if ((len = recv(ctxt->dataFd, &buf[indx], sizeof(buf) - (indx + 1), 0)) < 0) { buf 1799 third_party/libxml/src/nanoftp.c write(1, &buf[indx], len); buf 1802 third_party/libxml/src/nanoftp.c buf[indx] = 0; buf 1805 third_party/libxml/src/nanoftp.c res = xmlNanoFTPParseList(&buf[base], callback, userData); buf 1809 third_party/libxml/src/nanoftp.c memmove(&buf[0], &buf[base], indx - base); buf 1830 third_party/libxml/src/nanoftp.c char buf[300]; buf 1840 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "TYPE I\r\n"); buf 1841 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1843 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1845 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1857 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "RETR %s\r\n", ctxt->path); buf 1859 third_party/libxml/src/nanoftp.c snprintf(buf, sizeof(buf), "RETR %s\r\n", filename); buf 1860 third_party/libxml/src/nanoftp.c buf[sizeof(buf) - 1] = 0; buf 1861 third_party/libxml/src/nanoftp.c len = strlen(buf); buf 1863 third_party/libxml/src/nanoftp.c xmlGenericError(xmlGenericErrorContext, "%s", buf); buf 1865 third_party/libxml/src/nanoftp.c res = send(ctxt->controlFd, buf, len, 0); buf 1896 third_party/libxml/src/nanoftp.c char buf[4096]; buf 1936 third_party/libxml/src/nanoftp.c if ((len = recv(ctxt->dataFd, buf, sizeof(buf), 0)) < 0) { buf 1938 third_party/libxml/src/nanoftp.c callback(userData, buf, len); buf 1942 third_party/libxml/src/nanoftp.c callback(userData, buf, len); buf 649 third_party/libxml/src/nanohttp.c char buf[4096]; buf 650 third_party/libxml/src/nanohttp.c char *bp = buf; buf 653 third_party/libxml/src/nanohttp.c while (bp - buf < 4095) { buf 656 third_party/libxml/src/nanohttp.c if (bp == buf) buf 660 third_party/libxml/src/nanohttp.c return(xmlMemStrdup(buf)); buf 669 third_party/libxml/src/nanohttp.c return(xmlMemStrdup(buf)); buf 674 third_party/libxml/src/nanohttp.c buf[4095] = 0; buf 675 third_party/libxml/src/nanohttp.c return(xmlMemStrdup(buf)); buf 1616 third_party/libxml/src/nanohttp.c char *buf = NULL; buf 1638 third_party/libxml/src/nanohttp.c xmlNanoHTTPFetchContent( ctxt, &buf, &len ); buf 1640 third_party/libxml/src/nanohttp.c write(fd, buf, len); buf 1661 third_party/libxml/src/nanohttp.c char *buf = NULL; buf 1677 third_party/libxml/src/nanohttp.c xmlNanoHTTPFetchContent( ctxt, &buf, &len ); buf 1679 third_party/libxml/src/nanohttp.c write(fd, buf, len); buf 2790 third_party/libxml/src/parser.c xmlChar buf[XML_MAX_NAMELEN + 5]; buf 2816 third_party/libxml/src/parser.c buf[len++] = c; buf 2831 third_party/libxml/src/parser.c memcpy(buffer, buf, len); buf 2860 third_party/libxml/src/parser.c ret = xmlStrndup(buf, len); buf 2895 third_party/libxml/src/parser.c buf[len++] = c; buf 2910 third_party/libxml/src/parser.c memcpy(buffer, buf, len); buf 2932 third_party/libxml/src/parser.c ret = xmlStrndup(buf, len); buf 3358 third_party/libxml/src/parser.c xmlChar buf[XML_MAX_NAMELEN + 5]; buf 3372 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,c); buf 3376 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,c); buf 3392 third_party/libxml/src/parser.c memcpy(buffer, buf, len); buf 3416 third_party/libxml/src/parser.c return(xmlStrndup(buf, len)); buf 3434 third_party/libxml/src/parser.c xmlChar buf[XML_MAX_NAMELEN + 5]; buf 3453 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,c); buf 3469 third_party/libxml/src/parser.c memcpy(buffer, buf, len); buf 3502 third_party/libxml/src/parser.c return(xmlStrndup(buf, len)); buf 3520 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 3535 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 3536 third_party/libxml/src/parser.c if (buf == NULL) { buf 3549 third_party/libxml/src/parser.c xmlFree(buf); buf 3569 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 3572 third_party/libxml/src/parser.c xmlFree(buf); buf 3575 third_party/libxml/src/parser.c buf = tmp; buf 3577 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,c); buf 3592 third_party/libxml/src/parser.c buf[len] = 0; buf 3594 third_party/libxml/src/parser.c xmlFree(buf); buf 3603 third_party/libxml/src/parser.c cur = buf; buf 3633 third_party/libxml/src/parser.c xmlFree(buf); buf 3642 third_party/libxml/src/parser.c ret = xmlStringDecodeEntities(ctxt, buf, XML_SUBSTITUTE_PEREF, buf 3645 third_party/libxml/src/parser.c *orig = buf; buf 3647 third_party/libxml/src/parser.c xmlFree(buf); buf 3668 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 3693 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(buf_size * sizeof(xmlChar)); buf 3694 third_party/libxml/src/parser.c if (buf == NULL) goto mem_error; buf 3712 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3714 third_party/libxml/src/parser.c buf[len++] = '&'; buf 3721 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3723 third_party/libxml/src/parser.c buf[len++] = '&'; buf 3724 third_party/libxml/src/parser.c buf[len++] = '#'; buf 3725 third_party/libxml/src/parser.c buf[len++] = '3'; buf 3726 third_party/libxml/src/parser.c buf[len++] = '8'; buf 3727 third_party/libxml/src/parser.c buf[len++] = ';'; buf 3731 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3733 third_party/libxml/src/parser.c len += xmlCopyChar(0, &buf[len], val); buf 3743 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3747 third_party/libxml/src/parser.c buf[len++] = '&'; buf 3748 third_party/libxml/src/parser.c buf[len++] = '#'; buf 3749 third_party/libxml/src/parser.c buf[len++] = '3'; buf 3750 third_party/libxml/src/parser.c buf[len++] = '8'; buf 3751 third_party/libxml/src/parser.c buf[len++] = ';'; buf 3753 third_party/libxml/src/parser.c buf[len++] = ent->content[0]; buf 3766 third_party/libxml/src/parser.c buf[len++] = 0x20; buf 3769 third_party/libxml/src/parser.c buf[len++] = *current++; buf 3771 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3779 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3782 third_party/libxml/src/parser.c buf[len++] = ent->content[0]; buf 3805 third_party/libxml/src/parser.c buf[len++] = '&'; buf 3807 third_party/libxml/src/parser.c growBuffer(buf, i + 10); buf 3810 third_party/libxml/src/parser.c buf[len++] = *cur++; buf 3811 third_party/libxml/src/parser.c buf[len++] = ';'; buf 3818 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,0x20); buf 3820 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3827 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,c); buf 3829 third_party/libxml/src/parser.c growBuffer(buf, 10); buf 3841 third_party/libxml/src/parser.c while ((len > 0) && (buf[len - 1] == 0x20)) len--; buf 3843 third_party/libxml/src/parser.c buf[len] = 0; buf 3857 third_party/libxml/src/parser.c return(buf); buf 3862 third_party/libxml/src/parser.c if (buf != NULL) buf 3863 third_party/libxml/src/parser.c xmlFree(buf); buf 3922 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 3942 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 3943 third_party/libxml/src/parser.c if (buf == NULL) { buf 3954 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 3956 third_party/libxml/src/parser.c xmlFree(buf); buf 3961 third_party/libxml/src/parser.c buf = tmp; buf 3968 third_party/libxml/src/parser.c xmlFree(buf); buf 3972 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,cur); buf 3981 third_party/libxml/src/parser.c buf[len] = 0; buf 3988 third_party/libxml/src/parser.c return(buf); buf 4004 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 4023 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 4024 third_party/libxml/src/parser.c if (buf == NULL) { buf 4035 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 4038 third_party/libxml/src/parser.c xmlFree(buf); buf 4041 third_party/libxml/src/parser.c buf = tmp; buf 4043 third_party/libxml/src/parser.c buf[len++] = cur; buf 4049 third_party/libxml/src/parser.c xmlFree(buf); buf 4061 third_party/libxml/src/parser.c buf[len] = 0; buf 4068 third_party/libxml/src/parser.c return(buf); buf 4280 third_party/libxml/src/parser.c xmlChar buf[XML_PARSER_BIG_BUFFER_SIZE + 5]; buf 4298 third_party/libxml/src/parser.c COPY_BUF(l,buf,nbchar,cur); buf 4300 third_party/libxml/src/parser.c buf[nbchar] = 0; buf 4306 third_party/libxml/src/parser.c if (areBlanks(ctxt, buf, nbchar, 0)) { buf 4309 third_party/libxml/src/parser.c buf, nbchar); buf 4312 third_party/libxml/src/parser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 4335 third_party/libxml/src/parser.c buf[nbchar] = 0; buf 4340 third_party/libxml/src/parser.c if (areBlanks(ctxt, buf, nbchar, 0)) { buf 4342 third_party/libxml/src/parser.c ctxt->sax->ignorableWhitespace(ctxt->userData, buf, nbchar); buf 4345 third_party/libxml/src/parser.c ctxt->sax->characters(ctxt->userData, buf, nbchar); buf 4459 third_party/libxml/src/parser.c xmlParseCommentComplex(xmlParserCtxtPtr ctxt, xmlChar *buf, int len, int size) { buf 4468 third_party/libxml/src/parser.c if (buf == NULL) { buf 4471 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 4472 third_party/libxml/src/parser.c if (buf == NULL) { buf 4485 third_party/libxml/src/parser.c xmlFree (buf); buf 4496 third_party/libxml/src/parser.c xmlFree (buf); buf 4512 third_party/libxml/src/parser.c new_buf = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 4514 third_party/libxml/src/parser.c xmlFree (buf); buf 4518 third_party/libxml/src/parser.c buf = new_buf; buf 4520 third_party/libxml/src/parser.c COPY_BUF(ql,buf,len,q); buf 4531 third_party/libxml/src/parser.c xmlFree(buf); buf 4543 third_party/libxml/src/parser.c buf[len] = 0; buf 4546 third_party/libxml/src/parser.c "Comment not terminated \n<!--%.50s\n", buf); buf 4559 third_party/libxml/src/parser.c ctxt->sax->comment(ctxt->userData, buf); buf 4561 third_party/libxml/src/parser.c xmlFree(buf); buf 4566 third_party/libxml/src/parser.c xmlFree(buf); buf 4582 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 4637 third_party/libxml/src/parser.c if (buf == NULL) { buf 4642 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 4643 third_party/libxml/src/parser.c if (buf == NULL) { buf 4652 third_party/libxml/src/parser.c new_buf = (xmlChar *) xmlRealloc(buf, buf 4655 third_party/libxml/src/parser.c xmlFree (buf); buf 4660 third_party/libxml/src/parser.c buf = new_buf; buf 4662 third_party/libxml/src/parser.c memcpy(&buf[len], ctxt->input->cur, nbchar); buf 4664 third_party/libxml/src/parser.c buf[len] = 0; buf 4685 third_party/libxml/src/parser.c xmlFree(buf); buf 4699 third_party/libxml/src/parser.c if (buf != NULL) buf 4700 third_party/libxml/src/parser.c ctxt->sax->comment(ctxt->userData, buf); buf 4704 third_party/libxml/src/parser.c if (buf != NULL) buf 4705 third_party/libxml/src/parser.c xmlFree(buf); buf 4710 third_party/libxml/src/parser.c if (buf != NULL) buf 4713 third_party/libxml/src/parser.c buf); buf 4725 third_party/libxml/src/parser.c xmlParseCommentComplex(ctxt, buf, len, size); buf 4852 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 4894 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 4895 third_party/libxml/src/parser.c if (buf == NULL) { buf 4913 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 4916 third_party/libxml/src/parser.c xmlFree(buf); buf 4920 third_party/libxml/src/parser.c buf = tmp; buf 4926 third_party/libxml/src/parser.c xmlFree(buf); buf 4931 third_party/libxml/src/parser.c COPY_BUF(l,buf,len,cur); buf 4940 third_party/libxml/src/parser.c buf[len] = 0; buf 4958 third_party/libxml/src/parser.c xmlParseCatalogPI(ctxt, buf); buf 4969 third_party/libxml/src/parser.c target, buf); buf 4971 third_party/libxml/src/parser.c xmlFree(buf); buf 7689 third_party/libxml/src/parser.c xmlBufferPtr buf; buf 7706 third_party/libxml/src/parser.c buf = xmlBufferCreate(); buf 7707 third_party/libxml/src/parser.c if (buf == NULL) { buf 7717 third_party/libxml/src/parser.c xmlBufferFree(buf); buf 7726 third_party/libxml/src/parser.c xmlBufferFree(buf); buf 7734 third_party/libxml/src/parser.c xmlBufferAdd(buf, ctxt->input->cur, l); buf 7739 third_party/libxml/src/parser.c xmlBufferFree(buf); buf 7753 third_party/libxml/src/parser.c xmlBufferFree(buf); buf 7756 third_party/libxml/src/parser.c entity->content = buf->content; buf 7757 third_party/libxml/src/parser.c buf->content = NULL; buf 7758 third_party/libxml/src/parser.c xmlBufferFree(buf); buf 9347 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 9377 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 9378 third_party/libxml/src/parser.c if (buf == NULL) { buf 9388 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 9390 third_party/libxml/src/parser.c xmlFree(buf); buf 9394 third_party/libxml/src/parser.c buf = tmp; buf 9396 third_party/libxml/src/parser.c COPY_BUF(rl,buf,len,r); buf 9405 third_party/libxml/src/parser.c xmlFree(buf); buf 9413 third_party/libxml/src/parser.c buf[len] = 0; buf 9417 third_party/libxml/src/parser.c "CData section not finished\n%.50s\n", buf); buf 9418 third_party/libxml/src/parser.c xmlFree(buf); buf 9428 third_party/libxml/src/parser.c ctxt->sax->cdataBlock(ctxt->userData, buf, len); buf 9430 third_party/libxml/src/parser.c ctxt->sax->characters(ctxt->userData, buf, len); buf 9432 third_party/libxml/src/parser.c xmlFree(buf); buf 9712 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 9717 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 9718 third_party/libxml/src/parser.c if (buf == NULL) { buf 9724 third_party/libxml/src/parser.c xmlFree(buf); buf 9727 third_party/libxml/src/parser.c buf[len++] = cur; buf 9731 third_party/libxml/src/parser.c xmlFree(buf); buf 9734 third_party/libxml/src/parser.c buf[len++] = cur; buf 9742 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 9744 third_party/libxml/src/parser.c xmlFree(buf); buf 9748 third_party/libxml/src/parser.c buf = tmp; buf 9750 third_party/libxml/src/parser.c buf[len++] = cur; buf 9754 third_party/libxml/src/parser.c buf[len] = 0; buf 9755 third_party/libxml/src/parser.c return(buf); buf 9817 third_party/libxml/src/parser.c xmlChar *buf = NULL; buf 9825 third_party/libxml/src/parser.c buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar)); buf 9826 third_party/libxml/src/parser.c if (buf == NULL) { buf 9831 third_party/libxml/src/parser.c buf[len++] = cur; buf 9843 third_party/libxml/src/parser.c tmp = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); buf 9846 third_party/libxml/src/parser.c xmlFree(buf); buf 9849 third_party/libxml/src/parser.c buf = tmp; buf 9851 third_party/libxml/src/parser.c buf[len++] = cur; buf 9860 third_party/libxml/src/parser.c buf[len] = 0; buf 9864 third_party/libxml/src/parser.c return(buf); buf 9925 third_party/libxml/src/parser.c (ctxt->input->buf != NULL) && buf 9926 third_party/libxml/src/parser.c (ctxt->input->buf->encoder == NULL)) { buf 10510 third_party/libxml/src/parser.c const xmlChar *buf; buf 10518 third_party/libxml/src/parser.c if (in->buf == NULL) { buf 10519 third_party/libxml/src/parser.c buf = in->base; buf 10522 third_party/libxml/src/parser.c buf = in->buf->buffer->content; buf 10523 third_party/libxml/src/parser.c len = in->buf->buffer->use; buf 10529 third_party/libxml/src/parser.c if (buf[base] == first) { buf 10531 third_party/libxml/src/parser.c if ((buf[base + 1] != next) || buf 10532 third_party/libxml/src/parser.c (buf[base + 2] != third)) continue; buf 10534 third_party/libxml/src/parser.c if (buf[base + 1] != next) continue; buf 10784 third_party/libxml/src/parser.c if (ctxt->input->buf == NULL) buf 10793 third_party/libxml/src/parser.c if ((ctxt->input->buf->raw != NULL) && buf 10794 third_party/libxml/src/parser.c (ctxt->input->buf->raw->use > 0)) { buf 10796 third_party/libxml/src/parser.c ctxt->input->buf->buffer->content; buf 10799 third_party/libxml/src/parser.c xmlParserInputBufferPush(ctxt->input->buf, 0, ""); buf 10800 third_party/libxml/src/parser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 10803 third_party/libxml/src/parser.c &ctxt->input->buf->buffer->content[ buf 10804 third_party/libxml/src/parser.c ctxt->input->buf->buffer->use]; buf 10806 third_party/libxml/src/parser.c avail = ctxt->input->buf->buffer->use - buf 11246 third_party/libxml/src/parser.c if (ctxt->input->buf == NULL) buf 11250 third_party/libxml/src/parser.c avail = ctxt->input->buf->buffer->use - buf 11341 third_party/libxml/src/parser.c if (ctxt->input->buf == NULL) buf 11344 third_party/libxml/src/parser.c avail = ctxt->input->buf->buffer->use - (ctxt->input->cur - ctxt->input->base); buf 11389 third_party/libxml/src/parser.c if (ctxt->input->buf == NULL) buf 11392 third_party/libxml/src/parser.c avail = ctxt->input->buf->buffer->use - (ctxt->input->cur - ctxt->input->base); buf 11449 third_party/libxml/src/parser.c xmlChar *buf; buf 11456 third_party/libxml/src/parser.c buf = ctxt->input->buf->buffer->content; buf 11457 third_party/libxml/src/parser.c for (;(unsigned int) base < ctxt->input->buf->buffer->use; buf 11460 third_party/libxml/src/parser.c if (buf[base] == quote) buf 11464 third_party/libxml/src/parser.c if ((quote == 0) && (buf[base] == '<')) { buf 11468 third_party/libxml/src/parser.c ctxt->input->buf->buffer->use) && buf 11469 third_party/libxml/src/parser.c (buf[base + 1] == '!') && buf 11470 third_party/libxml/src/parser.c (buf[base + 2] == '-') && buf 11471 third_party/libxml/src/parser.c (buf[base + 3] == '-')) { buf 11473 third_party/libxml/src/parser.c ctxt->input->buf->buffer->use; base++) { buf 11474 third_party/libxml/src/parser.c if ((buf[base] == '-') && buf 11475 third_party/libxml/src/parser.c (buf[base + 1] == '-') && buf 11476 third_party/libxml/src/parser.c (buf[base + 2] == '>')) { buf 11491 third_party/libxml/src/parser.c if (buf[base] == '"') { buf 11495 third_party/libxml/src/parser.c if (buf[base] == '\'') { buf 11499 third_party/libxml/src/parser.c if (buf[base] == ']') { buf 11501 third_party/libxml/src/parser.c fprintf(stderr, "%c%c%c%c: ", buf[base], buf 11502 third_party/libxml/src/parser.c buf[base + 1], buf[base + 2], buf[base + 3]); buf 11505 third_party/libxml/src/parser.c ctxt->input->buf->buffer->use) buf 11507 third_party/libxml/src/parser.c if (buf[base + 1] == ']') { buf 11513 third_party/libxml/src/parser.c (unsigned int) base + i < ctxt->input->buf->buffer->use; buf 11515 third_party/libxml/src/parser.c if (buf[base + i] == '>') { buf 11521 third_party/libxml/src/parser.c if (!IS_BLANK_CH(buf[base + i])) { buf 11695 third_party/libxml/src/parser.c (ctxt->input->buf != NULL) && (ctxt->instate != XML_PARSER_EOF)) { buf 11696 third_party/libxml/src/parser.c int base = ctxt->input->base - ctxt->input->buf->buffer->content; buf 11706 third_party/libxml/src/parser.c (ctxt->input->buf != NULL) && (ctxt->input->buf->encoder != NULL)) { buf 11709 third_party/libxml/src/parser.c if ((xmlStrcasestr(BAD_CAST ctxt->input->buf->encoder->name, buf 11711 third_party/libxml/src/parser.c (xmlStrcasestr(BAD_CAST ctxt->input->buf->encoder->name, buf 11714 third_party/libxml/src/parser.c else if ((xmlStrcasestr(BAD_CAST ctxt->input->buf->encoder->name, buf 11716 third_party/libxml/src/parser.c (xmlStrcasestr(BAD_CAST ctxt->input->buf->encoder->name, buf 11720 third_party/libxml/src/parser.c if (ctxt->input->buf->rawconsumed < len) buf 11721 third_party/libxml/src/parser.c len -= ctxt->input->buf->rawconsumed; buf 11735 third_party/libxml/src/parser.c res =xmlParserInputBufferPush(ctxt->input->buf, size, chunk); buf 11741 third_party/libxml/src/parser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 11744 third_party/libxml/src/parser.c &ctxt->input->buf->buffer->content[ctxt->input->buf->buffer->use]; buf 11750 third_party/libxml/src/parser.c if ((ctxt->input != NULL) && ctxt->input->buf != NULL) { buf 11751 third_party/libxml/src/parser.c xmlParserInputBufferPtr in = ctxt->input->buf; buf 11782 third_party/libxml/src/parser.c (ctxt->input->buf != NULL)) { buf 11783 third_party/libxml/src/parser.c xmlParserInputBufferPush(ctxt->input->buf, 1, "\r"); buf 11792 third_party/libxml/src/parser.c if (ctxt->input->buf == NULL) buf 11796 third_party/libxml/src/parser.c avail = ctxt->input->buf->buffer->use - buf 11846 third_party/libxml/src/parser.c xmlParserInputBufferPtr buf; buf 11855 third_party/libxml/src/parser.c buf = xmlAllocParserInputBuffer(enc); buf 11856 third_party/libxml/src/parser.c if (buf == NULL) return(NULL); buf 11861 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 11868 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 11880 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 11901 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 11912 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 11916 third_party/libxml/src/parser.c inputStream->buf = buf; buf 11917 third_party/libxml/src/parser.c inputStream->base = inputStream->buf->buffer->content; buf 11918 third_party/libxml/src/parser.c inputStream->cur = inputStream->buf->buffer->content; buf 11920 third_party/libxml/src/parser.c &inputStream->buf->buffer->content[inputStream->buf->buffer->use]; buf 11931 third_party/libxml/src/parser.c } else if ((ctxt->input != NULL) && (ctxt->input->buf != NULL)) { buf 11932 third_party/libxml/src/parser.c int base = ctxt->input->base - ctxt->input->buf->buffer->content; buf 11935 third_party/libxml/src/parser.c xmlParserInputBufferPush(ctxt->input->buf, size, chunk); buf 11937 third_party/libxml/src/parser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 11940 third_party/libxml/src/parser.c &ctxt->input->buf->buffer->content[ctxt->input->buf->buffer->use]; buf 11993 third_party/libxml/src/parser.c xmlParserInputBufferPtr buf; buf 11997 third_party/libxml/src/parser.c buf = xmlParserInputBufferCreateIO(ioread, ioclose, ioctx, enc); buf 11998 third_party/libxml/src/parser.c if (buf == NULL) return(NULL); buf 12002 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 12025 third_party/libxml/src/parser.c inputStream = xmlNewIOInputStream(ctxt, buf, enc); buf 13632 third_party/libxml/src/parser.c if (ctxt->input->buf->compressed > 0) buf 13635 third_party/libxml/src/parser.c ret->compression = ctxt->input->buf->compressed; buf 13824 third_party/libxml/src/parser.c xmlParserInputBufferPtr buf; buf 13836 third_party/libxml/src/parser.c buf = xmlParserInputBufferCreateMem(buffer, size, XML_CHAR_ENCODING_NONE); buf 13837 third_party/libxml/src/parser.c if (buf == NULL) { buf 13844 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 13850 third_party/libxml/src/parser.c input->buf = buf; buf 13851 third_party/libxml/src/parser.c input->base = input->buf->buffer->content; buf 13852 third_party/libxml/src/parser.c input->cur = input->buf->buffer->content; buf 13853 third_party/libxml/src/parser.c input->end = &input->buf->buffer->content[input->buf->buffer->use]; buf 14374 third_party/libxml/src/parser.c xmlParserInputBufferPtr buf; buf 14383 third_party/libxml/src/parser.c buf = xmlAllocParserInputBuffer(enc); buf 14384 third_party/libxml/src/parser.c if (buf == NULL) buf 14388 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 14399 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 14412 third_party/libxml/src/parser.c xmlFreeParserInputBuffer(buf); buf 14421 third_party/libxml/src/parser.c inputStream->buf = buf; buf 14422 third_party/libxml/src/parser.c inputStream->base = inputStream->buf->buffer->content; buf 14423 third_party/libxml/src/parser.c inputStream->cur = inputStream->buf->buffer->content; buf 14425 third_party/libxml/src/parser.c &inputStream->buf->buffer->content[inputStream->buf->buffer->use]; buf 14430 third_party/libxml/src/parser.c (ctxt->input->buf != NULL)) { buf 14431 third_party/libxml/src/parser.c int base = ctxt->input->base - ctxt->input->buf->buffer->content; buf 14434 third_party/libxml/src/parser.c xmlParserInputBufferPush(ctxt->input->buf, size, chunk); buf 14436 third_party/libxml/src/parser.c ctxt->input->base = ctxt->input->buf->buffer->content + base; buf 14439 third_party/libxml/src/parser.c &ctxt->input->buf->buffer->content[ctxt->input->buf->buffer-> buf 245 third_party/libxml/src/parserInternals.c if (in->base != in->buf->buffer->content) { buf 253 third_party/libxml/src/parserInternals.c if (in->cur > in->base + in->buf->buffer->use) { buf 258 third_party/libxml/src/parserInternals.c (int) in, (int) in->buf->buffer->content, in->cur - in->base, buf 259 third_party/libxml/src/parserInternals.c in->buf->buffer->use, in->buf->buffer->size); buf 288 third_party/libxml/src/parserInternals.c if (in->buf == NULL) return(-1); buf 291 third_party/libxml/src/parserInternals.c if (in->buf->buffer == NULL) return(-1); buf 292 third_party/libxml/src/parserInternals.c if (in->buf->readcallback == NULL) return(-1); buf 296 third_party/libxml/src/parserInternals.c used = in->cur - in->buf->buffer->content; buf 297 third_party/libxml/src/parserInternals.c ret = xmlBufferShrink(in->buf->buffer, used); buf 302 third_party/libxml/src/parserInternals.c ret = xmlParserInputBufferRead(in->buf, len); buf 303 third_party/libxml/src/parserInternals.c if (in->base != in->buf->buffer->content) { buf 308 third_party/libxml/src/parserInternals.c in->base = in->buf->buffer->content; buf 309 third_party/libxml/src/parserInternals.c in->cur = &in->buf->buffer->content[indx]; buf 311 third_party/libxml/src/parserInternals.c in->end = &in->buf->buffer->content[in->buf->buffer->use]; buf 338 third_party/libxml/src/parserInternals.c if (in->buf == NULL) return(-1); buf 341 third_party/libxml/src/parserInternals.c if (in->buf->buffer == NULL) return(-1); buf 346 third_party/libxml/src/parserInternals.c if (in->buf->buffer->use > (unsigned int) indx + INPUT_CHUNK) { buf 352 third_party/libxml/src/parserInternals.c if (in->buf->readcallback != NULL) buf 353 third_party/libxml/src/parserInternals.c ret = xmlParserInputBufferGrow(in->buf, len); buf 363 third_party/libxml/src/parserInternals.c if (in->base != in->buf->buffer->content) { buf 368 third_party/libxml/src/parserInternals.c in->base = in->buf->buffer->content; buf 369 third_party/libxml/src/parserInternals.c in->cur = &in->buf->buffer->content[indx]; buf 371 third_party/libxml/src/parserInternals.c in->end = &in->buf->buffer->content[in->buf->buffer->use]; buf 394 third_party/libxml/src/parserInternals.c if (in->buf == NULL) return; buf 397 third_party/libxml/src/parserInternals.c if (in->buf->buffer == NULL) return; buf 401 third_party/libxml/src/parserInternals.c used = in->cur - in->buf->buffer->content; buf 407 third_party/libxml/src/parserInternals.c ret = xmlBufferShrink(in->buf->buffer, used - LINE_LEN); buf 412 third_party/libxml/src/parserInternals.c in->end = &in->buf->buffer->content[in->buf->buffer->use]; buf 417 third_party/libxml/src/parserInternals.c if (in->buf->buffer->use > INPUT_CHUNK) { buf 420 third_party/libxml/src/parserInternals.c xmlParserInputBufferRead(in->buf, 2 * INPUT_CHUNK); buf 421 third_party/libxml/src/parserInternals.c if (in->base != in->buf->buffer->content) { buf 426 third_party/libxml/src/parserInternals.c in->base = in->buf->buffer->content; buf 427 third_party/libxml/src/parserInternals.c in->cur = &in->buf->buffer->content[indx]; buf 429 third_party/libxml/src/parserInternals.c in->end = &in->buf->buffer->content[in->buf->buffer->use]; buf 1159 third_party/libxml/src/parserInternals.c if (input->buf != NULL) { buf 1160 third_party/libxml/src/parserInternals.c if (input->buf->encoder != NULL) { buf 1165 third_party/libxml/src/parserInternals.c if (input->buf->encoder == handler) buf 1183 third_party/libxml/src/parserInternals.c xmlCharEncCloseFunc(input->buf->encoder); buf 1184 third_party/libxml/src/parserInternals.c input->buf->encoder = handler; buf 1187 third_party/libxml/src/parserInternals.c input->buf->encoder = handler; buf 1192 third_party/libxml/src/parserInternals.c if ((input->buf->buffer != NULL) && (input->buf->buffer->use > 0)) { buf 1228 third_party/libxml/src/parserInternals.c xmlBufferShrink(input->buf->buffer, processed); buf 1229 third_party/libxml/src/parserInternals.c input->buf->raw = input->buf->buffer; buf 1230 third_party/libxml/src/parserInternals.c input->buf->buffer = xmlBufferCreate(); buf 1231 third_party/libxml/src/parserInternals.c input->buf->rawconsumed = processed; buf 1232 third_party/libxml/src/parserInternals.c use = input->buf->raw->use; buf 1238 third_party/libxml/src/parserInternals.c nbchars = xmlCharEncInFunc(input->buf->encoder, buf 1239 third_party/libxml/src/parserInternals.c input->buf->buffer, buf 1240 third_party/libxml/src/parserInternals.c input->buf->raw); buf 1248 third_party/libxml/src/parserInternals.c nbchars = xmlCharEncFirstLineInt(input->buf->encoder, buf 1249 third_party/libxml/src/parserInternals.c input->buf->buffer, buf 1250 third_party/libxml/src/parserInternals.c input->buf->raw, buf 1259 third_party/libxml/src/parserInternals.c input->buf->rawconsumed += use - input->buf->raw->use; buf 1260 third_party/libxml/src/parserInternals.c input->base = input->cur = input->buf->buffer->content; buf 1261 third_party/libxml/src/parserInternals.c input->end = &input->base[input->buf->buffer->use]; buf 1366 third_party/libxml/src/parserInternals.c if (input->buf != NULL) buf 1367 third_party/libxml/src/parserInternals.c xmlFreeParserInputBuffer(input->buf); buf 1424 third_party/libxml/src/parserInternals.c inputStream->buf = input; buf 1425 third_party/libxml/src/parserInternals.c inputStream->base = inputStream->buf->buffer->content; buf 1426 third_party/libxml/src/parserInternals.c inputStream->cur = inputStream->buf->buffer->content; buf 1427 third_party/libxml/src/parserInternals.c inputStream->end = &inputStream->base[inputStream->buf->buffer->use]; buf 1540 third_party/libxml/src/parserInternals.c xmlParserInputBufferPtr buf; buf 1549 third_party/libxml/src/parserInternals.c buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE); buf 1550 third_party/libxml/src/parserInternals.c if (buf == NULL) { buf 1565 third_party/libxml/src/parserInternals.c inputStream->buf = buf; buf 1580 third_party/libxml/src/parserInternals.c inputStream->base = inputStream->buf->buffer->content; buf 1581 third_party/libxml/src/parserInternals.c inputStream->cur = inputStream->buf->buffer->content; buf 1582 third_party/libxml/src/parserInternals.c inputStream->end = &inputStream->base[inputStream->buf->buffer->use]; buf 58 third_party/libxml/src/runsuite.c struct stat buf; buf 60 third_party/libxml/src/runsuite.c if (stat(filename, &buf) == -1) buf 64 third_party/libxml/src/runsuite.c if (!(buf.st_mode & _S_IFREG)) buf 67 third_party/libxml/src/runsuite.c if (!S_ISREG(buf.st_mode)) buf 75 third_party/libxml/src/runsuite.c char buf[500]; buf 80 third_party/libxml/src/runsuite.c snprintf(buf, 500, "%s/%s", (const char *) dir, (const char *) path); buf 81 third_party/libxml/src/runsuite.c return(xmlStrdup((const xmlChar *) buf)); buf 313 third_party/libxml/src/runsuite.c xmlBufferPtr buf; buf 335 third_party/libxml/src/runsuite.c buf = xmlBufferCreate(); buf 336 third_party/libxml/src/runsuite.c if (buf == NULL) { buf 340 third_party/libxml/src/runsuite.c xmlNodeDump(buf, test->doc, test, 0, 0); buf 341 third_party/libxml/src/runsuite.c pctxt = xmlRelaxNGNewMemParserCtxt((const char *)buf->content, buf->use); buf 356 third_party/libxml/src/runsuite.c if (buf != NULL) buf 357 third_party/libxml/src/runsuite.c xmlBufferFree(buf); buf 372 third_party/libxml/src/runsuite.c xmlBufferPtr buf; buf 375 third_party/libxml/src/runsuite.c buf = xmlBufferCreate(); buf 376 third_party/libxml/src/runsuite.c if (buf == NULL) { buf 380 third_party/libxml/src/runsuite.c xmlNodeDump(buf, tst->doc, tst, 0, 0); buf 385 third_party/libxml/src/runsuite.c xmlBufferEmpty(buf); buf 386 third_party/libxml/src/runsuite.c xmlNodeDump(buf, test->doc, test, 0, 0); buf 388 third_party/libxml/src/runsuite.c content = xmlStrdup(buf->content); buf 400 third_party/libxml/src/runsuite.c if (buf != NULL) buf 401 third_party/libxml/src/runsuite.c xmlBufferFree(buf); buf 433 third_party/libxml/src/runsuite.c xmlBufferPtr buf; buf 470 third_party/libxml/src/runsuite.c buf = xmlBufferCreate(); buf 471 third_party/libxml/src/runsuite.c if (buf == NULL) { buf 475 third_party/libxml/src/runsuite.c xmlNodeDump(buf, test->doc, test, 0, 0); buf 476 third_party/libxml/src/runsuite.c pctxt = xmlRelaxNGNewMemParserCtxt((const char *)buf->content, buf->use); buf 505 third_party/libxml/src/runsuite.c xmlBufferEmpty(buf); buf 507 third_party/libxml/src/runsuite.c xmlBufferAdd(buf, dtd, -1); buf 508 third_party/libxml/src/runsuite.c xmlNodeDump(buf, test->doc, test, 0, 0); buf 515 third_party/libxml/src/runsuite.c doc = xmlReadMemory((const char *)buf->content, buf->use, buf 564 third_party/libxml/src/runsuite.c xmlBufferEmpty(buf); buf 565 third_party/libxml/src/runsuite.c xmlNodeDump(buf, test->doc, test, 0, 0); buf 572 third_party/libxml/src/runsuite.c doc = xmlReadMemory((const char *)buf->content, buf->use, buf 610 third_party/libxml/src/runsuite.c if (buf != NULL) buf 611 third_party/libxml/src/runsuite.c xmlBufferFree(buf); buf 518 third_party/libxml/src/runtest.c xmlChar buf[150]; buf 523 third_party/libxml/src/runtest.c buf[i] = ' '; buf 524 third_party/libxml/src/runtest.c buf[i++] = '^'; buf 525 third_party/libxml/src/runtest.c buf[i] = 0; buf 526 third_party/libxml/src/runtest.c channel(data, "%s\n", buf); buf 595 third_party/libxml/src/runtest.c struct stat buf; buf 597 third_party/libxml/src/runtest.c if (stat(filename, &buf) == -1) buf 601 third_party/libxml/src/runtest.c if (!(buf.st_mode & _S_IFREG)) buf 604 third_party/libxml/src/runtest.c if (!S_ISREG(buf.st_mode)) buf 3791 third_party/libxml/src/runtest.c char buf[500]; buf 3806 third_party/libxml/src/runtest.c snprintf(buf, 499, "result/c14n/%s/%s", subdir,prefix); buf 3807 third_party/libxml/src/runtest.c if (!checkTestFile(buf)) { buf 3808 third_party/libxml/src/runtest.c fprintf(stderr, "Missing result file %s", buf); buf 3811 third_party/libxml/src/runtest.c result = strdup(buf); buf 3812 third_party/libxml/src/runtest.c snprintf(buf, 499, "test/c14n/%s/%s.xpath", subdir,prefix); buf 3813 third_party/libxml/src/runtest.c if (checkTestFile(buf)) { buf 3814 third_party/libxml/src/runtest.c xpath = strdup(buf); buf 3816 third_party/libxml/src/runtest.c snprintf(buf, 499, "test/c14n/%s/%s.ns", subdir,prefix); buf 3817 third_party/libxml/src/runtest.c if (checkTestFile(buf)) { buf 3818 third_party/libxml/src/runtest.c ns = strdup(buf); buf 2830 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the HTML buffer output */ buf 2844 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 2849 third_party/libxml/src/testapi.c htmlDocContentDumpFormatOutput(buf, cur, (const char *)encoding, format); buf 2851 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 2883 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the HTML buffer output */ buf 2894 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 2898 third_party/libxml/src/testapi.c htmlDocContentDumpOutput(buf, cur, (const char *)encoding); buf 2900 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 3227 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the HTML buffer output */ buf 3238 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 3242 third_party/libxml/src/testapi.c ret_val = htmlNodeDump(buf, doc, cur); buf 3245 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 3382 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the HTML buffer output */ buf 3399 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 3405 third_party/libxml/src/testapi.c htmlNodeDumpFormatOutput(buf, doc, cur, (const char *)encoding, format); buf 3407 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 3442 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the HTML buffer output */ buf 3456 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 3461 third_party/libxml/src/testapi.c htmlNodeDumpOutput(buf, doc, cur, (const char *)encoding); buf 3463 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 5506 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output */ buf 5521 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 5); buf 5523 third_party/libxml/src/testapi.c ret_val = xmlC14NDocSaveTo(doc, nodes, mode, inclusive_ns_prefixes, with_comments, buf); buf 5531 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 5); buf 9295 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* An XML buffer. */ buf 9303 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 9306 third_party/libxml/src/testapi.c xmlDumpEntitiesTable(buf, table); buf 9308 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 9341 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* An XML buffer. */ buf 9349 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 9352 third_party/libxml/src/testapi.c xmlDumpEntityDecl(buf, ent); buf 9354 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18369 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 18383 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18388 third_party/libxml/src/testapi.c xmlAttrSerializeTxtContent(buf, doc, attr, (const xmlChar *)string); buf 18390 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18423 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to dump */ buf 18434 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18438 third_party/libxml/src/testapi.c ret_val = xmlBufferAdd(buf, (const xmlChar *)str, len); buf 18441 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18469 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer */ buf 18480 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18484 third_party/libxml/src/testapi.c ret_val = xmlBufferAddHead(buf, (const xmlChar *)str, len); buf 18487 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18515 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to dump */ buf 18523 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18526 third_party/libxml/src/testapi.c ret_val = xmlBufferCCat(buf, (const char *)str); buf 18529 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18554 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to add to */ buf 18562 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18565 third_party/libxml/src/testapi.c ret_val = xmlBufferCat(buf, (const xmlChar *)str); buf 18568 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18600 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer */ buf 18605 third_party/libxml/src/testapi.c buf = gen_const_xmlBufferPtr(n_buf, 0); buf 18607 third_party/libxml/src/testapi.c ret_val = xmlBufferContent((const xmlBufferPtr)buf); buf 18610 third_party/libxml/src/testapi.c des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0); buf 18676 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer */ buf 18681 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18683 third_party/libxml/src/testapi.c xmlBufferEmpty(buf); buf 18685 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18707 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer */ buf 18715 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18718 third_party/libxml/src/testapi.c ret_val = xmlBufferGrow(buf, len); buf 18721 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18746 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer */ buf 18751 third_party/libxml/src/testapi.c buf = gen_const_xmlBufferPtr(n_buf, 0); buf 18753 third_party/libxml/src/testapi.c ret_val = xmlBufferLength((const xmlBufferPtr)buf); buf 18756 third_party/libxml/src/testapi.c des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0); buf 18778 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to resize */ buf 18786 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18789 third_party/libxml/src/testapi.c ret_val = xmlBufferResize(buf, size); buf 18792 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18816 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to tune */ buf 18824 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18827 third_party/libxml/src/testapi.c xmlBufferSetAllocationScheme(buf, scheme); buf 18828 third_party/libxml/src/testapi.c if ((buf != NULL) && (scheme == XML_BUFFER_ALLOC_IMMUTABLE) && (buf->content != NULL) && (buf->content != static_buf_content)) { xmlFree(buf->content); buf->content = NULL;} buf 18830 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18855 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the buffer to dump */ buf 18863 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18866 third_party/libxml/src/testapi.c ret_val = xmlBufferShrink(buf, len); buf 18869 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18893 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer */ buf 18901 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18904 third_party/libxml/src/testapi.c xmlBufferWriteCHAR(buf, (const xmlChar *)string); buf 18906 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18930 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 18938 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18941 third_party/libxml/src/testapi.c xmlBufferWriteChar(buf, (const char *)string); buf 18943 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 18967 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 18975 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 18978 third_party/libxml/src/testapi.c xmlBufferWriteQuotedString(buf, (const xmlChar *)string); buf 18980 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 22094 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 22111 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 22117 third_party/libxml/src/testapi.c ret_val = xmlNodeDump(buf, doc, cur, level, format); buf 22120 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 22155 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* the XML buffer output */ buf 22175 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 22182 third_party/libxml/src/testapi.c xmlNodeDumpOutput(buf, doc, cur, level, format, (const char *)encoding); buf 22184 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 22970 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* an output I/O buffer */ buf 22981 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 22985 third_party/libxml/src/testapi.c ret_val = xmlSaveFileTo(buf, cur, (const char *)encoding); buf 22986 third_party/libxml/src/testapi.c buf = NULL; buf 22989 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 23122 third_party/libxml/src/testapi.c xmlOutputBufferPtr buf; /* an output I/O buffer */ buf 23136 third_party/libxml/src/testapi.c buf = gen_xmlOutputBufferPtr(n_buf, 0); buf 23141 third_party/libxml/src/testapi.c ret_val = xmlSaveFormatFileTo(buf, cur, (const char *)encoding, format); buf 23142 third_party/libxml/src/testapi.c buf = NULL; buf 23145 third_party/libxml/src/testapi.c des_xmlOutputBufferPtr(n_buf, buf, 0); buf 24921 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 24929 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 24932 third_party/libxml/src/testapi.c xmlDumpAttributeDecl(buf, attr); buf 24934 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 24960 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 24968 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 24971 third_party/libxml/src/testapi.c xmlDumpAttributeTable(buf, table); buf 24973 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 25006 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 25014 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 25017 third_party/libxml/src/testapi.c xmlDumpElementDecl(buf, elem); buf 25019 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 25045 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 25053 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 25056 third_party/libxml/src/testapi.c xmlDumpElementTable(buf, table); buf 25058 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 25091 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 25099 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 25102 third_party/libxml/src/testapi.c xmlDumpNotationDecl(buf, nota); buf 25104 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 25130 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* the XML buffer output */ buf 25138 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 25141 third_party/libxml/src/testapi.c xmlDumpNotationTable(buf, table); buf 25143 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 25716 third_party/libxml/src/testapi.c char * buf; /* an output buffer */ buf 25730 third_party/libxml/src/testapi.c buf = gen_char_ptr(n_buf, 0); buf 25735 third_party/libxml/src/testapi.c xmlSnprintfElementContent(buf, size, content, englob); buf 25737 third_party/libxml/src/testapi.c des_char_ptr(n_buf, buf, 0); buf 25769 third_party/libxml/src/testapi.c char * buf; /* an output buffer */ buf 25780 third_party/libxml/src/testapi.c buf = gen_char_ptr(n_buf, 0); buf 25784 third_party/libxml/src/testapi.c xmlSprintfElementContent(buf, content, englob); buf 25786 third_party/libxml/src/testapi.c des_char_ptr(n_buf, buf, 0); buf 28414 third_party/libxml/src/testapi.c char * buf; /* an char array */ buf 28423 third_party/libxml/src/testapi.c buf = gen_const_char_ptr(n_buf, 2); buf 28425 third_party/libxml/src/testapi.c ret_val = xmlOutputBufferWrite(out, len, (const char *)buf); buf 28430 third_party/libxml/src/testapi.c des_const_char_ptr(n_buf, (const char *)buf, 2); buf 28771 third_party/libxml/src/testapi.c char * buf; /* an char array */ buf 28780 third_party/libxml/src/testapi.c buf = gen_const_char_ptr(n_buf, 2); buf 28782 third_party/libxml/src/testapi.c ret_val = xmlParserInputBufferPush(in, len, (const char *)buf); buf 28787 third_party/libxml/src/testapi.c des_const_char_ptr(n_buf, (const char *)buf, 2); buf 32844 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* a buffer to receive the output */ buf 32852 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 32855 third_party/libxml/src/testapi.c xmlExpDump(buf, expr); buf 32857 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 42906 third_party/libxml/src/testapi.c xmlBufferPtr buf; /* xmlBufferPtr */ buf 42914 third_party/libxml/src/testapi.c buf = gen_xmlBufferPtr(n_buf, 0); buf 42917 third_party/libxml/src/testapi.c ret_val = xmlNewTextWriterMemory(buf, compression); buf 42920 third_party/libxml/src/testapi.c des_xmlBufferPtr(n_buf, buf, 0); buf 1396 third_party/libxml/src/tree.c xmlChar buf[10]; buf 1399 third_party/libxml/src/tree.c l = xmlCopyCharMultiByte(buf, charval); buf 1400 third_party/libxml/src/tree.c buf[l] = 0; buf 1401 third_party/libxml/src/tree.c node = xmlNewDocText(doc, buf); buf 1580 third_party/libxml/src/tree.c xmlChar buf[10]; buf 1583 third_party/libxml/src/tree.c len = xmlCopyCharMultiByte(buf, charval); buf 1584 third_party/libxml/src/tree.c buf[len] = 0; buf 1585 third_party/libxml/src/tree.c node = xmlNewDocText(doc, buf); buf 1673 third_party/libxml/src/tree.c xmlChar buf[2]; buf 1675 third_party/libxml/src/tree.c buf[0] = '&'; buf 1676 third_party/libxml/src/tree.c buf[1] = 0; buf 1677 third_party/libxml/src/tree.c ret = xmlStrncat(ret, buf, 1); buf 1679 third_party/libxml/src/tree.c buf[0] = ';'; buf 1680 third_party/libxml/src/tree.c buf[1] = 0; buf 1681 third_party/libxml/src/tree.c ret = xmlStrncat(ret, buf, 1); buf 1756 third_party/libxml/src/tree.c xmlChar buf[2]; buf 1758 third_party/libxml/src/tree.c buf[0] = '&'; buf 1759 third_party/libxml/src/tree.c buf[1] = 0; buf 1760 third_party/libxml/src/tree.c ret = xmlStrncat(ret, buf, 1); buf 1762 third_party/libxml/src/tree.c buf[0] = ';'; buf 1763 third_party/libxml/src/tree.c buf[1] = 0; buf 1764 third_party/libxml/src/tree.c ret = xmlStrncat(ret, buf, 1); buf 4536 third_party/libxml/src/tree.c xmlChar *buf; buf 4551 third_party/libxml/src/tree.c buf = (xmlChar *) xmlMallocAtomic(buf_len * sizeof(xmlChar)); buf 4552 third_party/libxml/src/tree.c if (buf == NULL) { buf 4739 third_party/libxml/src/tree.c xmlFree(buf); buf 4744 third_party/libxml/src/tree.c temp = (xmlChar *) xmlRealloc(buf, buf_len); buf 4747 third_party/libxml/src/tree.c xmlFree(buf); buf 4751 third_party/libxml/src/tree.c buf = temp; buf 4754 third_party/libxml/src/tree.c snprintf((char *) buf, buf_len, "%s%s%s", buf 4757 third_party/libxml/src/tree.c snprintf((char *) buf, buf_len, "%s%s[%d]%s", buf 4759 third_party/libxml/src/tree.c snprintf((char *) buffer, buf_len, "%s", (char *)buf); buf 4762 third_party/libxml/src/tree.c xmlFree(buf); buf 6943 third_party/libxml/src/tree.c xmlBufferSetAllocationScheme(xmlBufferPtr buf, buf 6945 third_party/libxml/src/tree.c if (buf == NULL) { buf 6952 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) || buf 6953 third_party/libxml/src/tree.c (buf->alloc == XML_BUFFER_ALLOC_IO)) return; buf 6957 third_party/libxml/src/tree.c buf->alloc = scheme; buf 6968 third_party/libxml/src/tree.c xmlBufferFree(xmlBufferPtr buf) { buf 6969 third_party/libxml/src/tree.c if (buf == NULL) { buf 6977 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IO) && buf 6978 third_party/libxml/src/tree.c (buf->contentIO != NULL)) { buf 6979 third_party/libxml/src/tree.c xmlFree(buf->contentIO); buf 6980 third_party/libxml/src/tree.c } else if ((buf->content != NULL) && buf 6981 third_party/libxml/src/tree.c (buf->alloc != XML_BUFFER_ALLOC_IMMUTABLE)) { buf 6982 third_party/libxml/src/tree.c xmlFree(buf->content); buf 6984 third_party/libxml/src/tree.c xmlFree(buf); buf 6994 third_party/libxml/src/tree.c xmlBufferEmpty(xmlBufferPtr buf) { buf 6995 third_party/libxml/src/tree.c if (buf == NULL) return; buf 6996 third_party/libxml/src/tree.c if (buf->content == NULL) return; buf 6997 third_party/libxml/src/tree.c buf->use = 0; buf 6998 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) { buf 6999 third_party/libxml/src/tree.c buf->content = BAD_CAST ""; buf 7000 third_party/libxml/src/tree.c } else if ((buf->alloc == XML_BUFFER_ALLOC_IO) && buf 7001 third_party/libxml/src/tree.c (buf->contentIO != NULL)) { buf 7002 third_party/libxml/src/tree.c size_t start_buf = buf->content - buf->contentIO; buf 7004 third_party/libxml/src/tree.c buf->size += start_buf; buf 7005 third_party/libxml/src/tree.c buf->content = buf->contentIO; buf 7006 third_party/libxml/src/tree.c buf->content[0] = 0; buf 7008 third_party/libxml/src/tree.c buf->content[0] = 0; buf 7022 third_party/libxml/src/tree.c xmlBufferShrink(xmlBufferPtr buf, unsigned int len) { buf 7023 third_party/libxml/src/tree.c if (buf == NULL) return(-1); buf 7025 third_party/libxml/src/tree.c if (len > buf->use) return(-1); buf 7027 third_party/libxml/src/tree.c buf->use -= len; buf 7028 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) || buf 7029 third_party/libxml/src/tree.c ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL))) { buf 7034 third_party/libxml/src/tree.c buf->content += len; buf 7035 third_party/libxml/src/tree.c buf->size -= len; buf 7041 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL)) { buf 7042 third_party/libxml/src/tree.c size_t start_buf = buf->content - buf->contentIO; buf 7043 third_party/libxml/src/tree.c if (start_buf >= buf->size) { buf 7044 third_party/libxml/src/tree.c memmove(buf->contentIO, &buf->content[0], buf->use); buf 7045 third_party/libxml/src/tree.c buf->content = buf->contentIO; buf 7046 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7047 third_party/libxml/src/tree.c buf->size += start_buf; buf 7051 third_party/libxml/src/tree.c memmove(buf->content, &buf->content[len], buf->use); buf 7052 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7067 third_party/libxml/src/tree.c xmlBufferGrow(xmlBufferPtr buf, unsigned int len) { buf 7071 third_party/libxml/src/tree.c if (buf == NULL) return(-1); buf 7073 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return(0); buf 7074 third_party/libxml/src/tree.c if (len + buf->use < buf->size) return(0); buf 7083 third_party/libxml/src/tree.c if (buf->size > len) buf 7084 third_party/libxml/src/tree.c size = buf->size * 2; buf 7086 third_party/libxml/src/tree.c size = buf->use + len + 100; buf 7088 third_party/libxml/src/tree.c size = buf->use + len + 100; buf 7091 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL)) { buf 7092 third_party/libxml/src/tree.c size_t start_buf = buf->content - buf->contentIO; buf 7094 third_party/libxml/src/tree.c newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); buf 7099 third_party/libxml/src/tree.c buf->contentIO = newbuf; buf 7100 third_party/libxml/src/tree.c buf->content = newbuf + start_buf; buf 7102 third_party/libxml/src/tree.c newbuf = (xmlChar *) xmlRealloc(buf->content, size); buf 7107 third_party/libxml/src/tree.c buf->content = newbuf; buf 7109 third_party/libxml/src/tree.c buf->size = size; buf 7110 third_party/libxml/src/tree.c return(buf->size - buf->use); buf 7122 third_party/libxml/src/tree.c xmlBufferDump(FILE *file, xmlBufferPtr buf) { buf 7125 third_party/libxml/src/tree.c if (buf == NULL) { buf 7132 third_party/libxml/src/tree.c if (buf->content == NULL) { buf 7141 third_party/libxml/src/tree.c ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file); buf 7155 third_party/libxml/src/tree.c xmlBufferContent(const xmlBufferPtr buf) buf 7157 third_party/libxml/src/tree.c if(!buf) buf 7160 third_party/libxml/src/tree.c return buf->content; buf 7173 third_party/libxml/src/tree.c xmlBufferLength(const xmlBufferPtr buf) buf 7175 third_party/libxml/src/tree.c if(!buf) buf 7178 third_party/libxml/src/tree.c return buf->use; buf 7191 third_party/libxml/src/tree.c xmlBufferResize(xmlBufferPtr buf, unsigned int size) buf 7197 third_party/libxml/src/tree.c if (buf == NULL) buf 7200 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return(0); buf 7203 third_party/libxml/src/tree.c if (size < buf->size) buf 7207 third_party/libxml/src/tree.c switch (buf->alloc){ buf 7211 third_party/libxml/src/tree.c newSize = (buf->size ? buf->size*2 : size + 10); buf 7228 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL)) { buf 7229 third_party/libxml/src/tree.c start_buf = buf->content - buf->contentIO; buf 7233 third_party/libxml/src/tree.c memmove(buf->contentIO, buf->content, buf->use); buf 7234 third_party/libxml/src/tree.c buf->content = buf->contentIO; buf 7235 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7236 third_party/libxml/src/tree.c buf->size += start_buf; buf 7238 third_party/libxml/src/tree.c rebuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + newSize); buf 7243 third_party/libxml/src/tree.c buf->contentIO = rebuf; buf 7244 third_party/libxml/src/tree.c buf->content = rebuf + start_buf; buf 7247 third_party/libxml/src/tree.c if (buf->content == NULL) { buf 7249 third_party/libxml/src/tree.c } else if (buf->size - buf->use < 100) { buf 7250 third_party/libxml/src/tree.c rebuf = (xmlChar *) xmlRealloc(buf->content, newSize); buf 7259 third_party/libxml/src/tree.c memcpy(rebuf, buf->content, buf->use); buf 7260 third_party/libxml/src/tree.c xmlFree(buf->content); buf 7261 third_party/libxml/src/tree.c rebuf[buf->use] = 0; buf 7268 third_party/libxml/src/tree.c buf->content = rebuf; buf 7270 third_party/libxml/src/tree.c buf->size = newSize; buf 7288 third_party/libxml/src/tree.c xmlBufferAdd(xmlBufferPtr buf, const xmlChar *str, int len) { buf 7291 third_party/libxml/src/tree.c if ((str == NULL) || (buf == NULL)) { buf 7294 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return -1; buf 7310 third_party/libxml/src/tree.c needSize = buf->use + len + 2; buf 7311 third_party/libxml/src/tree.c if (needSize > buf->size){ buf 7312 third_party/libxml/src/tree.c if (!xmlBufferResize(buf, needSize)){ buf 7318 third_party/libxml/src/tree.c memmove(&buf->content[buf->use], str, len*sizeof(xmlChar)); buf 7319 third_party/libxml/src/tree.c buf->use += len; buf 7320 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7337 third_party/libxml/src/tree.c xmlBufferAddHead(xmlBufferPtr buf, const xmlChar *str, int len) { buf 7340 third_party/libxml/src/tree.c if (buf == NULL) buf 7342 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return -1; buf 7364 third_party/libxml/src/tree.c if ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL)) { buf 7365 third_party/libxml/src/tree.c size_t start_buf = buf->content - buf->contentIO; buf 7371 third_party/libxml/src/tree.c buf->content -= len; buf 7372 third_party/libxml/src/tree.c memmove(&buf->content[0], str, len); buf 7373 third_party/libxml/src/tree.c buf->use += len; buf 7374 third_party/libxml/src/tree.c buf->size += len; buf 7378 third_party/libxml/src/tree.c needSize = buf->use + len + 2; buf 7379 third_party/libxml/src/tree.c if (needSize > buf->size){ buf 7380 third_party/libxml/src/tree.c if (!xmlBufferResize(buf, needSize)){ buf 7386 third_party/libxml/src/tree.c memmove(&buf->content[len], &buf->content[0], buf->use); buf 7387 third_party/libxml/src/tree.c memmove(&buf->content[0], str, len); buf 7388 third_party/libxml/src/tree.c buf->use += len; buf 7389 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7404 third_party/libxml/src/tree.c xmlBufferCat(xmlBufferPtr buf, const xmlChar *str) { buf 7405 third_party/libxml/src/tree.c if (buf == NULL) buf 7407 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return -1; buf 7409 third_party/libxml/src/tree.c return xmlBufferAdd(buf, str, -1); buf 7423 third_party/libxml/src/tree.c xmlBufferCCat(xmlBufferPtr buf, const char *str) { buf 7426 third_party/libxml/src/tree.c if (buf == NULL) buf 7428 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return -1; buf 7437 third_party/libxml/src/tree.c if (buf->use + 10 >= buf->size) { buf 7438 third_party/libxml/src/tree.c if (!xmlBufferResize(buf, buf->use+10)){ buf 7443 third_party/libxml/src/tree.c buf->content[buf->use++] = *cur; buf 7445 third_party/libxml/src/tree.c buf->content[buf->use] = 0; buf 7458 third_party/libxml/src/tree.c xmlBufferWriteCHAR(xmlBufferPtr buf, const xmlChar *string) { buf 7459 third_party/libxml/src/tree.c if (buf == NULL) buf 7461 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return; buf 7462 third_party/libxml/src/tree.c xmlBufferCat(buf, string); buf 7474 third_party/libxml/src/tree.c xmlBufferWriteChar(xmlBufferPtr buf, const char *string) { buf 7475 third_party/libxml/src/tree.c if (buf == NULL) buf 7477 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return; buf 7478 third_party/libxml/src/tree.c xmlBufferCCat(buf, string); buf 7492 third_party/libxml/src/tree.c xmlBufferWriteQuotedString(xmlBufferPtr buf, const xmlChar *string) { buf 7494 third_party/libxml/src/tree.c if (buf == NULL) buf 7496 third_party/libxml/src/tree.c if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return; buf 7503 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\""); buf 7508 third_party/libxml/src/tree.c xmlBufferAdd(buf, base, cur - base); buf 7509 third_party/libxml/src/tree.c xmlBufferAdd(buf, BAD_CAST """, 6); buf 7518 third_party/libxml/src/tree.c xmlBufferAdd(buf, base, cur - base); buf 7519 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\""); buf 7522 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\'"); buf 7523 third_party/libxml/src/tree.c xmlBufferCat(buf, string); buf 7524 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\'"); buf 7527 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\""); buf 7528 third_party/libxml/src/tree.c xmlBufferCat(buf, string); buf 7529 third_party/libxml/src/tree.c xmlBufferCCat(buf, "\""); buf 8310 third_party/libxml/src/tree.c char buf[50]; buf 8349 third_party/libxml/src/tree.c snprintf((char *) buf, sizeof(buf), buf 8352 third_party/libxml/src/tree.c snprintf((char *) buf, sizeof(buf), buf 8354 third_party/libxml/src/tree.c pref = BAD_CAST buf; buf 1159 third_party/libxml/src/valid.c xmlDumpElementContent(xmlBufferPtr buf, xmlElementContentPtr content, int glob) { buf 1162 third_party/libxml/src/valid.c if (glob) xmlBufferWriteChar(buf, "("); buf 1165 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "#PCDATA"); buf 1169 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, content->prefix); buf 1170 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 1172 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, content->name); buf 1177 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c1, 1); buf 1179 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c1, 0); buf 1180 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " , "); buf 1184 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c2, 1); buf 1186 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c2, 0); buf 1191 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c1, 1); buf 1193 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c1, 0); buf 1194 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " | "); buf 1198 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c2, 1); buf 1200 third_party/libxml/src/valid.c xmlDumpElementContent(buf, content->c2, 0); buf 1208 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ")"); buf 1213 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "?"); buf 1216 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "*"); buf 1219 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "+"); buf 1233 third_party/libxml/src/valid.c xmlSprintfElementContent(char *buf ATTRIBUTE_UNUSED, buf 1250 third_party/libxml/src/valid.c xmlSnprintfElementContent(char *buf, int size, xmlElementContentPtr content, int englob) { buf 1254 third_party/libxml/src/valid.c len = strlen(buf); buf 1256 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 1257 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 1260 third_party/libxml/src/valid.c if (englob) strcat(buf, "("); buf 1263 third_party/libxml/src/valid.c strcat(buf, "#PCDATA"); buf 1268 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 1271 third_party/libxml/src/valid.c strcat(buf, (char *) content->prefix); buf 1272 third_party/libxml/src/valid.c strcat(buf, ":"); buf 1275 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 1279 third_party/libxml/src/valid.c strcat(buf, (char *) content->name); buf 1284 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c1, 1); buf 1286 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c1, 0); buf 1287 third_party/libxml/src/valid.c len = strlen(buf); buf 1289 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 1290 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 1293 third_party/libxml/src/valid.c strcat(buf, " , "); buf 1297 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c2, 1); buf 1299 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c2, 0); buf 1304 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c1, 1); buf 1306 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c1, 0); buf 1307 third_party/libxml/src/valid.c len = strlen(buf); buf 1309 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 1310 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 1313 third_party/libxml/src/valid.c strcat(buf, " | "); buf 1317 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c2, 1); buf 1319 third_party/libxml/src/valid.c xmlSnprintfElementContent(buf, size, content->c2, 0); buf 1323 third_party/libxml/src/valid.c strcat(buf, ")"); buf 1328 third_party/libxml/src/valid.c strcat(buf, "?"); buf 1331 third_party/libxml/src/valid.c strcat(buf, "*"); buf 1334 third_party/libxml/src/valid.c strcat(buf, "+"); buf 1665 third_party/libxml/src/valid.c xmlDumpElementDecl(xmlBufferPtr buf, xmlElementPtr elem) { buf 1666 third_party/libxml/src/valid.c if ((buf == NULL) || (elem == NULL)) buf 1670 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!ELEMENT "); buf 1672 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->prefix); buf 1673 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 1675 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->name); buf 1676 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " EMPTY>\n"); buf 1679 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!ELEMENT "); buf 1681 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->prefix); buf 1682 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 1684 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->name); buf 1685 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " ANY>\n"); buf 1688 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!ELEMENT "); buf 1690 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->prefix); buf 1691 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 1693 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->name); buf 1694 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " "); buf 1695 third_party/libxml/src/valid.c xmlDumpElementContent(buf, elem->content, 1); buf 1696 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ">\n"); buf 1699 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!ELEMENT "); buf 1701 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->prefix); buf 1702 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 1704 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, elem->name); buf 1705 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " "); buf 1706 third_party/libxml/src/valid.c xmlDumpElementContent(buf, elem->content, 1); buf 1707 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ">\n"); buf 1725 third_party/libxml/src/valid.c xmlDumpElementDeclScan(xmlElementPtr elem, xmlBufferPtr buf) { buf 1726 third_party/libxml/src/valid.c xmlDumpElementDecl(buf, elem); buf 1737 third_party/libxml/src/valid.c xmlDumpElementTable(xmlBufferPtr buf, xmlElementTablePtr table) { buf 1738 third_party/libxml/src/valid.c if ((buf == NULL) || (table == NULL)) buf 1740 third_party/libxml/src/valid.c xmlHashScan(table, (xmlHashScanner) xmlDumpElementDeclScan, buf); buf 1818 third_party/libxml/src/valid.c xmlDumpEnumeration(xmlBufferPtr buf, xmlEnumerationPtr cur) { buf 1819 third_party/libxml/src/valid.c if ((buf == NULL) || (cur == NULL)) buf 1822 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, cur->name); buf 1824 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ")"); buf 1826 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " | "); buf 1827 third_party/libxml/src/valid.c xmlDumpEnumeration(buf, cur->next); buf 2209 third_party/libxml/src/valid.c xmlDumpAttributeDecl(xmlBufferPtr buf, xmlAttributePtr attr) { buf 2210 third_party/libxml/src/valid.c if ((buf == NULL) || (attr == NULL)) buf 2212 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!ATTLIST "); buf 2213 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, attr->elem); buf 2214 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " "); buf 2216 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, attr->prefix); buf 2217 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ":"); buf 2219 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, attr->name); buf 2222 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " CDATA"); buf 2225 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " ID"); buf 2228 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " IDREF"); buf 2231 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " IDREFS"); buf 2234 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " ENTITY"); buf 2237 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " ENTITIES"); buf 2240 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " NMTOKEN"); buf 2243 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " NMTOKENS"); buf 2246 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " ("); buf 2247 third_party/libxml/src/valid.c xmlDumpEnumeration(buf, attr->tree); buf 2250 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " NOTATION ("); buf 2251 third_party/libxml/src/valid.c xmlDumpEnumeration(buf, attr->tree); buf 2262 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " #REQUIRED"); buf 2265 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " #IMPLIED"); buf 2268 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " #FIXED"); buf 2276 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " "); buf 2277 third_party/libxml/src/valid.c xmlBufferWriteQuotedString(buf, attr->defaultValue); buf 2279 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, ">\n"); buf 2290 third_party/libxml/src/valid.c xmlDumpAttributeDeclScan(xmlAttributePtr attr, xmlBufferPtr buf) { buf 2291 third_party/libxml/src/valid.c xmlDumpAttributeDecl(buf, attr); buf 2302 third_party/libxml/src/valid.c xmlDumpAttributeTable(xmlBufferPtr buf, xmlAttributeTablePtr table) { buf 2303 third_party/libxml/src/valid.c if ((buf == NULL) || (table == NULL)) buf 2305 third_party/libxml/src/valid.c xmlHashScan(table, (xmlHashScanner) xmlDumpAttributeDeclScan, buf); buf 2479 third_party/libxml/src/valid.c xmlDumpNotationDecl(xmlBufferPtr buf, xmlNotationPtr nota) { buf 2480 third_party/libxml/src/valid.c if ((buf == NULL) || (nota == NULL)) buf 2482 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, "<!NOTATION "); buf 2483 third_party/libxml/src/valid.c xmlBufferWriteCHAR(buf, nota->name); buf 2485 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " PUBLIC "); buf 2486 third_party/libxml/src/valid.c xmlBufferWriteQuotedString(buf, nota->PublicID); buf 2488 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " "); buf 2489 third_party/libxml/src/valid.c xmlBufferWriteQuotedString(buf, nota->SystemID); buf 2492 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " SYSTEM "); buf 2493 third_party/libxml/src/valid.c xmlBufferWriteQuotedString(buf, nota->SystemID); buf 2495 third_party/libxml/src/valid.c xmlBufferWriteChar(buf, " >\n"); buf 2506 third_party/libxml/src/valid.c xmlDumpNotationDeclScan(xmlNotationPtr nota, xmlBufferPtr buf) { buf 2507 third_party/libxml/src/valid.c xmlDumpNotationDecl(buf, nota); buf 2518 third_party/libxml/src/valid.c xmlDumpNotationTable(xmlBufferPtr buf, xmlNotationTablePtr table) { buf 2519 third_party/libxml/src/valid.c if ((buf == NULL) || (table == NULL)) buf 2521 third_party/libxml/src/valid.c xmlHashScan(table, (xmlHashScanner) xmlDumpNotationDeclScan, buf); buf 5142 third_party/libxml/src/valid.c xmlSnprintfElements(char *buf, int size, xmlNodePtr node, int glob) { buf 5147 third_party/libxml/src/valid.c if (glob) strcat(buf, "("); buf 5150 third_party/libxml/src/valid.c len = strlen(buf); buf 5152 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 5153 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 5160 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 5161 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 5164 third_party/libxml/src/valid.c strcat(buf, (char *) cur->ns->prefix); buf 5165 third_party/libxml/src/valid.c strcat(buf, ":"); buf 5168 third_party/libxml/src/valid.c if ((size - len > 4) && (buf[len - 1] != '.')) buf 5169 third_party/libxml/src/valid.c strcat(buf, " ..."); buf 5172 third_party/libxml/src/valid.c strcat(buf, (char *) cur->name); buf 5174 third_party/libxml/src/valid.c strcat(buf, " "); buf 5181 third_party/libxml/src/valid.c strcat(buf, "CDATA"); buf 5183 third_party/libxml/src/valid.c strcat(buf, " "); buf 5195 third_party/libxml/src/valid.c strcat(buf, "???"); buf 5197 third_party/libxml/src/valid.c strcat(buf, " "); buf 5212 third_party/libxml/src/valid.c if (glob) strcat(buf, ")"); buf 1792 third_party/libxml/src/xinclude.c xmlParserInputBufferPtr buf; buf 1873 third_party/libxml/src/xinclude.c buf = xmlParserInputBufferCreateFilename((const char *)URL, enc); buf 1874 third_party/libxml/src/xinclude.c if (buf == NULL) { buf 1883 third_party/libxml/src/xinclude.c while (xmlParserInputBufferRead(buf, 128) > 0) { buf 1887 third_party/libxml/src/xinclude.c content = xmlBufferContent(buf->buffer); buf 1888 third_party/libxml/src/xinclude.c len = xmlBufferLength(buf->buffer); buf 1898 third_party/libxml/src/xinclude.c xmlFreeParserInputBuffer(buf); buf 1906 third_party/libxml/src/xinclude.c xmlBufferShrink(buf->buffer, len); buf 1908 third_party/libxml/src/xinclude.c xmlFreeParserInputBuffer(buf); buf 163 third_party/libxml/src/xlink.c xmlChar buf[200]; buf 164 third_party/libxml/src/xlink.c snprintf((char *) buf, sizeof(buf), "%s:external-linkset", buf 166 third_party/libxml/src/xlink.c buf[sizeof(buf) - 1] = 0; buf 167 third_party/libxml/src/xlink.c if (xmlStrEqual(role, buf)) buf 3051 third_party/libxml/src/xmlIO.c int len, const char *buf) { buf 3066 third_party/libxml/src/xmlIO.c ret = xmlBufferAdd(in->raw, (const xmlChar *) buf, len); buf 3083 third_party/libxml/src/xmlIO.c ret = xmlBufferAdd(in->buffer, (xmlChar *) buf, nbchars); buf 3245 third_party/libxml/src/xmlIO.c xmlOutputBufferWrite(xmlOutputBufferPtr out, int len, const char *buf) { buf 3270 third_party/libxml/src/xmlIO.c ret = xmlBufferAdd(out->buffer, (const xmlChar *) buf, chunk); buf 3288 third_party/libxml/src/xmlIO.c ret = xmlBufferAdd(out->buffer, (const xmlChar *) buf, chunk); buf 3293 third_party/libxml/src/xmlIO.c buf += chunk; buf 3682 third_party/libxml/src/xmlIO.c if ((ret != NULL) && (ret->buf != NULL) && buf 3683 third_party/libxml/src/xmlIO.c (ret->buf->readcallback == xmlIOHTTPRead) && buf 3684 third_party/libxml/src/xmlIO.c (ret->buf->context != NULL)) { buf 3690 third_party/libxml/src/xmlIO.c code = xmlNanoHTTPReturnCode(ret->buf->context); buf 3702 third_party/libxml/src/xmlIO.c mime = xmlNanoHTTPMimeType(ret->buf->context); buf 3705 third_party/libxml/src/xmlIO.c encoding = xmlNanoHTTPEncoding(ret->buf->context); buf 3724 third_party/libxml/src/xmlIO.c redir = xmlNanoHTTPRedir(ret->buf->context); buf 826 third_party/libxml/src/xmllint.c static int myRead(FILE *f, char * buf, int len) { buf 827 third_party/libxml/src/xmllint.c return(fread(buf, 1, len, f)); buf 1632 third_party/libxml/src/xmllint.c xmlParserInputBufferPtr buf = NULL; buf 1652 third_party/libxml/src/xmllint.c buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE); buf 1653 third_party/libxml/src/xmllint.c if (buf == NULL) { buf 1668 third_party/libxml/src/xmllint.c ret = xmlSchemaValidateStream(vctxt, buf, 0, handler, buf 1691 third_party/libxml/src/xmllint.c xmlFreeParserInputBuffer(buf); buf 1697 third_party/libxml/src/xmllint.c inputStream = xmlNewIOInputStream(ctxt, buf, XML_CHAR_ENCODING_NONE); buf 1699 third_party/libxml/src/xmllint.c xmlFreeParserInputBuffer(buf); buf 584 third_party/libxml/src/xmlmemory.c const char *buf = (const char *) HDR_2_CLIENT(p); buf 592 third_party/libxml/src/xmlmemory.c if (buf[i] == 0) break; buf 593 third_party/libxml/src/xmlmemory.c if (!isprint((unsigned char) buf[i])) break; buf 595 third_party/libxml/src/xmlmemory.c if ((i < 4) && ((buf[i] != 0) || (i == 0))) { buf 601 third_party/libxml/src/xmlmemory.c cur = *((void **) &buf[j]); buf 617 third_party/libxml/src/xmlmemory.c } else if ((i == 0) && (buf[i] == 0)) { buf 620 third_party/libxml/src/xmlmemory.c if (buf[i] == 0) fprintf(fp," \"%.25s\"", buf); buf 624 third_party/libxml/src/xmlmemory.c fprintf(fp,"%c", buf[j]); buf 721 third_party/libxml/src/xmlmemory.c char buf[500]; buf 737 third_party/libxml/src/xmlmemory.c strftime(buf, sizeof(buf) - 1, "%I:%M:%S %p", tstruct); buf 738 third_party/libxml/src/xmlmemory.c fprintf(fp," %s\n\n", buf); buf 5019 third_party/libxml/src/xmlreader.c xmlParserInputBufferPtr buf; buf 5023 third_party/libxml/src/xmlreader.c buf = xmlAllocParserInputBuffer(enc); buf 5024 third_party/libxml/src/xmlreader.c if (buf == NULL) return(-1); buf 5027 third_party/libxml/src/xmlreader.c xmlFreeParserInputBuffer(buf); buf 5036 third_party/libxml/src/xmlreader.c inputStream->buf = buf; buf 5037 third_party/libxml/src/xmlreader.c inputStream->base = inputStream->buf->buffer->content; buf 5038 third_party/libxml/src/xmlreader.c inputStream->cur = inputStream->buf->buffer->content; buf 5040 third_party/libxml/src/xmlreader.c &inputStream->buf->buffer->content[inputStream->buf->buffer->use]; buf 5247 third_party/libxml/src/xmlreader.c xmlParserInputBufferPtr buf; buf 5249 third_party/libxml/src/xmlreader.c buf = xmlParserInputBufferCreateStatic(buffer, size, buf 5251 third_party/libxml/src/xmlreader.c if (buf == NULL) { buf 5254 third_party/libxml/src/xmlreader.c reader = xmlNewTextReader(buf, URL); buf 5256 third_party/libxml/src/xmlreader.c xmlFreeParserInputBuffer(buf); buf 4140 third_party/libxml/src/xmlregexp.c xmlChar buf[150]; buf 4164 third_party/libxml/src/xmlregexp.c str = buf; buf 4176 third_party/libxml/src/xmlregexp.c if (str != buf) buf 8016 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(xmlBufferPtr buf, xmlExpNodePtr expr, int glob) { buf 8020 third_party/libxml/src/xmlregexp.c if (glob) xmlBufferWriteChar(buf, "("); buf 8023 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, "empty"); buf 8026 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, "forbidden"); buf 8029 third_party/libxml/src/xmlregexp.c xmlBufferWriteCHAR(buf, expr->exp_str); buf 8034 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 1); buf 8036 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 0); buf 8037 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, " , "); buf 8040 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 1); buf 8042 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 0); buf 8047 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 1); buf 8049 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 0); buf 8050 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, " | "); buf 8053 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 1); buf 8055 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 0); buf 8062 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 1); buf 8064 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, c, 0); buf 8082 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, rep); buf 8089 third_party/libxml/src/xmlregexp.c xmlBufferWriteChar(buf, ")"); buf 8099 third_party/libxml/src/xmlregexp.c xmlExpDump(xmlBufferPtr buf, xmlExpNodePtr expr) { buf 8100 third_party/libxml/src/xmlregexp.c if ((buf == NULL) || (expr == NULL)) buf 8102 third_party/libxml/src/xmlregexp.c xmlExpDumpInt(buf, expr, 0); buf 81 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 363 third_party/libxml/src/xmlsave.c if (ctxt->buf != NULL) buf 364 third_party/libxml/src/xmlsave.c xmlOutputBufferClose(ctxt->buf); buf 429 third_party/libxml/src/xmlsave.c xmlAttrSerializeContent(xmlOutputBufferPtr buf, xmlAttrPtr attr) buf 437 third_party/libxml/src/xmlsave.c xmlAttrSerializeTxtContent(buf->buffer, attr->doc, buf 441 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf->buffer, BAD_CAST "&", 1); buf 442 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf->buffer, children->name, buf 444 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf->buffer, BAD_CAST ";", 1); buf 461 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf = ctxt->buf; buf 463 third_party/libxml/src/xmlsave.c if ((encoding != NULL) && (buf->encoder == NULL) && (buf->conv == NULL)) { buf 464 third_party/libxml/src/xmlsave.c buf->encoder = xmlFindCharEncodingHandler((const char *)encoding); buf 465 third_party/libxml/src/xmlsave.c if (buf->encoder == NULL) { buf 470 third_party/libxml/src/xmlsave.c buf->conv = xmlBufferCreate(); buf 471 third_party/libxml/src/xmlsave.c if (buf->conv == NULL) { buf 472 third_party/libxml/src/xmlsave.c xmlCharEncCloseFunc(buf->encoder); buf 479 third_party/libxml/src/xmlsave.c xmlCharEncOutFunc(buf->encoder, buf->conv, NULL); buf 485 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf = ctxt->buf; buf 486 third_party/libxml/src/xmlsave.c xmlOutputBufferFlush(buf); buf 487 third_party/libxml/src/xmlsave.c xmlCharEncCloseFunc(buf->encoder); buf 488 third_party/libxml/src/xmlsave.c xmlBufferFree(buf->conv); buf 489 third_party/libxml/src/xmlsave.c buf->encoder = NULL; buf 490 third_party/libxml/src/xmlsave.c buf->conv = NULL; buf 500 third_party/libxml/src/xmlsave.c void xmlNsListDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur); buf 512 third_party/libxml/src/xmlsave.c xmlNsDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur) { buf 513 third_party/libxml/src/xmlsave.c if ((cur == NULL) || (buf == NULL)) return; buf 520 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 7, " xmlns:"); buf 521 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->prefix); buf 523 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 6, " xmlns"); buf 524 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "="); buf 525 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, cur->href); buf 538 third_party/libxml/src/xmlsave.c xmlNsListDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur) { buf 540 third_party/libxml/src/xmlsave.c xmlNsDumpOutput(buf, cur); buf 554 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 559 third_party/libxml/src/xmlsave.c if ((ctxt == NULL) || (ctxt->buf == NULL)) buf 561 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 562 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 10, "<!DOCTYPE "); buf 563 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)dtd->name); buf 565 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 8, " PUBLIC "); buf 566 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, dtd->ExternalID); buf 567 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, " "); buf 568 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID); buf 570 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 8, " SYSTEM "); buf 571 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID); buf 576 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 579 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, " [\n"); buf 586 third_party/libxml/src/xmlsave.c xmlDumpNotationTable(buf->buffer, (xmlNotationTablePtr) dtd->notations); buf 598 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "]>"); buf 610 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 613 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 614 third_party/libxml/src/xmlsave.c if (buf == NULL) return; buf 615 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, " "); buf 617 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 618 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 620 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 621 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "=\""); buf 622 third_party/libxml/src/xmlsave.c xmlAttrSerializeContent(buf, cur); buf 623 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\""); buf 654 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 657 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 663 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 669 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 687 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf = ctxt->buf; buf 710 third_party/libxml/src/xmlsave.c (buf->encoder == NULL) && (buf->conv == NULL)) { buf 718 third_party/libxml/src/xmlsave.c htmlNodeDumpFormatOutput(buf, doc, cur, buf 721 third_party/libxml/src/xmlsave.c htmlNodeDumpFormatOutput(buf, doc, cur, buf 746 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 749 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 781 third_party/libxml/src/xmlsave.c xmlDumpElementDecl(buf->buffer, (xmlElementPtr) cur); buf 785 third_party/libxml/src/xmlsave.c xmlDumpAttributeDecl(buf->buffer, (xmlAttributePtr) cur); buf 789 third_party/libxml/src/xmlsave.c xmlDumpEntityDecl(buf->buffer, (xmlEntityPtr) cur); buf 795 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); buf 800 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *) cur->content); buf 808 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "<?"); buf 809 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 811 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, " "); buf 812 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 814 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "?>"); buf 816 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "<?"); buf 817 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 818 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "?>"); buf 824 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 4, "<!--"); buf 825 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 826 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "-->"); buf 831 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "&"); buf 832 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 833 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ";"); buf 838 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 12, "<![CDATA[]]>"); buf 845 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 846 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, end - start, (const char *)start); buf 847 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 853 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 854 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)start); buf 855 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 865 third_party/libxml/src/xmlsave.c xmlNsDumpOutput(buf, (xmlNsPtr) cur); buf 882 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "<"); buf 884 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 885 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 888 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 890 third_party/libxml/src/xmlsave.c xmlNsListDumpOutput(buf, cur->nsDef); buf 896 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "/>"); buf 900 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 902 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); buf 905 third_party/libxml/src/xmlsave.c if (ctxt->format) xmlOutputBufferWrite(buf, 1, "\n"); buf 910 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 915 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "</"); buf 917 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 918 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 921 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 922 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 943 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf = ctxt->buf; buf 974 third_party/libxml/src/xmlsave.c (buf->encoder == NULL) && (buf->conv == NULL)) { buf 981 third_party/libxml/src/xmlsave.c htmlDocContentDumpFormatOutput(buf, cur, buf 984 third_party/libxml/src/xmlsave.c htmlDocContentDumpFormatOutput(buf, cur, buf 997 third_party/libxml/src/xmlsave.c (buf->encoder == NULL) && (buf->conv == NULL) && buf 1024 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 14, "<?xml version="); buf 1026 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, cur->version); buf 1028 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 5, "\"1.0\""); buf 1030 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 10, " encoding="); buf 1031 third_party/libxml/src/xmlsave.c xmlBufferWriteQuotedString(buf->buffer, (xmlChar *) encoding); buf 1035 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 16, " standalone=\"no\""); buf 1038 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 17, " standalone=\"yes\""); buf 1041 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "?>\n"); buf 1066 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 1171 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 1174 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 1217 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 5, " id=\""); buf 1218 third_party/libxml/src/xmlsave.c xmlAttrSerializeContent(buf, name); buf 1219 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\""); buf 1226 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 11, " xml:lang=\""); buf 1227 third_party/libxml/src/xmlsave.c xmlAttrSerializeContent(buf, lang); buf 1228 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\""); buf 1231 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 7, " lang=\""); buf 1232 third_party/libxml/src/xmlsave.c xmlAttrSerializeContent(buf, xml_lang); buf 1233 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\""); buf 1252 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 1255 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 1259 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 1265 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 1287 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 1307 third_party/libxml/src/xmlsave.c buf = ctxt->buf; buf 1309 third_party/libxml/src/xmlsave.c xmlDumpElementDecl(buf->buffer, (xmlElementPtr) cur); buf 1313 third_party/libxml/src/xmlsave.c xmlDumpAttributeDecl(buf->buffer, (xmlAttributePtr) cur); buf 1317 third_party/libxml/src/xmlsave.c xmlDumpEntityDecl(buf->buffer, (xmlEntityPtr) cur); buf 1324 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); buf 1329 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *) cur->content); buf 1337 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "<?"); buf 1338 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1340 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, " "); buf 1341 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 1343 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "?>"); buf 1345 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "<?"); buf 1346 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1347 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "?>"); buf 1353 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 4, "<!--"); buf 1354 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->content); buf 1355 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "-->"); buf 1360 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "&"); buf 1361 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1362 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ";"); buf 1367 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 12, "<![CDATA[]]>"); buf 1373 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 1374 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, end - start, (const char *)start); buf 1375 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 1381 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 1382 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)start); buf 1383 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 1405 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "<"); buf 1407 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 1408 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 1411 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1413 third_party/libxml/src/xmlsave.c xmlNsListDumpOutput(buf, cur->nsDef); buf 1419 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, buf 1457 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, " />"); buf 1460 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 1462 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 1464 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 1468 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, buf 1471 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding); buf 1473 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 5, "UTF-8"); buf 1475 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 4, "\" />"); buf 1477 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 1479 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 1484 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "</"); buf 1486 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 1487 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 1489 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1490 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 1494 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 1497 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, "\n"); buf 1499 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 1503 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, buf 1506 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding); buf 1508 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 5, "UTF-8"); buf 1510 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 4, "\" />"); buf 1513 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); buf 1543 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *) child->content); buf 1558 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 1559 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, end - start, buf 1561 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 1567 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 9, "<![CDATA["); buf 1568 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, end - start, buf 1570 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 3, "]]>"); buf 1591 third_party/libxml/src/xmlsave.c if (format) xmlOutputBufferWrite(buf, 1, "\n"); buf 1598 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, ctxt->indent_size * buf 1603 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 2, "</"); buf 1605 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); buf 1606 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ":"); buf 1609 third_party/libxml/src/xmlsave.c xmlOutputBufferWriteString(buf, (const char *)cur->name); buf 1610 third_party/libxml/src/xmlsave.c xmlOutputBufferWrite(buf, 1, ">"); buf 1638 third_party/libxml/src/xmlsave.c ret->buf = xmlOutputBufferCreateFd(fd, ret->handler); buf 1639 third_party/libxml/src/xmlsave.c if (ret->buf == NULL) { buf 1666 third_party/libxml/src/xmlsave.c ret->buf = xmlOutputBufferCreateFilename(filename, ret->handler, buf 1668 third_party/libxml/src/xmlsave.c if (ret->buf == NULL) { buf 1712 third_party/libxml/src/xmlsave.c ret->buf = out_buff; buf 1738 third_party/libxml/src/xmlsave.c ret->buf = xmlOutputBufferCreateIO(iowrite, ioclose, ioctx, ret->handler); buf 1739 third_party/libxml/src/xmlsave.c if (ret->buf == NULL) { buf 1802 third_party/libxml/src/xmlsave.c if (ctxt->buf == NULL) return(-1); buf 1803 third_party/libxml/src/xmlsave.c return(xmlOutputBufferFlush(ctxt->buf)); buf 1875 third_party/libxml/src/xmlsave.c xmlAttrSerializeTxtContent(xmlBufferPtr buf, xmlDocPtr doc, buf 1886 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1887 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST " ", 5); buf 1892 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1893 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST " ", 5); buf 1898 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1899 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST "	", 4); buf 1904 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1905 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST """, 6); buf 1910 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1911 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST "<", 4); buf 1916 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1917 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST ">", 4); buf 1922 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1923 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, BAD_CAST "&", 5); buf 1935 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 1941 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, (xmlChar *) tmp, -1); buf 1973 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, (xmlChar *) tmp, -1); buf 1983 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, (xmlChar *) tmp, -1); buf 1991 third_party/libxml/src/xmlsave.c xmlBufferAdd(buf, base, cur - base); buf 2009 third_party/libxml/src/xmlsave.c xmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level, buf 2025 third_party/libxml/src/xmlsave.c if (buf == NULL) { buf 2038 third_party/libxml/src/xmlsave.c outbuf->buffer = buf; buf 2045 third_party/libxml/src/xmlsave.c use = buf->use; buf 2048 third_party/libxml/src/xmlsave.c ret = buf->use - use; buf 2115 third_party/libxml/src/xmlsave.c xmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, buf 2126 third_party/libxml/src/xmlsave.c if ((buf == NULL) || (cur == NULL)) return; buf 2133 third_party/libxml/src/xmlsave.c ctxt.buf = buf; buf 2219 third_party/libxml/src/xmlsave.c ctxt.buf = out_buff; buf 2312 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 2334 third_party/libxml/src/xmlsave.c buf = xmlOutputBufferCreateFile(f, handler); buf 2335 third_party/libxml/src/xmlsave.c if (buf == NULL) return(-1); buf 2338 third_party/libxml/src/xmlsave.c ctxt.buf = buf; buf 2346 third_party/libxml/src/xmlsave.c ret = xmlOutputBufferClose(buf); buf 2377 third_party/libxml/src/xmlsave.c xmlSaveFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding) { buf 2381 third_party/libxml/src/xmlsave.c if (buf == NULL) return(-1); buf 2383 third_party/libxml/src/xmlsave.c xmlOutputBufferClose(buf); buf 2388 third_party/libxml/src/xmlsave.c ctxt.buf = buf; buf 2395 third_party/libxml/src/xmlsave.c ret = xmlOutputBufferClose(buf); buf 2413 third_party/libxml/src/xmlsave.c xmlSaveFormatFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, buf 2419 third_party/libxml/src/xmlsave.c if (buf == NULL) return(-1); buf 2423 third_party/libxml/src/xmlsave.c xmlOutputBufferClose(buf); buf 2428 third_party/libxml/src/xmlsave.c ctxt.buf = buf; buf 2435 third_party/libxml/src/xmlsave.c ret = xmlOutputBufferClose(buf); buf 2456 third_party/libxml/src/xmlsave.c xmlOutputBufferPtr buf; buf 2479 third_party/libxml/src/xmlsave.c buf = xmlOutputBufferCreateFilename(filename, handler, cur->compression); buf 2480 third_party/libxml/src/xmlsave.c if (buf == NULL) return(-1); buf 2483 third_party/libxml/src/xmlsave.c ctxt.buf = buf; buf 2492 third_party/libxml/src/xmlsave.c ret = xmlOutputBufferClose(buf); buf 1287 third_party/libxml/src/xmlschemas.c xmlSchemaFormatQName(xmlChar **buf, buf 1291 third_party/libxml/src/xmlschemas.c FREE_AND_NULL(*buf) buf 1293 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "{"); buf 1294 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, namespaceName); buf 1295 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "}"); buf 1300 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, localName); buf 1302 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "(NULL)"); buf 1304 third_party/libxml/src/xmlschemas.c return ((const xmlChar *) *buf); buf 1308 third_party/libxml/src/xmlschemas.c xmlSchemaFormatQNameNs(xmlChar **buf, xmlNsPtr ns, const xmlChar *localName) buf 1311 third_party/libxml/src/xmlschemas.c return (xmlSchemaFormatQName(buf, ns->href, localName)); buf 1313 third_party/libxml/src/xmlschemas.c return (xmlSchemaFormatQName(buf, NULL, localName)); buf 1413 third_party/libxml/src/xmlschemas.c xmlSchemaGetComponentQName(xmlChar **buf, buf 1416 third_party/libxml/src/xmlschemas.c return (xmlSchemaFormatQName(buf, buf 1422 third_party/libxml/src/xmlschemas.c xmlSchemaGetComponentDesignation(xmlChar **buf, void *item) buf 1426 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, WXS_ITEM_TYPE_NAME(item)); buf 1427 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1428 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaGetComponentQName(&str, buf 1430 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1432 third_party/libxml/src/xmlschemas.c return(*buf); buf 1436 third_party/libxml/src/xmlschemas.c xmlSchemaGetIDCDesignation(xmlChar **buf, xmlSchemaIDCPtr idc) buf 1438 third_party/libxml/src/xmlschemas.c return(xmlSchemaGetComponentDesignation(buf, idc)); buf 1565 third_party/libxml/src/xmlschemas.c xmlSchemaFormatItemForReport(xmlChar **buf, buf 1573 third_party/libxml/src/xmlschemas.c if (*buf != NULL) { buf 1574 third_party/libxml/src/xmlschemas.c xmlFree(*buf); buf 1575 third_party/libxml/src/xmlschemas.c *buf = NULL; buf 1579 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(itemDes); buf 1586 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "atomic type 'xs:"); buf 1588 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "list type 'xs:"); buf 1590 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "union type 'xs:"); buf 1592 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "simple type 'xs:"); buf 1593 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, type->name); buf 1594 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1601 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST""); buf 1603 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "local "); buf 1606 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "atomic type"); buf 1608 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "list type"); buf 1610 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "union type"); buf 1612 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "simple type"); buf 1614 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1615 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, type->name); buf 1616 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1624 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST ""); buf 1626 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "local "); buf 1627 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "complex type"); buf 1629 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1630 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, type->name); buf 1631 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1639 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "attribute use "); buf 1641 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1642 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, buf 1645 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1647 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "(unknown)"); buf 1655 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "attribute decl."); buf 1656 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1657 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaFormatQName(&str, buf 1660 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1664 third_party/libxml/src/xmlschemas.c xmlSchemaGetComponentDesignation(buf, item); buf 1670 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "element decl."); buf 1671 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1672 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaFormatQName(&str, buf 1674 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1681 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "unique '"); buf 1683 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "key '"); buf 1685 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "keyRef '"); buf 1686 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, ((xmlSchemaIDCPtr) item)->name); buf 1687 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1691 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(xmlSchemaWildcardPCToString( buf 1693 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " wildcard"); buf 1707 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "facet '"); buf 1708 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaFacetTypeToString(item->type)); buf 1709 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1712 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "model group def."); buf 1713 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1714 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaGetComponentQName(&str, item)); buf 1715 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1723 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(WXS_ITEM_TYPE_NAME(item)); buf 1726 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(WXS_ITEM_TYPE_NAME(item)); buf 1727 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST " '"); buf 1728 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaGetComponentQName(&str, item)); buf 1729 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1745 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "Element '"); buf 1747 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, buf 1751 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, elem->name); buf 1752 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1756 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST ", attribute '"); buf 1758 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, xmlSchemaFormatQName(&str, buf 1762 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, itemNode->name); buf 1763 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1767 third_party/libxml/src/xmlschemas.c return (*buf); buf 1781 third_party/libxml/src/xmlschemas.c xmlChar **buf, xmlSchemaTypePtr type) buf 1788 third_party/libxml/src/xmlschemas.c if (*buf != NULL) buf 1789 third_party/libxml/src/xmlschemas.c xmlFree(*buf); buf 1790 third_party/libxml/src/xmlschemas.c *buf = NULL; buf 1807 third_party/libxml/src/xmlschemas.c if (*buf != NULL) buf 1808 third_party/libxml/src/xmlschemas.c xmlFree(*buf); buf 1809 third_party/libxml/src/xmlschemas.c *buf = NULL; buf 1812 third_party/libxml/src/xmlschemas.c if (*buf == NULL) buf 1813 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "'"); buf 1815 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST ", '"); buf 1816 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST value); buf 1817 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 1834 third_party/libxml/src/xmlschemas.c return ((const xmlChar *) *buf); buf 9170 third_party/libxml/src/xmlschemas.c char buf[40]; buf 9176 third_party/libxml/src/xmlschemas.c snprintf(buf, 39, "#ST%d", ctxt->counter++ + 1); buf 9179 third_party/libxml/src/xmlschemas.c xmlDictLookup(ctxt->dict, (const xmlChar *)buf, -1), buf 12091 third_party/libxml/src/xmlschemas.c char buf[40]; buf 12118 third_party/libxml/src/xmlschemas.c snprintf(buf, 39, "#CT%d", ctxt->counter++ + 1); buf 12121 third_party/libxml/src/xmlschemas.c xmlDictLookup(ctxt->dict, (const xmlChar *)buf, -1), buf 18160 third_party/libxml/src/xmlschemas.c char buf[30]; buf 18195 third_party/libxml/src/xmlschemas.c snprintf(buf, 29, "#scST%d", ++(pctxt->counter)); buf 18196 third_party/libxml/src/xmlschemas.c tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); buf 22564 third_party/libxml/src/xmlschemas.c xmlChar **buf, buf 22571 third_party/libxml/src/xmlschemas.c *buf = xmlStrdup(BAD_CAST "["); buf 22573 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 22578 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST value); buf 22582 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "???"); buf 22585 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "', "); buf 22587 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "'"); buf 22593 third_party/libxml/src/xmlschemas.c *buf = xmlStrcat(*buf, BAD_CAST "]"); buf 22595 third_party/libxml/src/xmlschemas.c return (BAD_CAST *buf); buf 5722 third_party/libxml/src/xmlschemastypes.c char *buf = NULL, *offs; buf 5731 third_party/libxml/src/xmlschemastypes.c buf = xmlMalloc(bufsize); buf 5732 third_party/libxml/src/xmlschemastypes.c if (buf == NULL) buf 5734 third_party/libxml/src/xmlschemastypes.c offs = buf; buf 5742 third_party/libxml/src/xmlschemastypes.c snprintf(offs, bufsize - (offs - buf), buf 5745 third_party/libxml/src/xmlschemastypes.c snprintf(offs, bufsize - (offs - buf), buf 5748 third_party/libxml/src/xmlschemastypes.c snprintf(offs, bufsize - (offs - buf), buf 5775 third_party/libxml/src/xmlschemastypes.c offs = buf + bufsize - 1; buf 5780 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST buf; buf 5838 third_party/libxml/src/xmlschemastypes.c char buf[100]; buf 5865 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 100, "P%luY%luM%luDT%luH%luM%.14gS", buf 5868 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 100, "-P%luY%luM%luDT%luH%luM%.14gS", buf 5870 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 5874 third_party/libxml/src/xmlschemastypes.c char buf[30]; buf 5877 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, "%04ld", val->value.date.year); buf 5878 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 5912 third_party/libxml/src/xmlschemastypes.c char buf[35]; buf 5916 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 35, "-%04ld-%02u", buf 5920 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 35, "%04ld-%02u", buf 5922 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 5927 third_party/libxml/src/xmlschemastypes.c char buf[30]; buf 5938 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, buf 5945 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, buf 5951 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 5956 third_party/libxml/src/xmlschemastypes.c char buf[30]; buf 5968 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, buf 5974 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, buf 5979 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 5984 third_party/libxml/src/xmlschemastypes.c char buf[50]; buf 5995 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 50, buf 6002 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 50, buf 6008 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 6024 third_party/libxml/src/xmlschemastypes.c char buf[30]; buf 6031 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 30, "%01.14e", val->value.f); buf 6032 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 6036 third_party/libxml/src/xmlschemastypes.c char buf[40]; buf 6043 third_party/libxml/src/xmlschemastypes.c snprintf(buf, 40, "%01.14e", val->value.d); buf 6044 third_party/libxml/src/xmlschemastypes.c *retValue = BAD_CAST xmlStrdup(BAD_CAST buf); buf 541 third_party/libxml/src/xmlstring.c xmlStrPrintf(xmlChar *buf, int len, const xmlChar *msg, ...) { buf 545 third_party/libxml/src/xmlstring.c if((buf == NULL) || (msg == NULL)) { buf 550 third_party/libxml/src/xmlstring.c ret = vsnprintf((char *) buf, len, (const char *) msg, args); buf 552 third_party/libxml/src/xmlstring.c buf[len - 1] = 0; /* be safe ! */ buf 569 third_party/libxml/src/xmlstring.c xmlStrVPrintf(xmlChar *buf, int len, const xmlChar *msg, va_list ap) { buf 572 third_party/libxml/src/xmlstring.c if((buf == NULL) || (msg == NULL)) { buf 576 third_party/libxml/src/xmlstring.c ret = vsnprintf((char *) buf, len, (const char *) msg, ap); buf 577 third_party/libxml/src/xmlstring.c buf[len - 1] = 0; /* be safe ! */ buf 274 third_party/libxml/src/xmlwriter.c xmlNewTextWriterMemory(xmlBufferPtr buf, int compression ATTRIBUTE_UNUSED) buf 280 third_party/libxml/src/xmlwriter.c out = xmlOutputBufferCreateBuffer(buf, NULL); buf 894 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 902 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 903 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 906 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteComment(writer, buf); buf 908 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1057 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 1062 third_party/libxml/src/xmlwriter.c buf = NULL; buf 1064 third_party/libxml/src/xmlwriter.c buf = xmlStrdup(prefix); buf 1065 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, BAD_CAST ":"); buf 1067 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, name); buf 1070 third_party/libxml/src/xmlwriter.c count = xmlTextWriterStartElement(writer, buf); buf 1071 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1085 third_party/libxml/src/xmlwriter.c buf = xmlStrdup(BAD_CAST "xmlns"); buf 1087 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, BAD_CAST ":"); buf 1088 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, prefix); buf 1091 third_party/libxml/src/xmlwriter.c p->prefix = buf; buf 1322 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 1327 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 1328 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 1331 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteRaw(writer, buf); buf 1333 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1451 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 1456 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 1457 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 1460 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteString(writer, buf); buf 1462 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1482 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 1488 third_party/libxml/src/xmlwriter.c buf = (xmlChar *) content; buf 1497 third_party/libxml/src/xmlwriter.c buf = NULL; buf 1500 third_party/libxml/src/xmlwriter.c buf = xmlEncodeSpecialChars(NULL, content); buf 1503 third_party/libxml/src/xmlwriter.c buf = NULL; buf 1513 third_party/libxml/src/xmlwriter.c if (buf != NULL) { buf 1514 third_party/libxml/src/xmlwriter.c count = xmlTextWriterWriteRaw(writer, buf); buf 1516 third_party/libxml/src/xmlwriter.c if (buf != content) /* buf was allocated by us, so free it */ buf 1517 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1832 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 1842 third_party/libxml/src/xmlwriter.c buf = xmlStrdup(BAD_CAST "xmlns"); buf 1844 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, BAD_CAST ":"); buf 1845 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, prefix); buf 1848 third_party/libxml/src/xmlwriter.c nsentry.prefix = buf; buf 1855 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1858 third_party/libxml/src/xmlwriter.c buf = NULL; buf 1866 third_party/libxml/src/xmlwriter.c if (buf != NULL) { buf 1875 third_party/libxml/src/xmlwriter.c p->prefix = buf; buf 1889 third_party/libxml/src/xmlwriter.c buf = NULL; buf 1891 third_party/libxml/src/xmlwriter.c buf = xmlStrdup(prefix); buf 1892 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, BAD_CAST ":"); buf 1894 third_party/libxml/src/xmlwriter.c buf = xmlStrcat(buf, name); buf 1897 third_party/libxml/src/xmlwriter.c count = xmlTextWriterStartAttribute(writer, buf); buf 1898 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 1997 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2002 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2003 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2006 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteAttribute(writer, name, buf); buf 2008 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 2099 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2104 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2105 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2109 third_party/libxml/src/xmlwriter.c buf); buf 2111 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 2200 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2205 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2206 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2209 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteElement(writer, name, buf); buf 2211 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 2302 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2307 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2308 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2312 third_party/libxml/src/xmlwriter.c buf); buf 2314 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 2551 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2556 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2557 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2560 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWritePI(writer, target, buf); buf 2562 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 2764 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 2769 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 2770 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 2773 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteCDATA(writer, buf); buf 2775 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 3082 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 3087 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 3088 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 3091 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); buf 3093 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 3320 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 3325 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 3326 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 3329 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteDTDElement(writer, name, buf); buf 3331 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 3557 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 3562 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 3563 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 3566 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteDTDAttlist(writer, name, buf); buf 3568 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 3819 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 3824 third_party/libxml/src/xmlwriter.c buf = xmlTextWriterVSprintf(format, argptr); buf 3825 third_party/libxml/src/xmlwriter.c if (buf == NULL) buf 3828 third_party/libxml/src/xmlwriter.c rc = xmlTextWriterWriteDTDInternalEntity(writer, pe, name, buf); buf 3830 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 4467 third_party/libxml/src/xmlwriter.c xmlChar *buf; buf 4471 third_party/libxml/src/xmlwriter.c buf = (xmlChar *) xmlMalloc(size); buf 4472 third_party/libxml/src/xmlwriter.c if (buf == NULL) { buf 4479 third_party/libxml/src/xmlwriter.c while (((count = vsnprintf((char *) buf, size, format, locarg)) < 0) buf 4482 third_party/libxml/src/xmlwriter.c xmlFree(buf); buf 4484 third_party/libxml/src/xmlwriter.c buf = (xmlChar *) xmlMalloc(size); buf 4485 third_party/libxml/src/xmlwriter.c if (buf == NULL) { buf 4494 third_party/libxml/src/xmlwriter.c return buf; buf 271 third_party/libxml/src/xpath.c xmlChar buf[200]; buf 273 third_party/libxml/src/xpath.c xmlStrPrintf(buf, 200, buf 276 third_party/libxml/src/xpath.c ctxt->lastError.message = (char *) xmlStrdup(buf); buf 5588 third_party/libxml/src/xpath.c char buf[100]; buf 5589 third_party/libxml/src/xpath.c xmlXPathFormatNumber(val, buf, 99); buf 5590 third_party/libxml/src/xpath.c buf[99] = 0; buf 5591 third_party/libxml/src/xpath.c ret = xmlStrdup((const xmlChar *) buf); buf 9851 third_party/libxml/src/xpath.c xmlChar buf[XML_MAX_NAMELEN + 5]; buf 9873 third_party/libxml/src/xpath.c COPY_BUF(l,buf,len,c); buf 9888 third_party/libxml/src/xpath.c memcpy(buffer, buf, len); buf 9912 third_party/libxml/src/xpath.c return(xmlStrndup(buf, len)); buf 1106 third_party/libxslt/libexslt/date.c xmlChar buf[100], *cur = buf; buf 1171 third_party/libxslt/libexslt/date.c return xmlStrdup(buf); buf 1185 third_party/libxslt/libexslt/date.c xmlChar buf[100], *cur = buf; buf 1197 third_party/libxslt/libexslt/date.c return xmlStrdup(buf); buf 1211 third_party/libxslt/libexslt/date.c xmlChar buf[100], *cur = buf; buf 1222 third_party/libxslt/libexslt/date.c return xmlStrdup(buf); buf 1236 third_party/libxslt/libexslt/date.c xmlChar buf[100], *cur = buf; buf 1247 third_party/libxslt/libexslt/date.c return xmlStrdup(buf); buf 1281 third_party/libxslt/libexslt/date.c xmlChar buf[20], *cur = buf; buf 1294 third_party/libxslt/libexslt/date.c return xmlStrdup(buf); buf 1439 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultTo(xmlOutputBufferPtr buf, xmlDocPtr result, buf 1446 third_party/libxslt/libxslt/xsltutils.c if ((buf == NULL) || (result == NULL) || (style == NULL)) buf 1461 third_party/libxslt/libxslt/xsltutils.c base = buf->written; buf 1479 third_party/libxslt/libxslt/xsltutils.c htmlDocContentDumpFormatOutput(buf, result, (const char *) encoding, buf 1481 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferFlush(buf); buf 1489 third_party/libxslt/libxslt/xsltutils.c htmlDocContentDumpOutput(buf, result, (const char *) encoding); buf 1490 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferFlush(buf); buf 1498 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, (const char *) cur->content); buf 1530 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferFlush(buf); buf 1539 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, "<?xml version="); buf 1541 third_party/libxslt/libxslt/xsltutils.c xmlBufferWriteQuotedString(buf->buffer, result->version); buf 1543 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, "\"1.0\""); buf 1553 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, " encoding="); buf 1554 third_party/libxslt/libxslt/xsltutils.c xmlBufferWriteQuotedString(buf->buffer, (xmlChar *) encoding); buf 1558 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, " standalone=\"no\""); buf 1561 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, " standalone=\"yes\""); buf 1566 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, "?>\n"); buf 1572 third_party/libxslt/libxslt/xsltutils.c xmlNodeDumpOutput(buf, result, child, 0, (indent == 1), buf 1577 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, "\n"); buf 1580 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferWriteString(buf, "\n"); buf 1582 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferFlush(buf); buf 1584 third_party/libxslt/libxslt/xsltutils.c return(buf->written - base); buf 1602 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferPtr buf; buf 1620 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFilename(URL, encoder, compression); buf 1622 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFilename(URL, NULL, compression); buf 1624 third_party/libxslt/libxslt/xsltutils.c if (buf == NULL) buf 1626 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultTo(buf, result, style); buf 1627 third_party/libxslt/libxslt/xsltutils.c ret = xmlOutputBufferClose(buf); buf 1645 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferPtr buf; buf 1663 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFile(file, encoder); buf 1665 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFile(file, NULL); buf 1668 third_party/libxslt/libxslt/xsltutils.c if (buf == NULL) buf 1670 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultTo(buf, result, style); buf 1671 third_party/libxslt/libxslt/xsltutils.c ret = xmlOutputBufferClose(buf); buf 1689 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferPtr buf; buf 1707 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFd(fd, encoder); buf 1709 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFd(fd, NULL); buf 1711 third_party/libxslt/libxslt/xsltutils.c if (buf == NULL) buf 1713 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultTo(buf, result, style); buf 1714 third_party/libxslt/libxslt/xsltutils.c ret = xmlOutputBufferClose(buf); buf 1733 third_party/libxslt/libxslt/xsltutils.c xmlOutputBufferPtr buf; buf 1750 third_party/libxslt/libxslt/xsltutils.c buf = xmlAllocOutputBuffer(encoder); buf 1752 third_party/libxslt/libxslt/xsltutils.c buf = xmlAllocOutputBuffer(NULL); buf 1754 third_party/libxslt/libxslt/xsltutils.c if (buf == NULL) buf 1756 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultTo(buf, result, style); buf 1757 third_party/libxslt/libxslt/xsltutils.c if (buf->conv != NULL) { buf 1758 third_party/libxslt/libxslt/xsltutils.c *doc_txt_len = buf->conv->use; buf 1759 third_party/libxslt/libxslt/xsltutils.c *doc_txt_ptr = xmlStrndup(buf->conv->content, *doc_txt_len); buf 1761 third_party/libxslt/libxslt/xsltutils.c *doc_txt_len = buf->buffer->use; buf 1762 third_party/libxslt/libxslt/xsltutils.c *doc_txt_ptr = xmlStrndup(buf->buffer->content, *doc_txt_len); buf 1764 third_party/libxslt/libxslt/xsltutils.c (void)xmlOutputBufferClose(buf); buf 2003 third_party/libxslt/libxslt/xsltutils.c char buf[100]; buf 2065 third_party/libxslt/libxslt/xsltutils.c sprintf(buf, "%d", i + 1); buf 2066 third_party/libxslt/libxslt/xsltutils.c xmlSetProp(child, BAD_CAST "rank", BAD_CAST buf); buf 2071 third_party/libxslt/libxslt/xsltutils.c sprintf(buf, "%d", templates[i]->nbCalls); buf 2072 third_party/libxslt/libxslt/xsltutils.c xmlSetProp(child, BAD_CAST "calls", BAD_CAST buf); buf 2074 third_party/libxslt/libxslt/xsltutils.c sprintf(buf, "%ld", templates[i]->time); buf 2075 third_party/libxslt/libxslt/xsltutils.c xmlSetProp(child, BAD_CAST "time", BAD_CAST buf); buf 2077 third_party/libxslt/libxslt/xsltutils.c sprintf(buf, "%ld", templates[i]->time / templates[i]->nbCalls); buf 2078 third_party/libxslt/libxslt/xsltutils.c xmlSetProp(child, BAD_CAST "average", BAD_CAST buf); buf 217 third_party/libxslt/libxslt/xsltutils.h xsltSaveResultTo (xmlOutputBufferPtr buf, buf 32 third_party/lzma_sdk/7zBuf.h int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc); buf 239 third_party/lzma_sdk/7zFile.c static SRes FileSeqInStream_Read(void *pp, void *buf, size_t *size) buf 242 third_party/lzma_sdk/7zFile.c return File_Read(&p->file, buf, size) == 0 ? SZ_OK : SZ_ERROR_READ; buf 253 third_party/lzma_sdk/7zFile.c static SRes FileInStream_Read(void *pp, void *buf, size_t *size) buf 256 third_party/lzma_sdk/7zFile.c return (File_Read(&p->file, buf, size) == 0) ? SZ_OK : SZ_ERROR_READ; buf 8 third_party/lzma_sdk/7zStream.c SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) buf 13 third_party/lzma_sdk/7zStream.c RINOK(stream->Read(stream, buf, &processed)); buf 16 third_party/lzma_sdk/7zStream.c buf = (void *)((Byte *)buf + processed); buf 22 third_party/lzma_sdk/7zStream.c SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) buf 24 third_party/lzma_sdk/7zStream.c return SeqInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); buf 27 third_party/lzma_sdk/7zStream.c SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf) buf 30 third_party/lzma_sdk/7zStream.c RINOK(stream->Read(stream, buf, &processed)); buf 40 third_party/lzma_sdk/7zStream.c SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) buf 46 third_party/lzma_sdk/7zStream.c memcpy(buf, lookBuf, *size); buf 50 third_party/lzma_sdk/7zStream.c SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType) buf 55 third_party/lzma_sdk/7zStream.c RINOK(stream->Read(stream, buf, &processed)); buf 58 third_party/lzma_sdk/7zStream.c buf = (void *)((Byte *)buf + processed); buf 64 third_party/lzma_sdk/7zStream.c SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size) buf 66 third_party/lzma_sdk/7zStream.c return LookInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); buf 69 third_party/lzma_sdk/7zStream.c static SRes LookToRead_Look_Lookahead(void *pp, const void **buf, size_t *size) buf 78 third_party/lzma_sdk/7zStream.c res = p->realStream->Read(p->realStream, p->buf, &size2); buf 83 third_party/lzma_sdk/7zStream.c *buf = p->buf + p->pos; buf 87 third_party/lzma_sdk/7zStream.c static SRes LookToRead_Look_Exact(void *pp, const void **buf, size_t *size) buf 97 third_party/lzma_sdk/7zStream.c res = p->realStream->Read(p->realStream, p->buf, size); buf 102 third_party/lzma_sdk/7zStream.c *buf = p->buf + p->pos; buf 113 third_party/lzma_sdk/7zStream.c static SRes LookToRead_Read(void *pp, void *buf, size_t *size) buf 118 third_party/lzma_sdk/7zStream.c return p->realStream->Read(p->realStream, buf, size); buf 121 third_party/lzma_sdk/7zStream.c memcpy(buf, p->buf + p->pos, rem); buf 149 third_party/lzma_sdk/7zStream.c static SRes SecToLook_Read(void *pp, void *buf, size_t *size) buf 152 third_party/lzma_sdk/7zStream.c return LookInStream_LookRead(p->realStream, buf, size); buf 160 third_party/lzma_sdk/7zStream.c static SRes SecToRead_Read(void *pp, void *buf, size_t *size) buf 163 third_party/lzma_sdk/7zStream.c return p->realStream->Read(p->realStream, buf, size); buf 17 third_party/lzma_sdk/LzmaDec.c #define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); } buf 47 third_party/lzma_sdk/LzmaDec.c #define NORMALIZE_CHECK if (range < kTopValue) { if (buf >= bufLimit) return DUMMY_ERROR; range <<= 8; code = (code << 8) | (*buf++); } buf 149 third_party/lzma_sdk/LzmaDec.c const Byte *buf = p->buf; buf 411 third_party/lzma_sdk/LzmaDec.c while (dicPos < limit && buf < bufLimit); buf 413 third_party/lzma_sdk/LzmaDec.c p->buf = buf; buf 470 third_party/lzma_sdk/LzmaDec.c while (p->dicPos < limit && p->buf < bufLimit && p->remainLen < kMatchSpecLenStart); buf 487 third_party/lzma_sdk/LzmaDec.c static ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const Byte *buf, SizeT inSize) buf 491 third_party/lzma_sdk/LzmaDec.c const Byte *bufLimit = buf + inSize; buf 796 third_party/lzma_sdk/LzmaDec.c p->buf = src; buf 799 third_party/lzma_sdk/LzmaDec.c processed = (SizeT)(p->buf - src); buf 825 third_party/lzma_sdk/LzmaDec.c p->buf = p->tempBuf; buf 826 third_party/lzma_sdk/LzmaDec.c if (LzmaDec_DecodeReal2(p, dicLimit, p->buf) != 0) buf 828 third_party/lzma_sdk/LzmaDec.c lookAhead -= (rem - (unsigned)(p->buf - p->tempBuf)); buf 55 third_party/lzma_sdk/LzmaDec.h const Byte *buf; buf 227 third_party/lzma_sdk/LzmaEnc.c Byte *buf; buf 462 third_party/lzma_sdk/LzmaEnc.c #define RangeEnc_GetProcessed(p) ((p)->processed + ((p)->buf - (p)->bufBase) + (p)->cacheSize) buf 491 third_party/lzma_sdk/LzmaEnc.c p->buf = p->bufBase; buf 502 third_party/lzma_sdk/LzmaEnc.c num = p->buf - p->bufBase; buf 506 third_party/lzma_sdk/LzmaEnc.c p->buf = p->bufBase; buf 516 third_party/lzma_sdk/LzmaEnc.c Byte *buf = p->buf; buf 517 third_party/lzma_sdk/LzmaEnc.c *buf++ = (Byte)(temp + (Byte)(p->low >> 32)); buf 518 third_party/lzma_sdk/LzmaEnc.c p->buf = buf; buf 519 third_party/lzma_sdk/LzmaEnc.c if (buf == p->bufLim) buf 139 third_party/lzma_sdk/Types.h SRes (*Read)(void *p, void *buf, size_t *size); buf 145 third_party/lzma_sdk/Types.h SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size); buf 146 third_party/lzma_sdk/Types.h SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType); buf 147 third_party/lzma_sdk/Types.h SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf); buf 151 third_party/lzma_sdk/Types.h size_t (*Write)(void *p, const void *buf, size_t size); buf 165 third_party/lzma_sdk/Types.h SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */ buf 171 third_party/lzma_sdk/Types.h SRes (*Look)(void *p, const void **buf, size_t *size); buf 178 third_party/lzma_sdk/Types.h SRes (*Read)(void *p, void *buf, size_t *size); buf 183 third_party/lzma_sdk/Types.h SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size); buf 187 third_party/lzma_sdk/Types.h SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType); buf 188 third_party/lzma_sdk/Types.h SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size); buf 198 third_party/lzma_sdk/Types.h Byte buf[LookToRead_BUF_SIZE]; buf 91 third_party/mach_override/libudis86/extern.h extern void ud_set_asm_buffer(struct ud *u, char *buf, size_t size); buf 85 third_party/mach_override/libudis86/input.c ud_set_input_buffer(register struct ud* u, const uint8_t* buf, size_t len) buf 88 third_party/mach_override/libudis86/input.c u->inp_buff = buf; buf 89 third_party/mach_override/libudis86/input.c u->inp_buff_end = buf + len; buf 268 third_party/mach_override/libudis86/udis86.c ud_set_asm_buffer(struct ud *u, char *buf, size_t size) buf 270 third_party/mach_override/libudis86/udis86.c if (buf == NULL) { buf 273 third_party/mach_override/libudis86/udis86.c u->asm_buf = buf; buf 240 third_party/npapi/bindings/npapi.h void* buf; buf 863 third_party/npapi/bindings/npapi.h const char* buf, NPBool file, buf 867 third_party/npapi/bindings/npapi.h const char* buf, NPBool file); buf 75 third_party/npapi/bindings/npfunctions.h typedef NPError (*NPN_PostURLNotifyProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData); buf 77 third_party/npapi/bindings/npfunctions.h typedef NPError (*NPN_PostURLProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file); buf 75 third_party/npapi/npspy/common/logfile.cpp DWORD CLogFile::write(const std::string& buf) buf 77 third_party/npapi/npspy/common/logfile.cpp return XP_WriteFile(hFile, buf.c_str(), buf.length()); buf 95 third_party/npapi/npspy/common/npn_gate.cpp NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData) buf 102 third_party/npapi/npspy/common/npn_gate.cpp logger->logCall(action_npn_post_url_notify, (DWORD)instance, (DWORD)url, (DWORD)window, (DWORD)len, (DWORD)buf, (DWORD)file, (DWORD)notifyData); buf 105 third_party/npapi/npspy/common/npn_gate.cpp rv = NPNFuncs.posturlnotify(instance, url, window, len, buf, file, notifyData); buf 115 third_party/npapi/npspy/common/npn_gate.cpp NPError NPN_PostURL(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file) buf 118 third_party/npapi/npspy/common/npn_gate.cpp logger->logCall(action_npn_post_url, (DWORD)instance, (DWORD)url, (DWORD)window, (DWORD)len, (DWORD)buf, (DWORD)file); buf 120 third_party/npapi/npspy/common/npn_gate.cpp NPError rv = NPNFuncs.posturl(instance, url, window, len, buf, file); buf 209 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, const char *name, jobject loader, const jbyte *buf, buf 663 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jbooleanArray array, jsize start, jsize l, jboolean *buf); buf 665 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jbyteArray array, jsize start, jsize len, jbyte *buf); buf 667 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jcharArray array, jsize start, jsize len, jchar *buf); buf 669 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jshortArray array, jsize start, jsize len, jshort *buf); buf 671 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jintArray array, jsize start, jsize len, jint *buf); buf 673 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jlongArray array, jsize start, jsize len, jlong *buf); buf 675 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jfloatArray array, jsize start, jsize len, jfloat *buf); buf 677 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jdoubleArray array, jsize start, jsize len, jdouble *buf); buf 680 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jbooleanArray array, jsize start, jsize l, jboolean *buf); buf 682 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jbyteArray array, jsize start, jsize len, jbyte *buf); buf 684 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jcharArray array, jsize start, jsize len, jchar *buf); buf 686 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jshortArray array, jsize start, jsize len, jshort *buf); buf 688 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jintArray array, jsize start, jsize len, jint *buf); buf 690 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jlongArray array, jsize start, jsize len, jlong *buf); buf 692 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jfloatArray array, jsize start, jsize len, jfloat *buf); buf 694 third_party/npapi/npspy/extern/java/jni.h (JNIEnv *env, jdoubleArray array, jsize start, jsize len, jdouble *buf); buf 732 third_party/npapi/npspy/extern/java/jni.h jclass DefineClass(const char *name, jobject loader, const jbyte *buf, buf 734 third_party/npapi/npspy/extern/java/jni.h return functions->DefineClass(this, name, loader, buf, len); buf 1645 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jboolean *buf) { buf 1646 third_party/npapi/npspy/extern/java/jni.h functions->GetBooleanArrayRegion(this,array,start,len,buf); buf 1649 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jbyte *buf) { buf 1650 third_party/npapi/npspy/extern/java/jni.h functions->GetByteArrayRegion(this,array,start,len,buf); buf 1653 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jchar *buf) { buf 1654 third_party/npapi/npspy/extern/java/jni.h functions->GetCharArrayRegion(this,array,start,len,buf); buf 1657 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jshort *buf) { buf 1658 third_party/npapi/npspy/extern/java/jni.h functions->GetShortArrayRegion(this,array,start,len,buf); buf 1661 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jint *buf) { buf 1662 third_party/npapi/npspy/extern/java/jni.h functions->GetIntArrayRegion(this,array,start,len,buf); buf 1665 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jlong *buf) { buf 1666 third_party/npapi/npspy/extern/java/jni.h functions->GetLongArrayRegion(this,array,start,len,buf); buf 1669 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jfloat *buf) { buf 1670 third_party/npapi/npspy/extern/java/jni.h functions->GetFloatArrayRegion(this,array,start,len,buf); buf 1673 third_party/npapi/npspy/extern/java/jni.h jsize start, jsize len, jdouble *buf) { buf 1674 third_party/npapi/npspy/extern/java/jni.h functions->GetDoubleArrayRegion(this,array,start,len,buf); buf 1678 third_party/npapi/npspy/extern/java/jni.h jboolean *buf) { buf 1679 third_party/npapi/npspy/extern/java/jni.h functions->SetBooleanArrayRegion(this,array,start,len,buf); buf 1682 third_party/npapi/npspy/extern/java/jni.h jbyte *buf) { buf 1683 third_party/npapi/npspy/extern/java/jni.h functions->SetByteArrayRegion(this,array,start,len,buf); buf 1686 third_party/npapi/npspy/extern/java/jni.h jchar *buf) { buf 1687 third_party/npapi/npspy/extern/java/jni.h functions->SetCharArrayRegion(this,array,start,len,buf); buf 1690 third_party/npapi/npspy/extern/java/jni.h jshort *buf) { buf 1691 third_party/npapi/npspy/extern/java/jni.h functions->SetShortArrayRegion(this,array,start,len,buf); buf 1694 third_party/npapi/npspy/extern/java/jni.h jint *buf) { buf 1695 third_party/npapi/npspy/extern/java/jni.h functions->SetIntArrayRegion(this,array,start,len,buf); buf 1698 third_party/npapi/npspy/extern/java/jni.h jlong *buf) { buf 1699 third_party/npapi/npspy/extern/java/jni.h functions->SetLongArrayRegion(this,array,start,len,buf); buf 1702 third_party/npapi/npspy/extern/java/jni.h jfloat *buf) { buf 1703 third_party/npapi/npspy/extern/java/jni.h functions->SetFloatArrayRegion(this,array,start,len,buf); buf 1706 third_party/npapi/npspy/extern/java/jni.h jdouble *buf) { buf 1707 third_party/npapi/npspy/extern/java/jni.h functions->SetDoubleArrayRegion(this,array,start,len,buf); buf 65 third_party/npapi/npspy/extern/java/jri.h #define JRI_DefineClass(env, classLoader, buf, bufLen) \ buf 66 third_party/npapi/npspy/extern/java/jri.h (((*(env))->DefineClass)(env, JRI_DefineClass_op, classLoader, buf, bufLen)) buf 52 third_party/npapi/npspy/extern/java/zip.h zip_get(zip_t *zip, const char *fn, void HUGEP *buf, int32_t len); buf 524 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_read(PRFileDesc *fd, void *buf, PRInt32 amount); buf 525 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_write(PRFileDesc *fd, const void *buf, PRInt32 amount); buf 537 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_stat(const char *name, struct stat *buf); buf 549 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_recv(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout); buf 550 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_send(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout); buf 551 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_accept_read(PRFileDesc *sd, PRInt32 *newSock, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout); buf 559 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRUint32 *addrlen, PRIntervalTime timeout); buf 560 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRUint32 addrlen, PRIntervalTime timeout); buf 351 third_party/npapi/npspy/extern/nspr/md/_macos.h extern PRInt32 _PR_MD_WRITE_SYNC(PRFileDesc *fd, void *buf, PRInt32 amount); buf 377 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_READ(fd,buf,amount) ReadWriteProc(fd,buf,amount,READ_ASYNC) buf 378 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_WRITE(fd,buf,amount) ReadWriteProc(fd,buf,amount,WRITE_ASYNC) buf 379 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_WRITE_SYNC(fd,buf,amount) WriteSyncProc(fd,buf,amount) buf 499 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SEND(fd,buf,amount,flags,timeout) macsock_send(fd->secret->md.osfd,buf,amount,flags) buf 500 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SENDTO(fd,buf,amount,flags,addr,addrlen,timeout) macsock_sendto(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen) buf 501 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_RECV(fd,buf,amount,flags,timeout) macsock_recv(fd->secret->md.osfd,buf,amount,flags) buf 502 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_RECVFROM(fd,buf,amount,flags,addr,addrlen,timeout) macsock_recvfrom(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen) buf 351 third_party/npapi/npspy/extern/nspr/md/_unixos.h PRNetAddr **raddr, void *buf, PRInt32 amount); buf 364 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_read(PRFileDesc *fd, void *buf, PRInt32 amount); buf 365 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_READ(fd,buf,amount) _MD_read(fd,buf,amount) buf 366 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_write(PRFileDesc *fd, const void *buf, PRInt32 amount); buf 367 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_WRITE(fd,buf,amount) _MD_write(fd,buf,amount) buf 378 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_ACCEPT_READ(sock, newSock, raddr, buf, amount) _MD_accept_read(sock, newSock, raddr, buf, amount) buf 400 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_recv(PRFileDesc *fd, void *buf, PRInt32 amount, buf 403 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_send(PRFileDesc *fd, const void *buf, PRInt32 amount, buf 406 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount, buf 410 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, buf 606 third_party/npapi/npspy/extern/nspr/md/_unixos.h typedef PRIntn (*_MD_Fstat64)(PRIntn osfd, _MDStat64 *buf); buf 609 third_party/npapi/npspy/extern/nspr/md/_unixos.h typedef PRIntn (*_MD_Stat64)(const char *path, _MDStat64 *buf, ...); buf 611 third_party/npapi/npspy/extern/nspr/md/_unixos.h typedef PRIntn (*_MD_Stat64)(const char *path, _MDStat64 *buf); buf 336 third_party/npapi/npspy/extern/nspr/md/_winnt.h #define _MD_ACCEPT_READ(s, ns, ra, buf, l, t) \ buf 337 third_party/npapi/npspy/extern/nspr/md/_winnt.h _MD_FAST_ACCEPT_READ(s, ns, ra, buf, l, t, PR_FALSE, NULL, NULL) buf 338 third_party/npapi/npspy/extern/nspr/md/_winnt.h #define _MD_FAST_ACCEPT_READ(s, ns, ra, buf, l, t, fast, cb, cba) \ buf 339 third_party/npapi/npspy/extern/nspr/md/_winnt.h _PR_MD_FAST_ACCEPT_READ(s, ns, ra, buf, l, t, fast, cb, cba) buf 165 third_party/npapi/npspy/extern/nspr/obsolete/probslet.h NSPR_API(PRInt32) PR_Stat(const char *path, struct stat *buf); buf 71 third_party/npapi/npspy/extern/nspr/plresolv.h const char *name, unsigned char *buf, buf 76 third_party/npapi/npspy/extern/nspr/plresolv.h const PRNetAddr *address, unsigned char *buf, buf 69 third_party/npapi/npspy/extern/nspr/prdtoa.h NSPR_API(void) PR_cnvtf(char *buf, PRIntn bufsz, PRIntn prcsn, PRFloat64 fval); buf 83 third_party/npapi/npspy/extern/nspr/prdtoa.h PRIntn *decpt, PRIntn *sign, char **rve, char *buf, PRSize bufsize); buf 329 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt32 (PR_CALLBACK *PRReadFN)(PRFileDesc *fd, void *buf, PRInt32 amount); buf 330 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt32 (PR_CALLBACK *PRWriteFN)(PRFileDesc *fd, const void *buf, PRInt32 amount); buf 349 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, buf 352 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, buf 355 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, buf 358 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, buf 364 third_party/npapi/npspy/extern/nspr/prio.h void *buf, PRInt32 amount, PRIntervalTime t); buf 729 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount); buf 753 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Write(PRFileDesc *fd,const void *buf,PRInt32 amount); buf 1472 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount, buf 1503 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount, buf 1539 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, buf 1572 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, buf 1719 third_party/npapi/npspy/extern/nspr/prio.h PRNetAddr **peerAddr, void *buf, PRInt32 amount, PRIntervalTime timeout); buf 171 third_party/npapi/npspy/extern/nspr/private/pprio.h PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout); buf 191 third_party/npapi/npspy/extern/nspr/private/pprio.h PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime t); buf 213 third_party/npapi/npspy/extern/nspr/private/pprio.h void *buf, buf 107 third_party/npapi/npspy/extern/nspr/prnetdb.h const char *hostname, char *buf, PRIntn bufsize, PRHostEnt *hostentry); buf 146 third_party/npapi/npspy/extern/nspr/prnetdb.h char *buf, buf 172 third_party/npapi/npspy/extern/nspr/prnetdb.h const PRNetAddr *hostaddr, char *buf, PRIntn bufsize, PRHostEnt *hostentry); buf 147 third_party/npapi/npspy/extern/nspr/prprf.h NSPR_API(PRInt32) PR_sscanf(const char *buf, const char *fmt, ...); buf 97 third_party/npapi/npspy/extern/nspr/prrng.h void *buf, buf 244 third_party/npapi/npspy/extern/nspr/prshma.h char *buf buf 88 third_party/npapi/npspy/extern/nspr/prsystem.h NSPR_API(PRStatus) PR_GetSystemInfo(PRSysInfo cmd, char *buf, PRUint32 buflen); buf 281 third_party/npapi/npspy/extern/nspr/prtime.h NSPR_API(PRUint32) PR_FormatTime(char *buf, int buflen, const char *fmt, buf 288 third_party/npapi/npspy/extern/nspr/prtime.h PR_FormatTimeUSEnglish( char* buf, PRUint32 bufSize, buf 77 third_party/npapi/npspy/extern/nspr/prwin16.h typedef PRInt32 (PR_CALLBACK *PRStdinRead)( void *buf, PRInt32 amount); buf 78 third_party/npapi/npspy/extern/nspr/prwin16.h typedef PRInt32 (PR_CALLBACK *PRStdoutWrite)( void *buf, PRInt32 amount); buf 79 third_party/npapi/npspy/extern/nspr/prwin16.h typedef PRInt32 (PR_CALLBACK *PRStderrWrite)( void *buf, PRInt32 amount); buf 89 third_party/npapi/npspy/extern/nspr/prwin16.h _PL_W16StdioWrite( void *buf, PRInt32 amount ); buf 92 third_party/npapi/npspy/extern/nspr/prwin16.h _PL_W16StdioRead( void *buf, PRInt32 amount ); buf 282 third_party/npapi/npspy/extern/plugin/npapi.h void* buf; buf 720 third_party/npapi/npspy/extern/plugin/npapi.h const char* buf, NPBool file, buf 724 third_party/npapi/npspy/extern/plugin/npapi.h const char* buf, NPBool file); buf 206 third_party/npapi/npspy/extern/plugin/npupp.h typedef NPError (* NP_LOADDS NPN_PostURLNotifyUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData); buf 220 third_party/npapi/npspy/extern/plugin/npupp.h typedef NPError (* NP_LOADDS NPN_PostURLUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file); buf 55 third_party/npapi/npspy/include/logfile.h DWORD write(const std::string& buf); buf 351 third_party/protobuf/java/src/main/java/com/google/protobuf/ByteString.java final byte[] buf = new byte[chunkSize]; buf 354 third_party/protobuf/java/src/main/java/com/google/protobuf/ByteString.java final int count = in.read(buf, bytesRead, chunkSize - bytesRead); buf 364 third_party/protobuf/java/src/main/java/com/google/protobuf/ByteString.java return ByteString.copyFrom(buf, 0, bytesRead); buf 61 third_party/protobuf/java/src/main/java/com/google/protobuf/CodedInputStream.java public static CodedInputStream newInstance(final byte[] buf) { buf 62 third_party/protobuf/java/src/main/java/com/google/protobuf/CodedInputStream.java return newInstance(buf, 0, buf.length); buf 68 third_party/protobuf/java/src/main/java/com/google/protobuf/CodedInputStream.java public static CodedInputStream newInstance(final byte[] buf, final int off, buf 70 third_party/protobuf/java/src/main/java/com/google/protobuf/CodedInputStream.java CodedInputStream result = new CodedInputStream(buf, off, len); buf 333 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java @Override public int read(byte[] buf) { buf 334 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java return read(buf, 0, buf.length); buf 337 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java @Override public int read(byte[] buf, int offset, int size) { buf 342 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java System.arraycopy(data, pos, buf, offset, count); buf 364 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java public int read(byte[] buf, int off, int len) { buf 368 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java capturedArray = buf; buf 370 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java buf[x] = (byte) x; buf 388 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java public void write(byte[] buf, int off, int len) { buf 390 third_party/protobuf/java/src/test/java/com/google/protobuf/ByteStringTest.java capturedArray = buf; buf 119 third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc static uint32 ComputeCRC32(const string &buf) { buf 121 third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc for (int i = 0; i < buf.size(); ++i) { buf 122 third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc unsigned char c = buf[i]; buf 4300 third_party/protobuf/src/google/protobuf/descriptor.cc string buf; buf 4301 third_party/protobuf/src/google/protobuf/descriptor.cc options->AppendToString(&buf); buf 4302 third_party/protobuf/src/google/protobuf/descriptor.cc GOOGLE_CHECK(options->ParseFromString(buf)) buf 1178 third_party/protobuf/src/google/protobuf/stubs/common.h LIBPROTOBUF_EXPORT bool IsStructurallyValidUTF8(const char* buf, int len); buf 93 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc char* buf = new char[length]; buf 97 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc result = vsnprintf(buf, length, format, backup_ap); buf 102 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc dst->append(buf, result); buf 104 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc delete[] buf; buf 110 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc char* buf = new char[n+1]; buf 111 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc memset(buf, ' ', n-3); buf 112 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc memcpy(buf + n - 3, kInvalidCodePoint, 4); buf 113 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc value = StringPrintf("%.*s", n, buf); buf 115 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc EXPECT_TRUE(value.empty() || value == buf); buf 116 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc delete[] buf; buf 142 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc char* buf = new char[n+1]; buf 143 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc memset(buf, ' ', n); buf 144 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc buf[n] = 0; buf 145 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc string value = StringPrintf("%s", buf); buf 146 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc EXPECT_EQ(buf, value); buf 147 third_party/protobuf/src/google/protobuf/stubs/stringprintf_unittest.cc delete[] buf; buf 525 third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc bool IsStructurallyValidUTF8(const char* buf, int len) { buf 530 third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc buf, len, &bytes_consumed); buf 74 third_party/qcms/src/iccread.c const unsigned char *buf; buf 96 third_party/qcms/src/iccread.c memcpy(&k, mem->buf + offset, sizeof(k)); buf 108 third_party/qcms/src/iccread.c memcpy(&k, mem->buf + offset, sizeof(k)); buf 119 third_party/qcms/src/iccread.c return *(uint8_t*)(mem->buf + offset); buf 1005 third_party/qcms/src/iccread.c source.buf = mem; buf 702 third_party/re2/re2/compile.cc uint8 buf[UTFmax]; buf 703 third_party/re2/re2/compile.cc int n = runetochar(reinterpret_cast<char*>(buf), &r); buf 704 third_party/re2/re2/compile.cc Frag f = ByteRange((uint8)buf[0], buf[0], false); buf 706 third_party/re2/re2/compile.cc f = Cat(f, ByteRange((uint8)buf[i], buf[i], false)); buf 1940 third_party/re2/re2/parse.cc char buf[UTFmax]; buf 1945 third_party/re2/re2/parse.cc int n = runetochar(buf, &r); buf 1946 third_party/re2/re2/parse.cc utf->append(buf, n); buf 395 third_party/re2/re2/prefilter.cc char buf[UTFmax]; buf 396 third_party/re2/re2/prefilter.cc int n = runetochar(buf, &r); buf 397 third_party/re2/re2/prefilter.cc return string(buf, n); buf 145 third_party/re2/re2/prefilter_tree.cc char buf[100]; buf 146 third_party/re2/re2/prefilter_tree.cc snprintf(buf, sizeof buf, "%d", n); buf 147 third_party/re2/re2/prefilter_tree.cc return string(buf); buf 993 third_party/re2/re2/re2.cc static const char* TerminateNumber(char* buf, const char* str, int* np) { buf 1031 third_party/re2/re2/re2.cc memmove(buf, str, n); buf 1033 third_party/re2/re2/re2.cc buf[0] = '-'; buf 1035 third_party/re2/re2/re2.cc buf[n] = '\0'; buf 1037 third_party/re2/re2/re2.cc return buf; buf 1045 third_party/re2/re2/re2.cc char buf[kMaxNumberLength+1]; buf 1046 third_party/re2/re2/re2.cc str = TerminateNumber(buf, str, &n); buf 1062 third_party/re2/re2/re2.cc char buf[kMaxNumberLength+1]; buf 1063 third_party/re2/re2/re2.cc str = TerminateNumber(buf, str, &n); buf 1133 third_party/re2/re2/re2.cc char buf[kMaxNumberLength+1]; buf 1134 third_party/re2/re2/re2.cc str = TerminateNumber(buf, str, &n); buf 1150 third_party/re2/re2/re2.cc char buf[kMaxNumberLength+1]; buf 1151 third_party/re2/re2/re2.cc str = TerminateNumber(buf, str, &n); buf 1170 third_party/re2/re2/re2.cc char buf[kMaxLength]; buf 1172 third_party/re2/re2/re2.cc memcpy(buf, str, n); buf 1173 third_party/re2/re2/re2.cc buf[n] = '\0'; buf 1178 third_party/re2/re2/re2.cc r = strtof(buf, &end); buf 1180 third_party/re2/re2/re2.cc r = strtod(buf, &end); buf 1182 third_party/re2/re2/re2.cc if (end != buf + n) return false; // Leftover junk buf 667 third_party/re2/re2/regexp.cc char buf[UTFmax]; buf 668 third_party/re2/re2/regexp.cc prefix->append(buf, runetochar(buf, &re->rune_)); buf 142 third_party/re2/re2/stringpiece.h int copy(char* buf, size_type n, size_type pos = 0) const; buf 99 third_party/re2/re2/testing/dump.cc char buf[UTFmax+1]; buf 100 third_party/re2/re2/testing/dump.cc buf[runetochar(buf, &r)] = 0; buf 101 third_party/re2/re2/testing/dump.cc s->append(buf); buf 107 third_party/re2/re2/testing/dump.cc char buf[UTFmax+1]; buf 108 third_party/re2/re2/testing/dump.cc buf[runetochar(buf, &r)] = 0; buf 109 third_party/re2/re2/testing/dump.cc s->append(buf); buf 30 third_party/re2/re2/testing/exhaustive3_test.cc char buf[UTFmax+1]; buf 31 third_party/re2/re2/testing/exhaustive3_test.cc buf[runetochar(buf, &r)] = 0; buf 32 third_party/re2/re2/testing/exhaustive3_test.cc return string(buf); buf 38 third_party/re2/re2/testing/exhaustive_tester.cc static char buf[512]; buf 39 third_party/re2/re2/testing/exhaustive_tester.cc char* p = buf; buf 42 third_party/re2/re2/testing/exhaustive_tester.cc if(p+5 >= buf+sizeof buf) buf 56 third_party/re2/re2/testing/exhaustive_tester.cc return buf; buf 755 third_party/re2/re2/testing/re2_test.cc char buf[32]; buf 760 third_party/re2/re2/testing/re2_test.cc snprintf(buf, sizeof(buf), "%lld", (long long int)max); buf 761 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); buf 763 third_party/re2/re2/testing/re2_test.cc snprintf(buf, sizeof(buf), "%lld", (long long int)min); buf 764 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, min); buf 766 third_party/re2/re2/testing/re2_test.cc snprintf(buf, sizeof(buf), "%lld", (long long int)max); buf 767 third_party/re2/re2/testing/re2_test.cc assert(buf[strlen(buf)-1] != '9'); buf 768 third_party/re2/re2/testing/re2_test.cc buf[strlen(buf)-1]++; buf 769 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); buf 771 third_party/re2/re2/testing/re2_test.cc snprintf(buf, sizeof(buf), "%lld", (long long int)min); buf 772 third_party/re2/re2/testing/re2_test.cc assert(buf[strlen(buf)-1] != '9'); buf 773 third_party/re2/re2/testing/re2_test.cc buf[strlen(buf)-1]++; buf 774 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); buf 780 third_party/re2/re2/testing/re2_test.cc char buf[32]; buf 785 third_party/re2/re2/testing/re2_test.cc snprintf(buf, sizeof(buf), "%llu", (long long unsigned)max); buf 786 third_party/re2/re2/testing/re2_test.cc CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); buf 788 third_party/re2/re2/testing/re2_test.cc assert(buf[strlen(buf)-1] != '9'); buf 789 third_party/re2/re2/testing/re2_test.cc buf[strlen(buf)-1]++; buf 790 third_party/re2/re2/testing/re2_test.cc CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); buf 741 third_party/re2/util/pcre.cc static const char* TerminateNumber(char* buf, const char* str, int n) { buf 754 third_party/re2/util/pcre.cc memcpy(buf, str, n); buf 755 third_party/re2/util/pcre.cc buf[n] = '\0'; buf 756 third_party/re2/util/pcre.cc return buf; buf 768 third_party/re2/util/pcre.cc char buf[kMaxNumberLength+1]; buf 769 third_party/re2/util/pcre.cc str = TerminateNumber(buf, str, n); buf 785 third_party/re2/util/pcre.cc char buf[kMaxNumberLength+1]; buf 786 third_party/re2/util/pcre.cc str = TerminateNumber(buf, str, n); buf 856 third_party/re2/util/pcre.cc char buf[kMaxNumberLength+1]; buf 857 third_party/re2/util/pcre.cc str = TerminateNumber(buf, str, n); buf 873 third_party/re2/util/pcre.cc char buf[kMaxNumberLength+1]; buf 874 third_party/re2/util/pcre.cc str = TerminateNumber(buf, str, n); buf 893 third_party/re2/util/pcre.cc char buf[kMaxLength]; buf 895 third_party/re2/util/pcre.cc memcpy(buf, str, n); buf 896 third_party/re2/util/pcre.cc buf[n] = '\0'; buf 899 third_party/re2/util/pcre.cc double r = strtod(buf, &end); buf 900 third_party/re2/util/pcre.cc if (end != buf + n) { buf 906 third_party/re2/util/pcre.cc const char* i = buf; buf 36 third_party/re2/util/stringpiece.cc int StringPiece::copy(char* buf, size_type n, size_type pos) const { buf 38 third_party/re2/util/stringpiece.cc memcpy(buf, ptr_ + pos, ret); buf 41 third_party/re2/util/stringprintf.cc char* buf = new char[length]; buf 45 third_party/re2/util/stringprintf.cc result = vsnprintf(buf, length, format, backup_ap); buf 50 third_party/re2/util/stringprintf.cc dst->append(buf, result); buf 51 third_party/re2/util/stringprintf.cc delete[] buf; buf 54 third_party/re2/util/stringprintf.cc delete[] buf; buf 534 third_party/simplejson/_speedups.c char *buf = PyString_AS_STRING(pystr); buf 549 third_party/simplejson/_speedups.c c = (unsigned char)buf[next]; buf 569 third_party/simplejson/_speedups.c strchunk = PyString_FromStringAndSize(&buf[end], next - end); buf 593 third_party/simplejson/_speedups.c c = buf[next]; buf 623 third_party/simplejson/_speedups.c Py_UNICODE digit = buf[next]; buf 648 third_party/simplejson/_speedups.c if (buf[next++] != '\\' || buf[next++] != 'u') { buf 656 third_party/simplejson/_speedups.c Py_UNICODE digit = buf[next]; buf 743 third_party/simplejson/_speedups.c const Py_UNICODE *buf = PyUnicode_AS_UNICODE(pystr); buf 758 third_party/simplejson/_speedups.c c = buf[next]; buf 774 third_party/simplejson/_speedups.c chunk = PyUnicode_FromUnicode(&buf[end], next - end); buf 788 third_party/simplejson/_speedups.c c = buf[next]; buf 818 third_party/simplejson/_speedups.c Py_UNICODE digit = buf[next]; buf 843 third_party/simplejson/_speedups.c if (buf[next++] != '\\' || buf[next++] != 'u') { buf 851 third_party/simplejson/_speedups.c Py_UNICODE digit = buf[next]; buf 18735 third_party/sqlite/amalgamation/sqlite3.c char buf[etBUFSIZE]; /* Conversion buffer */ buf 18912 third_party/sqlite/amalgamation/sqlite3.c bufpt = &buf[etBUFSIZE-1]; buf 18919 third_party/sqlite/amalgamation/sqlite3.c buf[etBUFSIZE-3] = zOrd[x*2]; buf 18920 third_party/sqlite/amalgamation/sqlite3.c buf[etBUFSIZE-2] = zOrd[x*2+1]; buf 18933 third_party/sqlite/amalgamation/sqlite3.c length = (int)(&buf[etBUFSIZE-1]-bufpt); buf 18944 third_party/sqlite/amalgamation/sqlite3.c length = (int)(&buf[etBUFSIZE-1]-bufpt); buf 18997 third_party/sqlite/amalgamation/sqlite3.c bufpt = buf; buf 19054 third_party/sqlite/amalgamation/sqlite3.c assert( bufpt>buf ); buf 19083 third_party/sqlite/amalgamation/sqlite3.c length = (int)(bufpt-buf); buf 19084 third_party/sqlite/amalgamation/sqlite3.c bufpt = buf; buf 19105 third_party/sqlite/amalgamation/sqlite3.c buf[0] = '%'; buf 19106 third_party/sqlite/amalgamation/sqlite3.c bufpt = buf; buf 19111 third_party/sqlite/amalgamation/sqlite3.c buf[0] = (char)c; buf 19113 third_party/sqlite/amalgamation/sqlite3.c for(idx=1; idx<precision; idx++) buf[idx] = (char)c; buf 19118 third_party/sqlite/amalgamation/sqlite3.c bufpt = buf; buf 19157 third_party/sqlite/amalgamation/sqlite3.c bufpt = buf; buf 20825 third_party/sqlite/amalgamation/sqlite3.c u8 buf[10]; buf 20837 third_party/sqlite/amalgamation/sqlite3.c buf[n++] = (u8)((v & 0x7f) | 0x80); buf 20840 third_party/sqlite/amalgamation/sqlite3.c buf[0] &= 0x7f; buf 20843 third_party/sqlite/amalgamation/sqlite3.c p[i] = buf[j]; buf 27524 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; buf 27526 third_party/sqlite/amalgamation/sqlite3.c rc = osFstat(((unixFile*)id)->h, &buf); buf 27532 third_party/sqlite/amalgamation/sqlite3.c *pSize = buf.st_size; buf 27565 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; /* Used to hold return values of fstat() */ buf 27567 third_party/sqlite/amalgamation/sqlite3.c if( osFstat(pFile->h, &buf) ) return SQLITE_IOERR_FSTAT; buf 27570 third_party/sqlite/amalgamation/sqlite3.c if( nSize>(i64)buf.st_size ){ buf 27578 third_party/sqlite/amalgamation/sqlite3.c err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size); buf 27588 third_party/sqlite/amalgamation/sqlite3.c int nBlk = buf.st_blksize; /* File-system block size */ buf 27595 third_party/sqlite/amalgamation/sqlite3.c iWrite = ((buf.st_size + 2*nBlk - 1)/nBlk)*nBlk-1; buf 28815 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; buf 28822 third_party/sqlite/amalgamation/sqlite3.c if( osStat(zDir, &buf) ) continue; buf 28823 third_party/sqlite/amalgamation/sqlite3.c if( !S_ISDIR(buf.st_mode) ) continue; buf 29372 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; buf 29373 third_party/sqlite/amalgamation/sqlite3.c if( 0==osStat(zPath, &buf) && buf.st_size==0 ){ buf 29848 third_party/sqlite/amalgamation/sqlite3.c char buf[MAXPATHLEN]; buf 29854 third_party/sqlite/amalgamation/sqlite3.c buf[0] = lockPath[0]; buf 29858 third_party/sqlite/amalgamation/sqlite3.c if( i-start>2 || (i-start==1 && buf[start] != '.' && buf[start] != '/') buf 29859 third_party/sqlite/amalgamation/sqlite3.c || (i-start==2 && buf[start] != '.' && buf[start+1] != '.') ){ buf 29860 third_party/sqlite/amalgamation/sqlite3.c buf[i]='\0'; buf 29861 third_party/sqlite/amalgamation/sqlite3.c if( mkdir(buf, SQLITE_DEFAULT_PROXYDIR_PERMISSIONS) ){ buf 29866 third_party/sqlite/amalgamation/sqlite3.c buf, strerror(err), lockPath, getpid())); buf 29873 third_party/sqlite/amalgamation/sqlite3.c buf[i] = lockPath[i]; buf 30024 third_party/sqlite/amalgamation/sqlite3.c char buf[PROXY_MAXCONCHLEN]; buf 30041 third_party/sqlite/amalgamation/sqlite3.c readLen = osPread(conchFile->h, buf, PROXY_MAXCONCHLEN, 0); buf 30053 third_party/sqlite/amalgamation/sqlite3.c if( osPwrite(fd, buf, readLen, 0) != (ssize_t)readLen ){ buf 30098 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; buf 30099 third_party/sqlite/amalgamation/sqlite3.c if( osFstat(conchFile->h, &buf) ){ buf 30105 third_party/sqlite/amalgamation/sqlite3.c conchModTime = buf.st_mtimespec; buf 30111 third_party/sqlite/amalgamation/sqlite3.c if( conchModTime.tv_sec != buf.st_mtimespec.tv_sec || buf 30112 third_party/sqlite/amalgamation/sqlite3.c conchModTime.tv_nsec != buf.st_mtimespec.tv_nsec ){ buf 30287 third_party/sqlite/amalgamation/sqlite3.c struct stat buf; buf 30288 third_party/sqlite/amalgamation/sqlite3.c int err = osFstat(pFile->h, &buf); buf 30290 third_party/sqlite/amalgamation/sqlite3.c mode_t cmode = buf.st_mode&(S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP | buf 59772 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE u32 sqlite3VdbeSerialPut(u8 *buf, int nBuf, Mem *pMem, int file_format){ buf 59790 third_party/sqlite/amalgamation/sqlite3.c buf[i] = (u8)(v&0xFF); buf 59802 third_party/sqlite/amalgamation/sqlite3.c memcpy(buf, pMem->z, len); buf 59809 third_party/sqlite/amalgamation/sqlite3.c memset(&buf[pMem->n], 0, len-pMem->n); buf 59823 third_party/sqlite/amalgamation/sqlite3.c const unsigned char *buf, /* Buffer to deserialize from */ buf 59835 third_party/sqlite/amalgamation/sqlite3.c pMem->u.i = (signed char)buf[0]; buf 59840 third_party/sqlite/amalgamation/sqlite3.c pMem->u.i = (((signed char)buf[0])<<8) | buf[1]; buf 59845 third_party/sqlite/amalgamation/sqlite3.c pMem->u.i = (((signed char)buf[0])<<16) | (buf[1]<<8) | buf[2]; buf 59850 third_party/sqlite/amalgamation/sqlite3.c pMem->u.i = (buf[0]<<24) | (buf[1]<<16) | (buf[2]<<8) | buf[3]; buf 59855 third_party/sqlite/amalgamation/sqlite3.c u64 x = (((signed char)buf[0])<<8) | buf[1]; buf 59856 third_party/sqlite/amalgamation/sqlite3.c u32 y = (buf[2]<<24) | (buf[3]<<16) | (buf[4]<<8) | buf[5]; buf 59879 third_party/sqlite/amalgamation/sqlite3.c x = (buf[0]<<24) | (buf[1]<<16) | (buf[2]<<8) | buf[3]; buf 59880 third_party/sqlite/amalgamation/sqlite3.c y = (buf[4]<<24) | (buf[5]<<16) | (buf[6]<<8) | buf[7]; buf 59901 third_party/sqlite/amalgamation/sqlite3.c pMem->z = (char *)buf; buf 6694 third_party/sqlite/src/ext/fts2/fts2.c char buf[512]; buf 6695 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "Error in optimize: %s", buf 6697 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_result_error(pContext, buf, -1); buf 6708 third_party/sqlite/src/ext/fts2/fts2.c char buf[512]; buf 6710 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "%s: %s", prefix, msg); buf 6711 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_result_error(pContext, buf, -1); buf 6907 third_party/sqlite/src/ext/fts2/fts2.c char buf[256]; buf 6913 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "[%lld] ", dlrDocid(&dlReader)); buf 6914 third_party/sqlite/src/ext/fts2/fts2.c dataBufferAppend(&dump, buf, strlen(buf)); buf 6918 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "[%lld %d[", buf 6920 third_party/sqlite/src/ext/fts2/fts2.c dataBufferAppend(&dump, buf, strlen(buf)); buf 6926 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "] %d[", iColumn); buf 6930 third_party/sqlite/src/ext/fts2/fts2.c dataBufferAppend(&dump, buf, strlen(buf)); buf 6933 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "%d,%d,%d ", buf 6937 third_party/sqlite/src/ext/fts2/fts2.c sqlite3_snprintf(sizeof(buf), buf, "%d ", plrPosition(&plReader)); buf 6941 third_party/sqlite/src/ext/fts2/fts2.c dataBufferAppend(&dump, buf, strlen(buf)); buf 3383 third_party/sqlite/src/src/os_unix.c struct stat buf; buf 3385 third_party/sqlite/src/src/os_unix.c rc = osFstat(((unixFile*)id)->h, &buf); buf 3391 third_party/sqlite/src/src/os_unix.c *pSize = buf.st_size; buf 3424 third_party/sqlite/src/src/os_unix.c struct stat buf; /* Used to hold return values of fstat() */ buf 3426 third_party/sqlite/src/src/os_unix.c if( osFstat(pFile->h, &buf) ) return SQLITE_IOERR_FSTAT; buf 3429 third_party/sqlite/src/src/os_unix.c if( nSize>(i64)buf.st_size ){ buf 3437 third_party/sqlite/src/src/os_unix.c err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size); buf 3447 third_party/sqlite/src/src/os_unix.c int nBlk = buf.st_blksize; /* File-system block size */ buf 3454 third_party/sqlite/src/src/os_unix.c iWrite = ((buf.st_size + 2*nBlk - 1)/nBlk)*nBlk-1; buf 4674 third_party/sqlite/src/src/os_unix.c struct stat buf; buf 4681 third_party/sqlite/src/src/os_unix.c if( osStat(zDir, &buf) ) continue; buf 4682 third_party/sqlite/src/src/os_unix.c if( !S_ISDIR(buf.st_mode) ) continue; buf 5231 third_party/sqlite/src/src/os_unix.c struct stat buf; buf 5232 third_party/sqlite/src/src/os_unix.c if( 0==osStat(zPath, &buf) && buf.st_size==0 ){ buf 5707 third_party/sqlite/src/src/os_unix.c char buf[MAXPATHLEN]; buf 5713 third_party/sqlite/src/src/os_unix.c buf[0] = lockPath[0]; buf 5717 third_party/sqlite/src/src/os_unix.c if( i-start>2 || (i-start==1 && buf[start] != '.' && buf[start] != '/') buf 5718 third_party/sqlite/src/src/os_unix.c || (i-start==2 && buf[start] != '.' && buf[start+1] != '.') ){ buf 5719 third_party/sqlite/src/src/os_unix.c buf[i]='\0'; buf 5720 third_party/sqlite/src/src/os_unix.c if( mkdir(buf, SQLITE_DEFAULT_PROXYDIR_PERMISSIONS) ){ buf 5725 third_party/sqlite/src/src/os_unix.c buf, strerror(err), lockPath, getpid())); buf 5732 third_party/sqlite/src/src/os_unix.c buf[i] = lockPath[i]; buf 5883 third_party/sqlite/src/src/os_unix.c char buf[PROXY_MAXCONCHLEN]; buf 5900 third_party/sqlite/src/src/os_unix.c readLen = osPread(conchFile->h, buf, PROXY_MAXCONCHLEN, 0); buf 5912 third_party/sqlite/src/src/os_unix.c if( osPwrite(fd, buf, readLen, 0) != (ssize_t)readLen ){ buf 5957 third_party/sqlite/src/src/os_unix.c struct stat buf; buf 5958 third_party/sqlite/src/src/os_unix.c if( osFstat(conchFile->h, &buf) ){ buf 5964 third_party/sqlite/src/src/os_unix.c conchModTime = buf.st_mtimespec; buf 5970 third_party/sqlite/src/src/os_unix.c if( conchModTime.tv_sec != buf.st_mtimespec.tv_sec || buf 5971 third_party/sqlite/src/src/os_unix.c conchModTime.tv_nsec != buf.st_mtimespec.tv_nsec ){ buf 6146 third_party/sqlite/src/src/os_unix.c struct stat buf; buf 6147 third_party/sqlite/src/src/os_unix.c int err = osFstat(pFile->h, &buf); buf 6149 third_party/sqlite/src/src/os_unix.c mode_t cmode = buf.st_mode&(S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP | buf 252 third_party/sqlite/src/src/printf.c char buf[etBUFSIZE]; /* Conversion buffer */ buf 429 third_party/sqlite/src/src/printf.c bufpt = &buf[etBUFSIZE-1]; buf 436 third_party/sqlite/src/src/printf.c buf[etBUFSIZE-3] = zOrd[x*2]; buf 437 third_party/sqlite/src/src/printf.c buf[etBUFSIZE-2] = zOrd[x*2+1]; buf 450 third_party/sqlite/src/src/printf.c length = (int)(&buf[etBUFSIZE-1]-bufpt); buf 461 third_party/sqlite/src/src/printf.c length = (int)(&buf[etBUFSIZE-1]-bufpt); buf 514 third_party/sqlite/src/src/printf.c bufpt = buf; buf 571 third_party/sqlite/src/src/printf.c assert( bufpt>buf ); buf 600 third_party/sqlite/src/src/printf.c length = (int)(bufpt-buf); buf 601 third_party/sqlite/src/src/printf.c bufpt = buf; buf 622 third_party/sqlite/src/src/printf.c buf[0] = '%'; buf 623 third_party/sqlite/src/src/printf.c bufpt = buf; buf 628 third_party/sqlite/src/src/printf.c buf[0] = (char)c; buf 630 third_party/sqlite/src/src/printf.c for(idx=1; idx<precision; idx++) buf[idx] = (char)c; buf 635 third_party/sqlite/src/src/printf.c bufpt = buf; buf 674 third_party/sqlite/src/src/printf.c bufpt = buf; buf 214 third_party/sqlite/src/src/tclsqlite.c char *buf, buf 231 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_blob_read(p->pBlob, (void *)buf, nRead, p->iSeek); buf 246 third_party/sqlite/src/src/tclsqlite.c CONST char *buf, buf 264 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_blob_write(p->pBlob, (void *)buf, nWrite, p->iSeek); buf 3097 third_party/sqlite/src/src/tclsqlite.c uint32 buf[4]; buf 3106 third_party/sqlite/src/src/tclsqlite.c static void byteReverse (unsigned char *buf, unsigned longs){ buf 3109 third_party/sqlite/src/src/tclsqlite.c t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 | buf 3110 third_party/sqlite/src/src/tclsqlite.c ((unsigned)buf[1]<<8 | buf[0]); buf 3111 third_party/sqlite/src/src/tclsqlite.c *(uint32 *)buf = t; buf 3112 third_party/sqlite/src/src/tclsqlite.c buf += 4; buf 3132 third_party/sqlite/src/src/tclsqlite.c static void MD5Transform(uint32 buf[4], const uint32 in[16]){ buf 3135 third_party/sqlite/src/src/tclsqlite.c a = buf[0]; buf 3136 third_party/sqlite/src/src/tclsqlite.c b = buf[1]; buf 3137 third_party/sqlite/src/src/tclsqlite.c c = buf[2]; buf 3138 third_party/sqlite/src/src/tclsqlite.c d = buf[3]; buf 3208 third_party/sqlite/src/src/tclsqlite.c buf[0] += a; buf 3209 third_party/sqlite/src/src/tclsqlite.c buf[1] += b; buf 3210 third_party/sqlite/src/src/tclsqlite.c buf[2] += c; buf 3211 third_party/sqlite/src/src/tclsqlite.c buf[3] += d; buf 3220 third_party/sqlite/src/src/tclsqlite.c ctx->buf[0] = 0x67452301; buf 3221 third_party/sqlite/src/src/tclsqlite.c ctx->buf[1] = 0xefcdab89; buf 3222 third_party/sqlite/src/src/tclsqlite.c ctx->buf[2] = 0x98badcfe; buf 3223 third_party/sqlite/src/src/tclsqlite.c ctx->buf[3] = 0x10325476; buf 3233 third_party/sqlite/src/src/tclsqlite.c void MD5Update(MD5Context *ctx, const unsigned char *buf, unsigned int len){ buf 3252 third_party/sqlite/src/src/tclsqlite.c memcpy(p, buf, len); buf 3255 third_party/sqlite/src/src/tclsqlite.c memcpy(p, buf, t); buf 3257 third_party/sqlite/src/src/tclsqlite.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 3258 third_party/sqlite/src/src/tclsqlite.c buf += t; buf 3265 third_party/sqlite/src/src/tclsqlite.c memcpy(ctx->in, buf, 64); buf 3267 third_party/sqlite/src/src/tclsqlite.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 3268 third_party/sqlite/src/src/tclsqlite.c buf += 64; buf 3274 third_party/sqlite/src/src/tclsqlite.c memcpy(ctx->in, buf, len); buf 3301 third_party/sqlite/src/src/tclsqlite.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 3315 third_party/sqlite/src/src/tclsqlite.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 3316 third_party/sqlite/src/src/tclsqlite.c byteReverse((unsigned char *)ctx->buf, 4); buf 3317 third_party/sqlite/src/src/tclsqlite.c memcpy(digest, ctx->buf, 16); buf 896 third_party/sqlite/src/src/test_malloc.c static char *buf = 0; buf 903 third_party/sqlite/src/src/test_malloc.c free(buf); buf 905 third_party/sqlite/src/src/test_malloc.c buf = 0; buf 908 third_party/sqlite/src/src/test_malloc.c buf = malloc( sz*N + 1 ); buf 909 third_party/sqlite/src/src/test_malloc.c rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, buf, sz, N); buf 936 third_party/sqlite/src/src/test_malloc.c static char *buf = 0; buf 943 third_party/sqlite/src/src/test_malloc.c free(buf); buf 945 third_party/sqlite/src/src/test_malloc.c buf = 0; buf 948 third_party/sqlite/src/src/test_malloc.c buf = malloc( sz*N ); buf 949 third_party/sqlite/src/src/test_malloc.c rc = sqlite3_config(SQLITE_CONFIG_PAGECACHE, buf, sz, N); buf 974 third_party/sqlite/src/src/test_osinst.c char buf[4]; buf 975 third_party/sqlite/src/src/test_osinst.c rc = p->pFd->pMethods->xRead(p->pFd, buf, 4, pCsr->iOffset+nRead); buf 978 third_party/sqlite/src/src/test_osinst.c int nStr = get32bits((unsigned char *)buf); buf 605 third_party/sqlite/src/src/util.c u8 buf[10]; buf 617 third_party/sqlite/src/src/util.c buf[n++] = (u8)((v & 0x7f) | 0x80); buf 620 third_party/sqlite/src/src/util.c buf[0] &= 0x7f; buf 623 third_party/sqlite/src/src/util.c p[i] = buf[j]; buf 2647 third_party/sqlite/src/src/vdbeaux.c u32 sqlite3VdbeSerialPut(u8 *buf, int nBuf, Mem *pMem, int file_format){ buf 2665 third_party/sqlite/src/src/vdbeaux.c buf[i] = (u8)(v&0xFF); buf 2677 third_party/sqlite/src/src/vdbeaux.c memcpy(buf, pMem->z, len); buf 2684 third_party/sqlite/src/src/vdbeaux.c memset(&buf[pMem->n], 0, len-pMem->n); buf 2698 third_party/sqlite/src/src/vdbeaux.c const unsigned char *buf, /* Buffer to deserialize from */ buf 2710 third_party/sqlite/src/src/vdbeaux.c pMem->u.i = (signed char)buf[0]; buf 2715 third_party/sqlite/src/src/vdbeaux.c pMem->u.i = (((signed char)buf[0])<<8) | buf[1]; buf 2720 third_party/sqlite/src/src/vdbeaux.c pMem->u.i = (((signed char)buf[0])<<16) | (buf[1]<<8) | buf[2]; buf 2725 third_party/sqlite/src/src/vdbeaux.c pMem->u.i = (buf[0]<<24) | (buf[1]<<16) | (buf[2]<<8) | buf[3]; buf 2730 third_party/sqlite/src/src/vdbeaux.c u64 x = (((signed char)buf[0])<<8) | buf[1]; buf 2731 third_party/sqlite/src/src/vdbeaux.c u32 y = (buf[2]<<24) | (buf[3]<<16) | (buf[4]<<8) | buf[5]; buf 2754 third_party/sqlite/src/src/vdbeaux.c x = (buf[0]<<24) | (buf[1]<<16) | (buf[2]<<8) | buf[3]; buf 2755 third_party/sqlite/src/src/vdbeaux.c y = (buf[4]<<24) | (buf[5]<<16) | (buf[6]<<8) | buf[7]; buf 2776 third_party/sqlite/src/src/vdbeaux.c pMem->z = (char *)buf; buf 116 third_party/sqlite/src/test/threadtest3.c uint32 buf[4]; buf 125 third_party/sqlite/src/test/threadtest3.c static void byteReverse (unsigned char *buf, unsigned longs){ buf 128 third_party/sqlite/src/test/threadtest3.c t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 | buf 129 third_party/sqlite/src/test/threadtest3.c ((unsigned)buf[1]<<8 | buf[0]); buf 130 third_party/sqlite/src/test/threadtest3.c *(uint32 *)buf = t; buf 131 third_party/sqlite/src/test/threadtest3.c buf += 4; buf 151 third_party/sqlite/src/test/threadtest3.c static void MD5Transform(uint32 buf[4], const uint32 in[16]){ buf 154 third_party/sqlite/src/test/threadtest3.c a = buf[0]; buf 155 third_party/sqlite/src/test/threadtest3.c b = buf[1]; buf 156 third_party/sqlite/src/test/threadtest3.c c = buf[2]; buf 157 third_party/sqlite/src/test/threadtest3.c d = buf[3]; buf 227 third_party/sqlite/src/test/threadtest3.c buf[0] += a; buf 228 third_party/sqlite/src/test/threadtest3.c buf[1] += b; buf 229 third_party/sqlite/src/test/threadtest3.c buf[2] += c; buf 230 third_party/sqlite/src/test/threadtest3.c buf[3] += d; buf 239 third_party/sqlite/src/test/threadtest3.c ctx->buf[0] = 0x67452301; buf 240 third_party/sqlite/src/test/threadtest3.c ctx->buf[1] = 0xefcdab89; buf 241 third_party/sqlite/src/test/threadtest3.c ctx->buf[2] = 0x98badcfe; buf 242 third_party/sqlite/src/test/threadtest3.c ctx->buf[3] = 0x10325476; buf 252 third_party/sqlite/src/test/threadtest3.c void MD5Update(MD5Context *ctx, const unsigned char *buf, unsigned int len){ buf 271 third_party/sqlite/src/test/threadtest3.c memcpy(p, buf, len); buf 274 third_party/sqlite/src/test/threadtest3.c memcpy(p, buf, t); buf 276 third_party/sqlite/src/test/threadtest3.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 277 third_party/sqlite/src/test/threadtest3.c buf += t; buf 284 third_party/sqlite/src/test/threadtest3.c memcpy(ctx->in, buf, 64); buf 286 third_party/sqlite/src/test/threadtest3.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 287 third_party/sqlite/src/test/threadtest3.c buf += 64; buf 293 third_party/sqlite/src/test/threadtest3.c memcpy(ctx->in, buf, len); buf 320 third_party/sqlite/src/test/threadtest3.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 334 third_party/sqlite/src/test/threadtest3.c MD5Transform(ctx->buf, (uint32 *)ctx->in); buf 335 third_party/sqlite/src/test/threadtest3.c byteReverse((unsigned char *)ctx->buf, 4); buf 336 third_party/sqlite/src/test/threadtest3.c memcpy(digest, ctx->buf, 16); buf 2954 third_party/sqlite/src/tool/lemon.c char buf[20]; buf 2956 third_party/sqlite/src/tool/lemon.c sprintf(buf,"(%d)",cfp->rp->index); buf 2957 third_party/sqlite/src/tool/lemon.c fprintf(fp," %5s ",buf); buf 3103 third_party/sqlite/src/tool/lemon.c char buf[1000]; buf 3127 third_party/sqlite/src/tool/lemon.c sprintf(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename); buf 3129 third_party/sqlite/src/tool/lemon.c sprintf(buf,"%s.lt",lemp->filename); buf 3131 third_party/sqlite/src/tool/lemon.c if( access(buf,004)==0 ){ buf 3132 third_party/sqlite/src/tool/lemon.c tpltname = buf; buf 146 third_party/talloc/libreplace/getpass.c static char buf[256]; buf 147 third_party/talloc/libreplace/getpass.c static size_t bufsize = sizeof(buf); buf 185 third_party/talloc/libreplace/getpass.c buf[0] = 0; buf 188 third_party/talloc/libreplace/getpass.c if (fgets(buf, bufsize, in) == NULL) { buf 189 third_party/talloc/libreplace/getpass.c buf[0] = 0; buf 192 third_party/talloc/libreplace/getpass.c nread = strlen(buf); buf 194 third_party/talloc/libreplace/getpass.c if (buf[nread - 1] == '\n') buf 195 third_party/talloc/libreplace/getpass.c buf[nread - 1] = '\0'; buf 221 third_party/talloc/libreplace/getpass.c return buf; buf 35 third_party/talloc/libreplace/inet_ntoa.c static char buf[18]; buf 36 third_party/talloc/libreplace/inet_ntoa.c slprintf(buf, 17, "%d.%d.%d.%d", buf 38 third_party/talloc/libreplace/inet_ntoa.c return buf; buf 64 third_party/talloc/libreplace/repdir_getdents.c char buf[DIR_BUF_SIZE]; buf 105 third_party/talloc/libreplace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE); buf 111 third_party/talloc/libreplace/repdir_getdents.c de = (struct dirent *)&d->buf[d->ofs]; buf 136 third_party/talloc/libreplace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE); buf 66 third_party/talloc/libreplace/repdir_getdirentries.c char buf[DIR_BUF_SIZE]; buf 107 third_party/talloc/libreplace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos); buf 114 third_party/talloc/libreplace/repdir_getdirentries.c de = (struct dirent *)&d->buf[d->ofs]; buf 148 third_party/talloc/libreplace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos); buf 599 third_party/talloc/libreplace/replace.c int rep_utime(const char *filename, const struct utimbuf *buf) buf 653 third_party/talloc/libreplace/replace.c int rep_readlink(const char *path, char *buf, size_t bufsiz) buf 243 third_party/talloc/libreplace/replace.h ssize_t rep_readlink(const char *path, char *buf, size_t bufsize); buf 405 third_party/talloc/libreplace/replace.h char *rep_strptime(const char *buf, const char *format, struct tm *tm); buf 980 third_party/talloc/libreplace/strptime.c char *rep_strptime(const char *buf, const char *format, struct tm *tm) buf 989 third_party/talloc/libreplace/strptime.c return strptime_internal (buf, format, tm, &decided, -1); buf 61 third_party/talloc/libreplace/system/time.h int rep_utime(const char *filename, const struct utimbuf *buf); buf 20 third_party/talloc/libreplace/test/shared_mmap.c int *buf; buf 37 third_party/talloc/libreplace/test/shared_mmap.c buf = (int *)mmap(NULL, 10000*sizeof(int), buf 42 third_party/talloc/libreplace/test/shared_mmap.c while (count-- && buf[9124] != 55732) sleep(1); buf 46 third_party/talloc/libreplace/test/shared_mmap.c buf[1763] = 7268; buf 53 third_party/talloc/libreplace/test/shared_mmap.c buf = (int *)mmap(NULL, 10000*sizeof(int), buf 58 third_party/talloc/libreplace/test/shared_mmap.c if (buf == (int *)-1) exit(1); buf 60 third_party/talloc/libreplace/test/shared_mmap.c buf[9124] = 55732; buf 62 third_party/talloc/libreplace/test/shared_mmap.c while (count-- && buf[1763] != 7268) sleep(1); buf 91 third_party/talloc/libreplace/test/testsuite.c char buf[4]; buf 105 third_party/talloc/libreplace/test/testsuite.c if (strlcpy(buf, tests[i].src, sizeof(buf)) != tests[i].result) { buf 815 third_party/talloc/libreplace/test/testsuite.c char buf[20]; buf 833 third_party/talloc/libreplace/test/testsuite.c if (read(sock[0], buf, 12) == -1) { buf 840 third_party/talloc/libreplace/test/testsuite.c if (strcmp(buf, "automatisch") != 0) { buf 843 third_party/talloc/libreplace/test/testsuite.c "]\n", buf); buf 66 third_party/tcmalloc/chromium/src/base/linuxthreads.cc static char *local_itoa(char *buf, int i) { buf 68 third_party/tcmalloc/chromium/src/base/linuxthreads.cc *buf++ = '-'; buf 69 third_party/tcmalloc/chromium/src/base/linuxthreads.cc return local_itoa(buf, -i); buf 72 third_party/tcmalloc/chromium/src/base/linuxthreads.cc buf = local_itoa(buf, i/10); buf 73 third_party/tcmalloc/chromium/src/base/linuxthreads.cc *buf++ = (i%10) + '0'; buf 74 third_party/tcmalloc/chromium/src/base/linuxthreads.cc *buf = '\000'; buf 75 third_party/tcmalloc/chromium/src/base/linuxthreads.cc return buf; buf 227 third_party/tcmalloc/chromium/src/base/linuxthreads.cc char buf[amount]; buf 228 third_party/tcmalloc/chromium/src/base/linuxthreads.cc memset(buf, 0, amount); buf 229 third_party/tcmalloc/chromium/src/base/linuxthreads.cc sys_read(-1, buf, amount); buf 355 third_party/tcmalloc/chromium/src/base/linuxthreads.cc char buf[4096]; buf 356 third_party/tcmalloc/chromium/src/base/linuxthreads.cc ssize_t nbytes = sys_getdents(proc, (struct kernel_dirent *)buf, buf 357 third_party/tcmalloc/chromium/src/base/linuxthreads.cc sizeof(buf)); buf 373 third_party/tcmalloc/chromium/src/base/linuxthreads.cc for (entry = (struct kernel_dirent *)buf; buf 374 third_party/tcmalloc/chromium/src/base/linuxthreads.cc entry < (struct kernel_dirent *)&buf[nbytes]; buf 59 third_party/tcmalloc/chromium/src/base/logging.cc void RawWrite(RawFD handle, const char* buf, size_t len) { buf 62 third_party/tcmalloc/chromium/src/base/logging.cc BOOL ok = WriteFile(handle, buf, len, &wrote, NULL); buf 65 third_party/tcmalloc/chromium/src/base/logging.cc buf += wrote; buf 93 third_party/tcmalloc/chromium/src/base/logging.cc void RawWrite(RawFD fd, const char* buf, size_t len) { buf 96 third_party/tcmalloc/chromium/src/base/logging.cc NO_INTR(r = write(fd, buf, len)); buf 98 third_party/tcmalloc/chromium/src/base/logging.cc buf += r; buf 58 third_party/tcmalloc/chromium/src/base/logging.h #define WRITE_TO_STDERR(buf, len) WriteToStderr(buf, len); // in port.cc buf 61 third_party/tcmalloc/chromium/src/base/logging.h #define WRITE_TO_STDERR(buf, len) \ buf 62 third_party/tcmalloc/chromium/src/base/logging.h __android_log_write(ANDROID_LOG_ERROR, "gperftools", buf) buf 65 third_party/tcmalloc/chromium/src/base/logging.h #define WRITE_TO_STDERR(buf, len) syscall(SYS_write, STDERR_FILENO, buf, len) buf 67 third_party/tcmalloc/chromium/src/base/logging.h #define WRITE_TO_STDERR(buf, len) write(STDERR_FILENO, buf, len) buf 205 third_party/tcmalloc/chromium/src/base/logging.h char buf[1600]; buf 206 third_party/tcmalloc/chromium/src/base/logging.h perftools_vsnprintf(buf, sizeof(buf)-1, pat, ap); buf 207 third_party/tcmalloc/chromium/src/base/logging.h if (buf[0] != '\0' && buf[strlen(buf)-1] != '\n') { buf 208 third_party/tcmalloc/chromium/src/base/logging.h assert(strlen(buf)+1 < sizeof(buf)); buf 209 third_party/tcmalloc/chromium/src/base/logging.h strcat(buf, "\n"); buf 235 third_party/tcmalloc/chromium/src/base/logging.h __android_log_write(priority, "gperftools", buf); buf 237 third_party/tcmalloc/chromium/src/base/logging.h WRITE_TO_STDERR(buf, strlen(buf)); buf 289 third_party/tcmalloc/chromium/src/base/logging.h void RawWrite(RawFD fd, const char* buf, size_t len); buf 512 third_party/tcmalloc/chromium/src/base/sysinfo.cc char buf[32]; buf 515 third_party/tcmalloc/chromium/src/base/sysinfo.cc if (confstr(_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf)) == 0) buf 517 third_party/tcmalloc/chromium/src/base/sysinfo.cc return strncmp(buf, "NPTL", 4) == 0; buf 529 third_party/tcmalloc/chromium/src/base/sysinfo.cc char* buf, int buf_size) { buf 530 third_party/tcmalloc/chromium/src/base/sysinfo.cc CHECK_LT(snprintf(buf, buf_size, buf 1102 third_party/tcmalloc/chromium/src/base/sysinfo.cc int FillProcSelfMaps(char buf[], int size, bool* wrote_all) { buf 1112 third_party/tcmalloc/chromium/src/base/sysinfo.cc const int line_length = it.FormatLine(buf + bytes_written, buf 231 third_party/tcmalloc/chromium/src/base/sysinfo.h int FillProcSelfMaps(char buf[], int size, bool* wrote_all); buf 684 third_party/tcmalloc/chromium/src/debugallocation.cc union { void* alignment; char buf[sizeof(SymbolTable)]; } tablebuf; buf 685 third_party/tcmalloc/chromium/src/debugallocation.cc SymbolTable* symbolization_table = new (tablebuf.buf) SymbolTable; buf 860 third_party/tcmalloc/chromium/src/debugallocation.cc char buf[64]; buf 920 third_party/tcmalloc/chromium/src/debugallocation.cc if (i == sizeof(buf)) { buf 921 third_party/tcmalloc/chromium/src/debugallocation.cc write(fd, buf, i); buf 924 third_party/tcmalloc/chromium/src/debugallocation.cc buf[i++] = *s++; buf 928 third_party/tcmalloc/chromium/src/debugallocation.cc write(fd, buf, i); buf 983 third_party/tcmalloc/chromium/src/debugallocation.cc void __malloctrace_write(const char *buf, size_t size) { buf 985 third_party/tcmalloc/chromium/src/debugallocation.cc write(TraceFd(), buf, size); buf 112 third_party/tcmalloc/chromium/src/heap-checker.cc char buf[256]; // TracerPid comes relatively earlier in status output buf 117 third_party/tcmalloc/chromium/src/heap-checker.cc const int len = read(fd, buf, sizeof(buf)); buf 121 third_party/tcmalloc/chromium/src/heap-checker.cc buf[len - 1] = '\0'; buf 122 third_party/tcmalloc/chromium/src/heap-checker.cc const char *p = strstr(buf, kTracerPid); buf 303 third_party/tcmalloc/chromium/src/heap-profile-table.cc char* buf, int buflen, int bufsize, buf 313 third_party/tcmalloc/chromium/src/heap-profile-table.cc snprintf(buf + buflen, bufsize - buflen, buf 324 third_party/tcmalloc/chromium/src/heap-profile-table.cc printed = snprintf(buf + buflen, bufsize - buflen, " 0x%08" PRIxPTR, buf 329 third_party/tcmalloc/chromium/src/heap-profile-table.cc printed = snprintf(buf + buflen, bufsize - buflen, "\n"); buf 400 third_party/tcmalloc/chromium/src/heap-profile-table.cc int HeapProfileTable::FillOrderedProfile(char buf[], int size) const { buf 410 third_party/tcmalloc/chromium/src/heap-profile-table.cc int map_length = snprintf(buf, size, "%s", kProcSelfMapsHeader); buf 413 third_party/tcmalloc/chromium/src/heap-profile-table.cc map_length += FillProcSelfMaps(buf + map_length, size - map_length, &dummy); buf 415 third_party/tcmalloc/chromium/src/heap-profile-table.cc char* const map_start = buf + size - map_length; // move to end buf 416 third_party/tcmalloc/chromium/src/heap-profile-table.cc memmove(map_start, buf, map_length); buf 421 third_party/tcmalloc/chromium/src/heap-profile-table.cc int bucket_length = snprintf(buf, size, "%s", kProfileHeader); buf 423 third_party/tcmalloc/chromium/src/heap-profile-table.cc bucket_length = UnparseBucket(total_, buf, bucket_length, size, buf 428 third_party/tcmalloc/chromium/src/heap-profile-table.cc BufferArgs buffer(buf, bucket_length, size); buf 434 third_party/tcmalloc/chromium/src/heap-profile-table.cc bucket_length = UnparseBucket(*list[i], buf, bucket_length, size, "", buf 441 third_party/tcmalloc/chromium/src/heap-profile-table.cc RAW_DCHECK(buf + bucket_length <= map_start, ""); buf 442 third_party/tcmalloc/chromium/src/heap-profile-table.cc memmove(buf + bucket_length, map_start, map_length); // close the gap buf 450 third_party/tcmalloc/chromium/src/heap-profile-table.cc args->buflen = UnparseBucket(*bucket, args->buf, args->buflen, args->bufsize, buf 479 third_party/tcmalloc/chromium/src/heap-profile-table.cc char buf[1024]; buf 482 third_party/tcmalloc/chromium/src/heap-profile-table.cc len = snprintf(buf, sizeof(buf), "%6d: %8" PRId64 " @ %s\n", buf 485 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); buf 505 third_party/tcmalloc/chromium/src/heap-profile-table.cc char buf[1024]; buf 506 third_party/tcmalloc/chromium/src/heap-profile-table.cc int len = UnparseBucket(b, buf, 0, sizeof(buf), "", args.profile_stats); buf 507 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); buf 523 third_party/tcmalloc/chromium/src/heap-profile-table.cc char buf[1024]; buf 524 third_party/tcmalloc/chromium/src/heap-profile-table.cc int len = UnparseBucket(b, buf, 0, sizeof(buf), addr, NULL); buf 525 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); buf 569 third_party/tcmalloc/chromium/src/heap-profile-table.cc char buf[512]; buf 570 third_party/tcmalloc/chromium/src/heap-profile-table.cc int len = UnparseBucket(total, buf, 0, sizeof(buf), " heapprofile", buf 572 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(fd, buf, len); buf 584 third_party/tcmalloc/chromium/src/heap-profile-table.cc char buf[1000]; buf 585 third_party/tcmalloc/chromium/src/heap-profile-table.cc snprintf(buf, 1000,"%s.%05d.", prefix, getpid()); buf 586 third_party/tcmalloc/chromium/src/heap-profile-table.cc string pattern = string(buf) + ".*" + kFileExt; buf 185 third_party/tcmalloc/chromium/src/heap-profile-table.h int FillOrderedProfile(char buf[], int size) const; buf 285 third_party/tcmalloc/chromium/src/heap-profile-table.h : buf(buf_arg), buf 290 third_party/tcmalloc/chromium/src/heap-profile-table.h char* buf; buf 367 third_party/tcmalloc/chromium/src/heap-profile-table.h char* buf, int buflen, int bufsize, buf 235 third_party/tcmalloc/chromium/src/heap-profiler.cc static char* DoGetHeapProfileLocked(char* buf, int buflen) { buf 238 third_party/tcmalloc/chromium/src/heap-profiler.cc if (buf == NULL || buflen < 1) buf 246 third_party/tcmalloc/chromium/src/heap-profiler.cc bytes_written = heap_profile->FillOrderedProfile(buf, buflen - 1); buf 253 third_party/tcmalloc/chromium/src/heap-profiler.cc buf[bytes_written] = '\0'; buf 254 third_party/tcmalloc/chromium/src/heap-profiler.cc RAW_DCHECK(bytes_written == strlen(buf), ""); buf 256 third_party/tcmalloc/chromium/src/heap-profiler.cc return buf; buf 337 third_party/tcmalloc/chromium/src/heap-profiler.cc char buf[128]; buf 342 third_party/tcmalloc/chromium/src/heap-profiler.cc snprintf(buf, sizeof(buf), ("%" PRId64 " MB allocated cumulatively, " buf 349 third_party/tcmalloc/chromium/src/heap-profiler.cc snprintf(buf, sizeof(buf), ("%" PRId64 " MB freed cumulatively, " buf 356 third_party/tcmalloc/chromium/src/heap-profiler.cc snprintf(buf, sizeof(buf), "%" PRId64 " MB currently in use", buf 362 third_party/tcmalloc/chromium/src/heap-profiler.cc snprintf(buf, sizeof(buf), "%" PRId64 " sec since the last dump", buf 368 third_party/tcmalloc/chromium/src/heap-profiler.cc DumpProfileLocked(buf); buf 141 third_party/tcmalloc/chromium/src/internal_logging.h TCMalloc_Printer(char* buf, int length) : buf_(buf), left_(length) { buf 142 third_party/tcmalloc/chromium/src/internal_logging.h buf[0] = '\0'; buf 262 third_party/tcmalloc/chromium/src/malloc_extension.cc char buf[100]; buf 263 third_party/tcmalloc/chromium/src/malloc_extension.cc snprintf(buf, sizeof(buf), buf 269 third_party/tcmalloc/chromium/src/malloc_extension.cc writer->append(buf, strlen(buf)); buf 294 third_party/tcmalloc/chromium/src/malloc_extension.cc char buf[32]; buf 295 third_party/tcmalloc/chromium/src/malloc_extension.cc snprintf(buf, sizeof(buf), " %p", PC(entry, i)); buf 296 third_party/tcmalloc/chromium/src/malloc_extension.cc writer->append(buf, strlen(buf)); buf 138 third_party/tcmalloc/chromium/src/profiledata.cc static void FDWrite(int fd, const char* buf, size_t len) { buf 141 third_party/tcmalloc/chromium/src/profiledata.cc NO_INTR(r = write(fd, buf, len)); buf 143 third_party/tcmalloc/chromium/src/profiledata.cc buf += r; buf 325 third_party/tcmalloc/chromium/src/profiledata.cc const char* buf = reinterpret_cast<char*>(evict_); buf 328 third_party/tcmalloc/chromium/src/profiledata.cc FDWrite(out_, buf, bytes); buf 41 third_party/tcmalloc/chromium/src/raw_printer.cc RawPrinter::RawPrinter(char* buf, int length) buf 42 third_party/tcmalloc/chromium/src/raw_printer.cc : base_(buf), buf 43 third_party/tcmalloc/chromium/src/raw_printer.cc ptr_(buf), buf 44 third_party/tcmalloc/chromium/src/raw_printer.cc limit_(buf + length - 1) { buf 55 third_party/tcmalloc/chromium/src/raw_printer.h RawPrinter(char* buf, int length); buf 211 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc char buf[64]; buf 230 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc snprintf(buf, sizeof(buf), "[%d/%d; ", value_index, num_values); buf 231 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc message += buf; buf 241 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc snprintf(buf, sizeof(buf), "%d]", num_values); buf 242 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc message += buf; buf 74 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { buf 76 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc char *buf0 = reinterpret_cast<char *>(buf); buf 87 third_party/tcmalloc/chromium/src/tests/sampler_test.cc char buf[256]; // should be big enough for all logging buf 90 third_party/tcmalloc/chromium/src/tests/sampler_test.cc perftools_vsnprintf(buf, sizeof(buf), format, ap); buf 92 third_party/tcmalloc/chromium/src/tests/sampler_test.cc return buf; buf 90 third_party/tcmalloc/chromium/src/thread_cache.cc struct utsname buf; buf 91 third_party/tcmalloc/chromium/src/thread_cache.cc if (uname(&buf) < 0) { // should be impossible buf 95 third_party/tcmalloc/chromium/src/thread_cache.cc } else if (strcasecmp(buf.sysname, "linux") == 0) { buf 97 third_party/tcmalloc/chromium/src/thread_cache.cc if (buf.release[0] < '2' && buf.release[1] == '.') // 0.x or 1.x buf 99 third_party/tcmalloc/chromium/src/thread_cache.cc else if (buf.release[0] == '2' && buf.release[1] == '.' && buf 100 third_party/tcmalloc/chromium/src/thread_cache.cc buf.release[2] >= '0' && buf.release[2] < '6' && buf 101 third_party/tcmalloc/chromium/src/thread_cache.cc buf.release[3] == '.') // 2.0 - 2.5 buf 105 third_party/tcmalloc/chromium/src/thread_cache.cc } else if (strcasecmp(buf.sysname, "CYGWIN_NT-6.1-WOW64") == 0) { buf 57 third_party/tcmalloc/chromium/src/windows/addr2line-pdb.c char buf[256]; /* Enough to hold one hex address, I trust! */ buf 124 third_party/tcmalloc/chromium/src/windows/addr2line-pdb.c buf[sizeof(buf)-1] = '\0'; /* Just to be safe */ buf 125 third_party/tcmalloc/chromium/src/windows/addr2line-pdb.c while (fgets(buf, sizeof(buf)-1, stdin)) { buf 129 third_party/tcmalloc/chromium/src/windows/addr2line-pdb.c unsigned __int64 addr = _strtoui64(buf, NULL, 16); buf 74 third_party/tcmalloc/chromium/src/windows/port.cc extern "C" PERFTOOLS_DLL_DECL void WriteToStderr(const char* buf, int len) { buf 77 third_party/tcmalloc/chromium/src/windows/port.cc write(STDERR_FILENO, buf + i, std::min(80, len - i)); buf 368 third_party/tcmalloc/chromium/src/windows/port.h inline ssize_t read(int fd, void *buf, size_t count) { buf 369 third_party/tcmalloc/chromium/src/windows/port.h return _read(fd, buf, count); buf 371 third_party/tcmalloc/chromium/src/windows/port.h inline ssize_t write(int fd, const void *buf, size_t count) { buf 372 third_party/tcmalloc/chromium/src/windows/port.h return _write(fd, buf, count); buf 377 third_party/tcmalloc/chromium/src/windows/port.h inline char *getcwd(char *buf, size_t size) { buf 378 third_party/tcmalloc/chromium/src/windows/port.h return _getcwd(buf, size); buf 392 third_party/tcmalloc/chromium/src/windows/port.h EXTERN_C PERFTOOLS_DLL_DECL void WriteToStderr(const char* buf, int len); buf 66 third_party/tcmalloc/vendor/src/base/linuxthreads.cc static char *local_itoa(char *buf, int i) { buf 68 third_party/tcmalloc/vendor/src/base/linuxthreads.cc *buf++ = '-'; buf 69 third_party/tcmalloc/vendor/src/base/linuxthreads.cc return local_itoa(buf, -i); buf 72 third_party/tcmalloc/vendor/src/base/linuxthreads.cc buf = local_itoa(buf, i/10); buf 73 third_party/tcmalloc/vendor/src/base/linuxthreads.cc *buf++ = (i%10) + '0'; buf 74 third_party/tcmalloc/vendor/src/base/linuxthreads.cc *buf = '\000'; buf 75 third_party/tcmalloc/vendor/src/base/linuxthreads.cc return buf; buf 227 third_party/tcmalloc/vendor/src/base/linuxthreads.cc char buf[amount]; buf 228 third_party/tcmalloc/vendor/src/base/linuxthreads.cc memset(buf, 0, amount); buf 229 third_party/tcmalloc/vendor/src/base/linuxthreads.cc sys_read(-1, buf, amount); buf 355 third_party/tcmalloc/vendor/src/base/linuxthreads.cc char buf[4096]; buf 356 third_party/tcmalloc/vendor/src/base/linuxthreads.cc ssize_t nbytes = sys_getdents(proc, (struct kernel_dirent *)buf, buf 357 third_party/tcmalloc/vendor/src/base/linuxthreads.cc sizeof(buf)); buf 373 third_party/tcmalloc/vendor/src/base/linuxthreads.cc for (entry = (struct kernel_dirent *)buf; buf 374 third_party/tcmalloc/vendor/src/base/linuxthreads.cc entry < (struct kernel_dirent *)&buf[nbytes]; buf 59 third_party/tcmalloc/vendor/src/base/logging.cc void RawWrite(RawFD handle, const char* buf, size_t len) { buf 62 third_party/tcmalloc/vendor/src/base/logging.cc BOOL ok = WriteFile(handle, buf, len, &wrote, NULL); buf 65 third_party/tcmalloc/vendor/src/base/logging.cc buf += wrote; buf 93 third_party/tcmalloc/vendor/src/base/logging.cc void RawWrite(RawFD fd, const char* buf, size_t len) { buf 96 third_party/tcmalloc/vendor/src/base/logging.cc NO_INTR(r = write(fd, buf, len)); buf 98 third_party/tcmalloc/vendor/src/base/logging.cc buf += r; buf 57 third_party/tcmalloc/vendor/src/base/logging.h #define WRITE_TO_STDERR(buf, len) WriteToStderr(buf, len); // in port.cc buf 60 third_party/tcmalloc/vendor/src/base/logging.h #define WRITE_TO_STDERR(buf, len) syscall(SYS_write, STDERR_FILENO, buf, len) buf 62 third_party/tcmalloc/vendor/src/base/logging.h #define WRITE_TO_STDERR(buf, len) write(STDERR_FILENO, buf, len) buf 200 third_party/tcmalloc/vendor/src/base/logging.h char buf[600]; buf 201 third_party/tcmalloc/vendor/src/base/logging.h perftools_vsnprintf(buf, sizeof(buf)-1, pat, ap); buf 202 third_party/tcmalloc/vendor/src/base/logging.h if (buf[0] != '\0' && buf[strlen(buf)-1] != '\n') { buf 203 third_party/tcmalloc/vendor/src/base/logging.h assert(strlen(buf)+1 < sizeof(buf)); buf 204 third_party/tcmalloc/vendor/src/base/logging.h strcat(buf, "\n"); buf 206 third_party/tcmalloc/vendor/src/base/logging.h WRITE_TO_STDERR(buf, strlen(buf)); buf 255 third_party/tcmalloc/vendor/src/base/logging.h void RawWrite(RawFD fd, const char* buf, size_t len); buf 495 third_party/tcmalloc/vendor/src/base/sysinfo.cc char buf[32]; buf 498 third_party/tcmalloc/vendor/src/base/sysinfo.cc if (confstr(_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf)) == 0) buf 500 third_party/tcmalloc/vendor/src/base/sysinfo.cc return strncmp(buf, "NPTL", 4) == 0; buf 512 third_party/tcmalloc/vendor/src/base/sysinfo.cc char* buf, int buf_size) { buf 513 third_party/tcmalloc/vendor/src/base/sysinfo.cc CHECK_LT(snprintf(buf, buf_size, buf 943 third_party/tcmalloc/vendor/src/base/sysinfo.cc int FillProcSelfMaps(char buf[], int size, bool* wrote_all) { buf 953 third_party/tcmalloc/vendor/src/base/sysinfo.cc const int line_length = it.FormatLine(buf + bytes_written, buf 231 third_party/tcmalloc/vendor/src/base/sysinfo.h int FillProcSelfMaps(char buf[], int size, bool* wrote_all); buf 688 third_party/tcmalloc/vendor/src/debugallocation.cc union { void* alignment; char buf[sizeof(SymbolTable)]; } tablebuf; buf 689 third_party/tcmalloc/vendor/src/debugallocation.cc SymbolTable* symbolization_table = new (tablebuf.buf) SymbolTable; buf 853 third_party/tcmalloc/vendor/src/debugallocation.cc char buf[64]; buf 913 third_party/tcmalloc/vendor/src/debugallocation.cc if (i == sizeof(buf)) { buf 914 third_party/tcmalloc/vendor/src/debugallocation.cc write(fd, buf, i); buf 917 third_party/tcmalloc/vendor/src/debugallocation.cc buf[i++] = *s++; buf 921 third_party/tcmalloc/vendor/src/debugallocation.cc write(fd, buf, i); buf 976 third_party/tcmalloc/vendor/src/debugallocation.cc void __malloctrace_write(const char *buf, size_t size) { buf 978 third_party/tcmalloc/vendor/src/debugallocation.cc write(TraceFd(), buf, size); buf 112 third_party/tcmalloc/vendor/src/heap-checker.cc char buf[256]; // TracerPid comes relatively earlier in status output buf 117 third_party/tcmalloc/vendor/src/heap-checker.cc const int len = read(fd, buf, sizeof(buf)); buf 121 third_party/tcmalloc/vendor/src/heap-checker.cc buf[len - 1] = '\0'; buf 122 third_party/tcmalloc/vendor/src/heap-checker.cc const char *p = strstr(buf, kTracerPid); buf 296 third_party/tcmalloc/vendor/src/heap-profile-table.cc char* buf, int buflen, int bufsize, buf 306 third_party/tcmalloc/vendor/src/heap-profile-table.cc snprintf(buf + buflen, bufsize - buflen, "%6d: %8"PRId64" [%6d: %8"PRId64"] @%s", buf 316 third_party/tcmalloc/vendor/src/heap-profile-table.cc printed = snprintf(buf + buflen, bufsize - buflen, " 0x%08" PRIxPTR, buf 321 third_party/tcmalloc/vendor/src/heap-profile-table.cc printed = snprintf(buf + buflen, bufsize - buflen, "\n"); buf 412 third_party/tcmalloc/vendor/src/heap-profile-table.cc int HeapProfileTable::FillOrderedProfile(char buf[], int size) const { buf 422 third_party/tcmalloc/vendor/src/heap-profile-table.cc int map_length = snprintf(buf, size, "%s", kProcSelfMapsHeader); buf 425 third_party/tcmalloc/vendor/src/heap-profile-table.cc map_length += FillProcSelfMaps(buf + map_length, size - map_length, &dummy); buf 427 third_party/tcmalloc/vendor/src/heap-profile-table.cc char* const map_start = buf + size - map_length; // move to end buf 428 third_party/tcmalloc/vendor/src/heap-profile-table.cc memmove(map_start, buf, map_length); buf 433 third_party/tcmalloc/vendor/src/heap-profile-table.cc int bucket_length = snprintf(buf, size, "%s", kProfileHeader); buf 440 third_party/tcmalloc/vendor/src/heap-profile-table.cc bucket_length = UnparseBucket(total_with_mmap, buf, bucket_length, size, buf 443 third_party/tcmalloc/vendor/src/heap-profile-table.cc bucket_length = UnparseBucket(*list[i], buf, bucket_length, size, "", buf 450 third_party/tcmalloc/vendor/src/heap-profile-table.cc RAW_DCHECK(buf + bucket_length <= map_start, ""); buf 451 third_party/tcmalloc/vendor/src/heap-profile-table.cc memmove(buf + bucket_length, map_start, map_length); // close the gap buf 472 third_party/tcmalloc/vendor/src/heap-profile-table.cc char buf[1024]; buf 473 third_party/tcmalloc/vendor/src/heap-profile-table.cc int len = UnparseBucket(b, buf, 0, sizeof(buf), "", args.profile_stats); buf 474 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(args.fd, buf, len); buf 510 third_party/tcmalloc/vendor/src/heap-profile-table.cc char buf[512]; buf 511 third_party/tcmalloc/vendor/src/heap-profile-table.cc int len = UnparseBucket(total, buf, 0, sizeof(buf), " heapprofile", buf 513 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(fd, buf, len); buf 168 third_party/tcmalloc/vendor/src/heap-profile-table.h int FillOrderedProfile(char buf[], int size) const; buf 273 third_party/tcmalloc/vendor/src/heap-profile-table.h char* buf, int buflen, int bufsize, buf 179 third_party/tcmalloc/vendor/src/heap-profiler.cc static char* DoGetHeapProfileLocked(char* buf, int buflen) { buf 182 third_party/tcmalloc/vendor/src/heap-profiler.cc if (buf == NULL || buflen < 1) buf 191 third_party/tcmalloc/vendor/src/heap-profiler.cc bytes_written = heap_profile->FillOrderedProfile(buf, buflen - 1); buf 196 third_party/tcmalloc/vendor/src/heap-profiler.cc buf[bytes_written] = '\0'; buf 197 third_party/tcmalloc/vendor/src/heap-profiler.cc RAW_DCHECK(bytes_written == strlen(buf), ""); buf 199 third_party/tcmalloc/vendor/src/heap-profiler.cc return buf; buf 266 third_party/tcmalloc/vendor/src/heap-profiler.cc char buf[128]; buf 270 third_party/tcmalloc/vendor/src/heap-profiler.cc snprintf(buf, sizeof(buf), ("%"PRId64" MB allocated cumulatively, " buf 277 third_party/tcmalloc/vendor/src/heap-profiler.cc snprintf(buf, sizeof(buf), ("%"PRId64" MB freed cumulatively, " buf 284 third_party/tcmalloc/vendor/src/heap-profiler.cc snprintf(buf, sizeof(buf), "%"PRId64" MB currently in use", buf 289 third_party/tcmalloc/vendor/src/heap-profiler.cc DumpProfileLocked(buf); buf 132 third_party/tcmalloc/vendor/src/internal_logging.h TCMalloc_Printer(char* buf, int length) : buf_(buf), left_(length) { buf 133 third_party/tcmalloc/vendor/src/internal_logging.h buf[0] = '\0'; buf 245 third_party/tcmalloc/vendor/src/malloc_extension.cc char buf[100]; buf 246 third_party/tcmalloc/vendor/src/malloc_extension.cc snprintf(buf, sizeof(buf), buf 252 third_party/tcmalloc/vendor/src/malloc_extension.cc writer->append(buf, strlen(buf)); buf 277 third_party/tcmalloc/vendor/src/malloc_extension.cc char buf[32]; buf 278 third_party/tcmalloc/vendor/src/malloc_extension.cc snprintf(buf, sizeof(buf), " %p", PC(entry, i)); buf 279 third_party/tcmalloc/vendor/src/malloc_extension.cc writer->append(buf, strlen(buf)); buf 138 third_party/tcmalloc/vendor/src/profiledata.cc static void FDWrite(int fd, const char* buf, size_t len) { buf 141 third_party/tcmalloc/vendor/src/profiledata.cc NO_INTR(r = write(fd, buf, len)); buf 143 third_party/tcmalloc/vendor/src/profiledata.cc buf += r; buf 325 third_party/tcmalloc/vendor/src/profiledata.cc const char* buf = reinterpret_cast<char*>(evict_); buf 328 third_party/tcmalloc/vendor/src/profiledata.cc FDWrite(out_, buf, bytes); buf 41 third_party/tcmalloc/vendor/src/raw_printer.cc RawPrinter::RawPrinter(char* buf, int length) buf 42 third_party/tcmalloc/vendor/src/raw_printer.cc : base_(buf), buf 43 third_party/tcmalloc/vendor/src/raw_printer.cc ptr_(buf), buf 44 third_party/tcmalloc/vendor/src/raw_printer.cc limit_(buf + length - 1) { buf 55 third_party/tcmalloc/vendor/src/raw_printer.h RawPrinter(char* buf, int length); buf 211 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc char buf[64]; buf 230 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc snprintf(buf, sizeof(buf), "[%d/%d; ", value_index, num_values); buf 231 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc message += buf; buf 241 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc snprintf(buf, sizeof(buf), "%d]", num_values); buf 242 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc message += buf; buf 74 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { buf 76 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc char *buf0 = reinterpret_cast<char *>(buf); buf 87 third_party/tcmalloc/vendor/src/tests/sampler_test.cc char buf[256]; // should be big enough for all logging buf 90 third_party/tcmalloc/vendor/src/tests/sampler_test.cc perftools_vsnprintf(buf, sizeof(buf), format, ap); buf 92 third_party/tcmalloc/vendor/src/tests/sampler_test.cc return buf; buf 88 third_party/tcmalloc/vendor/src/thread_cache.cc struct utsname buf; buf 89 third_party/tcmalloc/vendor/src/thread_cache.cc if (uname(&buf) < 0) { // should be impossible buf 93 third_party/tcmalloc/vendor/src/thread_cache.cc } else if (strcasecmp(buf.sysname, "linux") == 0) { buf 95 third_party/tcmalloc/vendor/src/thread_cache.cc if (buf.release[0] < '2' && buf.release[1] == '.') // 0.x or 1.x buf 97 third_party/tcmalloc/vendor/src/thread_cache.cc else if (buf.release[0] == '2' && buf.release[1] == '.' && buf 98 third_party/tcmalloc/vendor/src/thread_cache.cc buf.release[2] >= '0' && buf.release[2] < '6' && buf 99 third_party/tcmalloc/vendor/src/thread_cache.cc buf.release[3] == '.') // 2.0 - 2.5 buf 103 third_party/tcmalloc/vendor/src/thread_cache.cc } else if (strcasecmp(buf.sysname, "CYGWIN_NT-6.1-WOW64") == 0) { buf 63 third_party/tcmalloc/vendor/src/windows/addr2line-pdb.c char buf[256]; /* Enough to hold one hex address, I trust! */ buf 131 third_party/tcmalloc/vendor/src/windows/addr2line-pdb.c buf[sizeof(buf)-1] = '\0'; /* Just to be safe */ buf 132 third_party/tcmalloc/vendor/src/windows/addr2line-pdb.c while (fgets(buf, sizeof(buf)-1, stdin)) { buf 136 third_party/tcmalloc/vendor/src/windows/addr2line-pdb.c unsigned __int64 addr = _strtoui64(buf, NULL, 16); buf 73 third_party/tcmalloc/vendor/src/windows/port.cc extern "C" PERFTOOLS_DLL_DECL void WriteToStderr(const char* buf, int len) { buf 76 third_party/tcmalloc/vendor/src/windows/port.cc write(STDERR_FILENO, buf + i, std::min(80, len - i)); buf 365 third_party/tcmalloc/vendor/src/windows/port.h inline ssize_t read(int fd, void *buf, size_t count) { buf 366 third_party/tcmalloc/vendor/src/windows/port.h return _read(fd, buf, count); buf 368 third_party/tcmalloc/vendor/src/windows/port.h inline ssize_t write(int fd, const void *buf, size_t count) { buf 369 third_party/tcmalloc/vendor/src/windows/port.h return _write(fd, buf, count); buf 374 third_party/tcmalloc/vendor/src/windows/port.h inline char *getcwd(char *buf, size_t size) { buf 375 third_party/tcmalloc/vendor/src/windows/port.h return _getcwd(buf, size); buf 389 third_party/tcmalloc/vendor/src/windows/port.h EXTERN_C PERFTOOLS_DLL_DECL void WriteToStderr(const char* buf, int len); buf 18 third_party/zlib/adler32.c #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} buf 19 third_party/zlib/adler32.c #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); buf 20 third_party/zlib/adler32.c #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); buf 21 third_party/zlib/adler32.c #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); buf 22 third_party/zlib/adler32.c #define DO16(buf) DO8(buf,0); DO8(buf,8); buf 60 third_party/zlib/adler32.c uLong ZEXPORT adler32(adler, buf, len) buf 62 third_party/zlib/adler32.c const Bytef *buf; buf 74 third_party/zlib/adler32.c adler += buf[0]; buf 84 third_party/zlib/adler32.c if (buf == Z_NULL) buf 90 third_party/zlib/adler32.c adler += *buf++; buf 104 third_party/zlib/adler32.c DO16(buf); /* 16 sums unrolled */ buf 105 third_party/zlib/adler32.c buf += 16; buf 115 third_party/zlib/adler32.c DO16(buf); buf 116 third_party/zlib/adler32.c buf += 16; buf 119 third_party/zlib/adler32.c adler += *buf++; buf 91 third_party/zlib/contrib/minizip/crypt.h unsigned char* buf, /* where to write header */ buf 124 third_party/zlib/contrib/minizip/crypt.h buf[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, header[n], t); buf 126 third_party/zlib/contrib/minizip/crypt.h buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t); buf 127 third_party/zlib/contrib/minizip/crypt.h buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t); buf 76 third_party/zlib/contrib/minizip/ioapi.c static uLong ZCALLBACK fread_file_func OF((voidpf opaque, voidpf stream, void* buf, uLong size)); buf 77 third_party/zlib/contrib/minizip/ioapi.c static uLong ZCALLBACK fwrite_file_func OF((voidpf opaque, voidpf stream, const void* buf,uLong size)); buf 120 third_party/zlib/contrib/minizip/ioapi.c static uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void* buf, uLong size) buf 123 third_party/zlib/contrib/minizip/ioapi.c ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream); buf 127 third_party/zlib/contrib/minizip/ioapi.c static uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void* buf, uLong size) buf 130 third_party/zlib/contrib/minizip/ioapi.c ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream); buf 128 third_party/zlib/contrib/minizip/ioapi.h typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); buf 129 third_party/zlib/contrib/minizip/ioapi.h typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); buf 179 third_party/zlib/contrib/minizip/ioapi.h #define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size)) buf 180 third_party/zlib/contrib/minizip/ioapi.h #define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size)) buf 29 third_party/zlib/contrib/minizip/iowin32.c uLong ZCALLBACK win32_read_file_func OF((voidpf opaque, voidpf stream, void* buf, uLong size)); buf 30 third_party/zlib/contrib/minizip/iowin32.c uLong ZCALLBACK win32_write_file_func OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); buf 148 third_party/zlib/contrib/minizip/iowin32.c uLong ZCALLBACK win32_read_file_func (voidpf opaque, voidpf stream, void* buf,uLong size) buf 157 third_party/zlib/contrib/minizip/iowin32.c if (!ReadFile(hFile, buf, size, &ret, NULL)) buf 170 third_party/zlib/contrib/minizip/iowin32.c uLong ZCALLBACK win32_write_file_func (voidpf opaque,voidpf stream,const void* buf,uLong size) buf 179 third_party/zlib/contrib/minizip/iowin32.c if (!WriteFile(hFile, buf, size, &ret, NULL)) buf 310 third_party/zlib/contrib/minizip/miniunz.c void* buf; buf 324 third_party/zlib/contrib/minizip/miniunz.c buf = (void*)malloc(size_buf); buf 325 third_party/zlib/contrib/minizip/miniunz.c if (buf==NULL) buf 423 third_party/zlib/contrib/minizip/miniunz.c err = unzReadCurrentFile(uf,buf,size_buf); buf 430 third_party/zlib/contrib/minizip/miniunz.c if (fwrite(buf,err,1,fout)!=1) buf 458 third_party/zlib/contrib/minizip/miniunz.c free(buf); buf 172 third_party/zlib/contrib/minizip/minizip.c int getFileCrc(const char* filenameinzip,void*buf,unsigned long size_buf,unsigned long* result_crc) buf 188 third_party/zlib/contrib/minizip/minizip.c size_read = (int)fread(buf,1,size_buf,fin); buf 197 third_party/zlib/contrib/minizip/minizip.c calculate_crc = crc32(calculate_crc,buf,size_read); buf 246 third_party/zlib/contrib/minizip/minizip.c void* buf=NULL; buf 294 third_party/zlib/contrib/minizip/minizip.c buf = (void*)malloc(size_buf); buf 295 third_party/zlib/contrib/minizip/minizip.c if (buf==NULL) buf 407 third_party/zlib/contrib/minizip/minizip.c err = getFileCrc(filenameinzip,buf,size_buf,&crcFile); buf 462 third_party/zlib/contrib/minizip/minizip.c size_read = (int)fread(buf,1,size_buf,fin); buf 472 third_party/zlib/contrib/minizip/minizip.c err = zipWriteInFileInZip (zf,buf,size_read); buf 505 third_party/zlib/contrib/minizip/minizip.c free(buf); buf 415 third_party/zlib/contrib/minizip/unzip.c unsigned char* buf; buf 430 third_party/zlib/contrib/minizip/unzip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4); buf 431 third_party/zlib/contrib/minizip/unzip.c if (buf==NULL) buf 451 third_party/zlib/contrib/minizip/unzip.c if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize) buf 455 third_party/zlib/contrib/minizip/unzip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && buf 456 third_party/zlib/contrib/minizip/unzip.c ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06)) buf 465 third_party/zlib/contrib/minizip/unzip.c TRYFREE(buf); buf 481 third_party/zlib/contrib/minizip/unzip.c unsigned char* buf; buf 498 third_party/zlib/contrib/minizip/unzip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4); buf 499 third_party/zlib/contrib/minizip/unzip.c if (buf==NULL) buf 519 third_party/zlib/contrib/minizip/unzip.c if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize) buf 523 third_party/zlib/contrib/minizip/unzip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && buf 524 third_party/zlib/contrib/minizip/unzip.c ((*(buf+i+2))==0x06) && ((*(buf+i+3))==0x07)) buf 533 third_party/zlib/contrib/minizip/unzip.c TRYFREE(buf); buf 1684 third_party/zlib/contrib/minizip/unzip.c extern int ZEXPORT unzReadCurrentFile (unzFile file, voidp buf, unsigned len) buf 1704 third_party/zlib/contrib/minizip/unzip.c pfile_in_zip_read_info->stream.next_out = (Bytef*)buf; buf 1956 third_party/zlib/contrib/minizip/unzip.c extern int ZEXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len) buf 1974 third_party/zlib/contrib/minizip/unzip.c if (buf==NULL) buf 1994 third_party/zlib/contrib/minizip/unzip.c buf,read_now)!=read_now) buf 380 third_party/zlib/contrib/minizip/unzip.h voidp buf, buf 406 third_party/zlib/contrib/minizip/unzip.h voidp buf, buf 225 third_party/zlib/contrib/minizip/zip.c local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len) buf 241 third_party/zlib/contrib/minizip/zip.c from_copy = (unsigned char*)buf; buf 289 third_party/zlib/contrib/minizip/zip.c unsigned char buf[8]; buf 293 third_party/zlib/contrib/minizip/zip.c buf[n] = (unsigned char)(x & 0xff); buf 300 third_party/zlib/contrib/minizip/zip.c buf[n] = 0xff; buf 304 third_party/zlib/contrib/minizip/zip.c if (ZWRITE64(*pzlib_filefunc_def,filestream,buf,nbByte)!=(uLong)nbByte) buf 313 third_party/zlib/contrib/minizip/zip.c unsigned char* buf=(unsigned char*)dest; buf 316 third_party/zlib/contrib/minizip/zip.c buf[n] = (unsigned char)(x & 0xff); buf 324 third_party/zlib/contrib/minizip/zip.c buf[n] = 0xff; buf 482 third_party/zlib/contrib/minizip/zip.c unsigned char* buf; buf 497 third_party/zlib/contrib/minizip/zip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4); buf 498 third_party/zlib/contrib/minizip/zip.c if (buf==NULL) buf 518 third_party/zlib/contrib/minizip/zip.c if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize) buf 522 third_party/zlib/contrib/minizip/zip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && buf 523 third_party/zlib/contrib/minizip/zip.c ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06)) buf 532 third_party/zlib/contrib/minizip/zip.c TRYFREE(buf); buf 544 third_party/zlib/contrib/minizip/zip.c unsigned char* buf; buf 560 third_party/zlib/contrib/minizip/zip.c buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4); buf 561 third_party/zlib/contrib/minizip/zip.c if (buf==NULL) buf 581 third_party/zlib/contrib/minizip/zip.c if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize) buf 587 third_party/zlib/contrib/minizip/zip.c if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && ((*(buf+i+2))==0x06) && ((*(buf+i+3))==0x07)) buf 598 third_party/zlib/contrib/minizip/zip.c TRYFREE(buf); buf 1401 third_party/zlib/contrib/minizip/zip.c extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned int len) buf 1413 third_party/zlib/contrib/minizip/zip.c zi->ci.crc32 = crc32(zi->ci.crc32,buf,(uInt)len); buf 1418 third_party/zlib/contrib/minizip/zip.c zi->ci.bstream.next_in = (void*)buf; buf 1452 third_party/zlib/contrib/minizip/zip.c zi->ci.stream.next_in = (Bytef*)buf; buf 308 third_party/zlib/contrib/minizip/zip.h const void* buf, buf 217 third_party/zlib/crc32.c #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) buf 221 third_party/zlib/crc32.c unsigned long ZEXPORT crc32(crc, buf, len) buf 223 third_party/zlib/crc32.c const unsigned char FAR *buf; buf 226 third_party/zlib/crc32.c if (buf == Z_NULL) return 0UL; buf 239 third_party/zlib/crc32.c return crc32_little(crc, buf, len); buf 241 third_party/zlib/crc32.c return crc32_big(crc, buf, len); buf 264 third_party/zlib/crc32.c local unsigned long crc32_little(crc, buf, len) buf 266 third_party/zlib/crc32.c const unsigned char FAR *buf; buf 274 third_party/zlib/crc32.c while (len && ((ptrdiff_t)buf & 3)) { buf 275 third_party/zlib/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8); buf 279 third_party/zlib/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf; buf 288 third_party/zlib/crc32.c buf = (const unsigned char FAR *)buf4; buf 291 third_party/zlib/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8); buf 304 third_party/zlib/crc32.c local unsigned long crc32_big(crc, buf, len) buf 306 third_party/zlib/crc32.c const unsigned char FAR *buf; buf 314 third_party/zlib/crc32.c while (len && ((ptrdiff_t)buf & 3)) { buf 315 third_party/zlib/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8); buf 319 third_party/zlib/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf; buf 330 third_party/zlib/crc32.c buf = (const unsigned char FAR *)buf4; buf 333 third_party/zlib/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8); buf 88 third_party/zlib/deflate.c local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); buf 1016 third_party/zlib/deflate.c local int read_buf(strm, buf, size) buf 1018 third_party/zlib/deflate.c Bytef *buf; buf 1036 third_party/zlib/deflate.c zmemcpy(buf, strm->next_in, len); buf 300 third_party/zlib/deflate.h void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, buf 303 third_party/zlib/deflate.h void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, buf 69 third_party/zlib/google/zip.cc char buf[zip::internal::kZipBufSize]; buf 71 third_party/zlib/google/zip.cc num_bytes = file.ReadAtCurrentPos(buf, zip::internal::kZipBufSize); buf 73 third_party/zlib/google/zip.cc if (ZIP_OK != zipWriteInFileInZip(zip_file, buf, num_bytes)) { buf 165 third_party/zlib/google/zip_internal.cc uLong ReadZipBuffer(void* opaque, void* /*stream*/, void* buf, uLong size) { buf 172 third_party/zlib/google/zip_internal.cc memcpy(buf, &buffer->data[buffer->offset], size); buf 215 third_party/zlib/google/zip_reader.cc char buf[internal::kZipBufSize]; buf 216 third_party/zlib/google/zip_reader.cc const int num_bytes_read = unzReadCurrentFile(zip_file_, buf, buf 227 third_party/zlib/google/zip_reader.cc if (num_bytes_read != file.WriteAtCurrentPos(buf, num_bytes_read)) { buf 322 third_party/zlib/google/zip_reader.cc char buf[internal::kZipBufSize]; buf 323 third_party/zlib/google/zip_reader.cc const int num_bytes_read = unzReadCurrentFile(zip_file_, buf, buf 335 third_party/zlib/google/zip_reader.cc base::WriteFileDescriptor(fd, buf, num_bytes_read)) { buf 34 third_party/zlib/gzlib.c static char buf[1024]; buf 54 third_party/zlib/gzlib.c if (chars > sizeof (buf) - 1) { buf 55 third_party/zlib/gzlib.c chars = sizeof (buf) - 1; buf 59 third_party/zlib/gzlib.c wcstombs(buf, msgbuf, chars + 1); buf 63 third_party/zlib/gzlib.c sprintf(buf, "unknown win32 error (%ld)", error); buf 67 third_party/zlib/gzlib.c return buf; buf 21 third_party/zlib/gzread.c local int gz_load(state, buf, len, have) buf 23 third_party/zlib/gzread.c unsigned char *buf; buf 31 third_party/zlib/gzread.c ret = read(state->fd, buf + *have, len - *have); buf 362 third_party/zlib/gzread.c int ZEXPORT gzread(file, buf, len) buf 364 third_party/zlib/gzread.c voidp buf; buf 405 third_party/zlib/gzread.c memcpy(buf, state->next, n); buf 427 third_party/zlib/gzread.c if (gz_load(state, buf, len, &n) == -1) buf 434 third_party/zlib/gzread.c strm->next_out = buf; buf 443 third_party/zlib/gzread.c buf = (char *)buf + n; buf 457 third_party/zlib/gzread.c unsigned char buf[1]; buf 477 third_party/zlib/gzread.c ret = gzread(file, buf, 1); buf 478 third_party/zlib/gzread.c return ret < 1 ? -1 : buf[0]; buf 539 third_party/zlib/gzread.c char * ZEXPORT gzgets(file, buf, len) buf 541 third_party/zlib/gzread.c char *buf; buf 550 third_party/zlib/gzread.c if (file == NULL || buf == NULL || len < 1) buf 568 third_party/zlib/gzread.c str = buf; buf 576 third_party/zlib/gzread.c if (buf == str) /* got bupkus */ buf 589 third_party/zlib/gzread.c memcpy(buf, state->next, n); buf 594 third_party/zlib/gzread.c buf += n; buf 598 third_party/zlib/gzread.c buf[0] = 0; buf 143 third_party/zlib/gzwrite.c int ZEXPORT gzwrite(file, buf, len) buf 145 third_party/zlib/gzwrite.c voidpc buf; buf 194 third_party/zlib/gzwrite.c memcpy(strm->next_in + strm->avail_in, buf, n); buf 197 third_party/zlib/gzwrite.c buf = (char *)buf + n; buf 210 third_party/zlib/gzwrite.c strm->next_in = (voidp)buf; buf 225 third_party/zlib/gzwrite.c unsigned char buf[1]; buf 257 third_party/zlib/gzwrite.c buf[0] = c; buf 258 third_party/zlib/gzwrite.c if (gzwrite(file, buf, 1) != 1) buf 100 third_party/zlib/inflate.c local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf, buf 412 third_party/zlib/inflate.c # define UPDATE(check, buf, len) \ buf 413 third_party/zlib/inflate.c (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) buf 415 third_party/zlib/inflate.c # define UPDATE(check, buf, len) adler32(check, buf, len) buf 1322 third_party/zlib/inflate.c local unsigned syncsearch(have, buf, len) buf 1324 third_party/zlib/inflate.c unsigned char FAR *buf; buf 1333 third_party/zlib/inflate.c if ((int)(buf[next]) == (got < 2 ? 0 : 0xff)) buf 1335 third_party/zlib/inflate.c else if (buf[next]) buf 1350 third_party/zlib/inflate.c unsigned char buf[4]; /* to restore bit buffer to byte string */ buf 1365 third_party/zlib/inflate.c buf[len++] = (unsigned char)(state->hold); buf 1370 third_party/zlib/inflate.c syncsearch(&(state->have), buf, len); buf 160 third_party/zlib/trees.c local void copy_block OF((deflate_state *s, charf *buf, unsigned len, buf 871 third_party/zlib/trees.c void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last) buf 873 third_party/zlib/trees.c charf *buf; /* input block */ buf 882 third_party/zlib/trees.c copy_block(s, buf, (unsigned)stored_len, 1); /* with header */ buf 925 third_party/zlib/trees.c void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last) buf 927 third_party/zlib/trees.c charf *buf; /* input block, or NULL if too old */ buf 969 third_party/zlib/trees.c Assert(buf != (char*)0, "lost buf"); buf 974 third_party/zlib/trees.c if (buf != (char*)0) { /* force stored block */ buf 976 third_party/zlib/trees.c if (stored_len+4 <= opt_lenb && buf != (char*)0) { buf 985 third_party/zlib/trees.c _tr_stored_block(s, buf, stored_len, last); buf 1222 third_party/zlib/trees.c local void copy_block(s, buf, len, header) buf 1224 third_party/zlib/trees.c charf *buf; /* the input data */ buf 1242 third_party/zlib/trees.c put_byte(s, *buf++); buf 1240 third_party/zlib/zlib.h ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); buf 1257 third_party/zlib/zlib.h voidpc buf, unsigned len)); buf 1287 third_party/zlib/zlib.h ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); buf 1474 third_party/zlib/zlib.h ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); buf 1503 third_party/zlib/zlib.h ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); buf 218 third_party/zlib/zutil.c voidpf buf = opaque; /* just to make some compilers happy */ buf 225 third_party/zlib/zutil.c buf = farmalloc(bsize); buf 226 third_party/zlib/zutil.c if (*(ush*)&buf != 0) return buf; buf 228 third_party/zlib/zutil.c buf = farmalloc(bsize + 16L); buf 230 third_party/zlib/zutil.c if (buf == NULL || next_ptr >= MAX_PTR) return NULL; buf 231 third_party/zlib/zutil.c table[next_ptr].org_ptr = buf; buf 234 third_party/zlib/zutil.c *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4; buf 235 third_party/zlib/zutil.c *(ush*)&buf = 0; buf 236 third_party/zlib/zutil.c table[next_ptr++].new_ptr = buf; buf 237 third_party/zlib/zutil.c return buf; buf 138 tools/android/forwarder2/daemon.cc char buf[kBufferSize]; buf 139 tools/android/forwarder2/daemon.cc DCHECK(expected_welcome_message.length() + 1 <= sizeof(buf)); buf 140 tools/android/forwarder2/daemon.cc memset(buf, 0, sizeof(buf)); buf 141 tools/android/forwarder2/daemon.cc if (socket->Read(buf, expected_welcome_message.length() + 1) < 0) { buf 145 tools/android/forwarder2/daemon.cc if (expected_welcome_message != buf) { buf 146 tools/android/forwarder2/daemon.cc LOG(ERROR) << "Unexpected message read from daemon: " << buf; buf 123 tools/android/forwarder2/device_forwarder_main.cc char buf[kBufSize]; buf 125 tools/android/forwarder2/device_forwarder_main.cc buf, sizeof(buf) - 1 /* leave space for null terminator */); buf 127 tools/android/forwarder2/device_forwarder_main.cc DCHECK(bytes_read < sizeof(buf)); buf 128 tools/android/forwarder2/device_forwarder_main.cc buf[bytes_read] = 0; buf 129 tools/android/forwarder2/device_forwarder_main.cc base::StringPiece msg(buf, bytes_read); buf 67 tools/android/forwarder2/host_forwarder_main.cc char buf[kBufSize]; buf 69 tools/android/forwarder2/host_forwarder_main.cc snprintf(buf, sizeof(buf), "Ignoring unexpected signal %d.", signal_number); buf 70 tools/android/forwarder2/host_forwarder_main.cc SIGNAL_SAFE_LOG(WARNING, buf); buf 73 tools/android/forwarder2/host_forwarder_main.cc snprintf(buf, sizeof(buf), "Received signal %d.", signal_number); buf 74 tools/android/forwarder2/host_forwarder_main.cc SIGNAL_SAFE_LOG(WARNING, buf); buf 323 tools/android/forwarder2/host_forwarder_main.cc char buf[kBufSize]; buf 324 tools/android/forwarder2/host_forwarder_main.cc const int bytes_read = client_socket->Read(buf, sizeof(buf)); buf 332 tools/android/forwarder2/host_forwarder_main.cc const Pickle command_pickle(buf, bytes_read); buf 370 tools/android/forwarder2/host_forwarder_main.cc char buf[kBufSize]; buf 372 tools/android/forwarder2/host_forwarder_main.cc buf, sizeof(buf) - 1 /* leave space for null terminator */); buf 374 tools/android/forwarder2/host_forwarder_main.cc DCHECK(bytes_read < sizeof(buf)); buf 375 tools/android/forwarder2/host_forwarder_main.cc buf[bytes_read] = 0; buf 376 tools/android/forwarder2/host_forwarder_main.cc base::StringPiece msg(buf, bytes_read); buf 382 tools/android/forwarder2/host_forwarder_main.cc printf("%s\n", buf); buf 32 tools/android/md5sum/md5sum.cc char buf[kBufferSize]; buf 34 tools/android/md5sum/md5sum.cc std::streamsize bytes_read = stream.readsome(buf, sizeof(buf)); buf 37 tools/android/md5sum/md5sum.cc base::MD5Update(&ctx, base::StringPiece(buf, bytes_read)); buf 373 tools/android/memdump/memdump.cc std::string buf; buf 393 tools/android/memdump/memdump.cc &buf, "%d\t%d\t\t%d\t\t%d\n", buf 398 tools/android/memdump/memdump.cc std::cout << buf; buf 404 tools/android/memdump/memdump.cc std::string buf; buf 417 tools/android/memdump/memdump.cc &buf, buf 431 tools/android/memdump/memdump.cc std::cout << buf; buf 325 tools/cygprofile/cygprofile.cc char buf[80]; buf 326 tools/cygprofile/cygprofile.cc snprintf(buf, sizeof(buf), kLogFilenameFmt, buf 328 tools/cygprofile/cygprofile.cc log_filename_ = buf; buf 30 tools/gn/command_desc.cc std::string buf = dir.value(); buf 31 tools/gn/command_desc.cc if (buf.size() > 3 && buf[2] == ':') { buf 32 tools/gn/command_desc.cc buf.erase(buf.begin()); // Erase beginning slash. buf 33 tools/gn/command_desc.cc return buf; buf 13 tools/gn/output_stream.h OutputStream& WriteBuffer(const char* buf, size_t len); buf 18 tools/gn/output_stream.h template<size_t size> OutputStream& Write(const char (&buf)[size]) { buf 19 tools/gn/output_stream.h return WriteBuffer(buf, size); buf 140 tools/gn/tokenizer.cc size_t Tokenizer::ByteOffsetOfNthLine(const base::StringPiece& buf, int n) { buf 149 tools/gn/tokenizer.cc while (cur_byte < buf.size()) { buf 150 tools/gn/tokenizer.cc if (IsNewline(buf, cur_byte)) { buf 28 tools/gn/tokenizer.h static size_t ByteOffsetOfNthLine(const base::StringPiece& buf, int n); buf 105 tools/imagediff/image_diff.cc unsigned char buf[buf_size]; buf 107 tools/imagediff/image_diff.cc while ((num_read = fread(buf, 1, buf_size, f)) > 0) { buf 108 tools/imagediff/image_diff.cc compressed.insert(compressed.end(), buf, buf + num_read); buf 125 tools/memory_watcher/call_stack.cc TCHAR buf[kMaxSearchPath] = {0}; buf 126 tools/memory_watcher/call_stack.cc ok = pSymGetSearchPath(process_handle, buf, kMaxSearchPath); buf 71 tools/memory_watcher/memory_watcher.cc char buf[16]; buf 72 tools/memory_watcher/memory_watcher.cc file_name_ += _itoa(GetCurrentProcessId(), buf, 10); buf 314 tools/traceline/traceline/assembler.h explicit CodeBuffer(char* buf) : pos_(0), buf_(buf) { } buf 10 tools/traceline/traceline/assembler_unittest.cc char buf[1024]; buf 12 tools/traceline/traceline/assembler_unittest.cc CodeBuffer cb(buf); buf 80 tools/traceline/traceline/assembler_unittest.cc fwrite(buf, 1, cb.size(), stdout); buf 192 tools/traceline/traceline/main.cc char buf[15]; buf 195 tools/traceline/traceline/main.cc buf, buf 196 tools/traceline/traceline/main.cc sizeof(buf), buf 207 tools/traceline/traceline/main.cc if (memcmp(buf, "\x90\x90\x90\x90\x90", 5) == 0 || buf 208 tools/traceline/traceline/main.cc memcmp(buf, "\x00\x8D\x64\x24\x00", 5) == 0 || buf 209 tools/traceline/traceline/main.cc memcmp(buf, "\x00\x00\x8D\x49\x00", 5) == 0) { buf 217 tools/traceline/traceline/main.cc reinterpret_cast<unsigned char*>(buf + 5 + instr_bytes), buf 225 tools/traceline/traceline/main.cc instrs.assign(buf + 5, instr_bytes); buf 229 tools/traceline/traceline/main.cc CodeBuffer patch(buf); buf 238 tools/traceline/traceline/main.cc reinterpret_cast<unsigned char*>(buf + 5 + instr_bytes), buf 246 tools/traceline/traceline/main.cc instrs.assign(buf + 5, instr_bytes); buf 249 tools/traceline/traceline/main.cc CodeBuffer patch(buf + 5); buf 258 tools/traceline/traceline/main.cc buf, buf 259 tools/traceline/traceline/main.cc sizeof(buf), buf 95 tools/traceline/traceline/sym_resolver.h char buf[128]; buf 113 tools/traceline/traceline/sym_resolver.h char buf[128]; buf 135 tools/traceline/traceline/sym_resolver.h char buf[32]; buf 136 tools/traceline/traceline/sym_resolver.h _itoa_s(ptr - addr, buf, sizeof(buf), 16); buf 138 tools/traceline/traceline/sym_resolver.h name.append(buf); buf 147 tools/traceline/traceline/sym_resolver.h _itoa_s(line.LineNumber, buf, sizeof(buf), 10); buf 148 tools/traceline/traceline/sym_resolver.h name.append(buf); buf 237 tools/win/split_link/split_link.cc wchar_t buf[1024]; buf 238 tools/win/split_link/split_link.cc swprintf(buf, buf 239 tools/win/split_link/split_link.cc sizeof(buf), buf 243 tools/win/split_link/split_link.cc if (_wsystem(buf) == 0) buf 246 tools/win/split_link/split_link.cc wprintf(L"'%s' failed.", buf); buf 783 ui/base/resource/resource_bundle.cc bool ResourceBundle::PNGContainsFallbackMarker(const unsigned char* buf, buf 786 ui/base/resource/resource_bundle.cc memcmp(buf, kPngMagic, arraysize(kPngMagic)) != 0) { buf 798 ui/base/resource/resource_bundle.cc base::ReadBigEndian(reinterpret_cast<const char*>(buf + pos), &length); buf 801 ui/base/resource/resource_bundle.cc if (length == 0 && memcmp(buf + pos + sizeof(uint32), kPngScaleChunkType, buf 805 ui/base/resource/resource_bundle.cc if (memcmp(buf + pos + sizeof(uint32), kPngDataChunkType, buf 817 ui/base/resource/resource_bundle.cc bool ResourceBundle::DecodePNG(const unsigned char* buf, buf 821 ui/base/resource/resource_bundle.cc *fell_back_to_1x = PNGContainsFallbackMarker(buf, size); buf 822 ui/base/resource/resource_bundle.cc return gfx::PNGCodec::Decode(buf, size, bitmap); buf 339 ui/base/resource/resource_bundle.h static bool PNGContainsFallbackMarker(const unsigned char* buf, size_t size); buf 345 ui/base/resource/resource_bundle.h static bool DecodePNG(const unsigned char* buf, buf 449 ui/events/keycodes/keyboard_code_conversion_x.cc char buf[6]; buf 450 ui/events/keycodes/keyboard_code_conversion_x.cc int bytes_written = XLookupString(&xev->xkey, buf, 6, NULL, NULL); buf 454 ui/events/keycodes/keyboard_code_conversion_x.cc return (bytes_written > 0 && base::UTF8ToUTF16(buf, bytes_written, &result) && buf 16 ui/events/ozone/evdev/event_device_info.cc bool GetEventBits(int fd, unsigned int type, void* buf, unsigned int size) { buf 17 ui/events/ozone/evdev/event_device_info.cc if (ioctl(fd, EVIOCGBIT(type, size), buf) < 0) { buf 26 ui/events/ozone/evdev/event_device_info.cc bool GetPropBits(int fd, void* buf, unsigned int size) { buf 27 ui/events/ozone/evdev/event_device_info.cc if (ioctl(fd, EVIOCGPROP(size), buf) < 0) { buf 219 url/url_canon_etc.cc char buf[buf_size]; buf 220 url/url_canon_etc.cc WritePortInt(buf, buf_size, port_num); buf 225 url/url_canon_etc.cc for (int i = 0; i < buf_size && buf[i]; i++) buf 226 url/url_canon_etc.cc output->push_back(buf[i]); buf 127 url/url_canon_ip.cc char buf[kMaxComponentLen + 1]; // digits + '\0' buf 141 url/url_canon_ip.cc buf[dest_i++] = input; buf 144 url/url_canon_ip.cc buf[dest_i] = '\0'; buf 148 url/url_canon_ip.cc uint64 num = _strtoui64(buf, NULL, BaseForType(base)); buf 448 url/url_canon_ip.cc char buf[5]; buf 450 url/url_canon_ip.cc buf[i] = static_cast<char>(spec[component.begin + i]); buf 451 url/url_canon_ip.cc buf[component.len] = '\0'; buf 455 url/url_canon_ip.cc return static_cast<uint16>(_strtoui64(buf, NULL, 16)); buf 1922 url/url_canon_unittest.cc char buf[6]; buf 1923 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1924 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itoa_s(12, buf, sizeof(buf) - 1, 10)); buf 1925 url/url_canon_unittest.cc EXPECT_STREQ("12", buf); buf 1926 url/url_canon_unittest.cc EXPECT_EQ('\xFF', buf[3]); buf 1929 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1930 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 10)); buf 1931 url/url_canon_unittest.cc EXPECT_STREQ("1234", buf); buf 1932 url/url_canon_unittest.cc EXPECT_EQ('\xFF', buf[5]); buf 1934 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1935 url/url_canon_unittest.cc EXPECT_EQ(EINVAL, url_canon::_itoa_s(12345, buf, sizeof(buf) - 1, 10)); buf 1936 url/url_canon_unittest.cc EXPECT_EQ('\xFF', buf[5]); // should never write to this location buf 1939 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1940 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itoa_s(12, buf, 10)); buf 1941 url/url_canon_unittest.cc EXPECT_STREQ("12", buf); buf 1942 url/url_canon_unittest.cc EXPECT_EQ('\xFF', buf[3]); buf 1944 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1945 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itoa_s(12345, buf, 10)); buf 1946 url/url_canon_unittest.cc EXPECT_STREQ("12345", buf); buf 1948 url/url_canon_unittest.cc EXPECT_EQ(EINVAL, url_canon::_itoa_s(123456, buf, 10)); buf 1951 url/url_canon_unittest.cc memset(buf, 0xff, sizeof(buf)); buf 1952 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 16)); buf 1953 url/url_canon_unittest.cc EXPECT_STREQ("4d2", buf); buf 1954 url/url_canon_unittest.cc EXPECT_EQ('\xFF', buf[5]); buf 1961 url/url_canon_unittest.cc base::char16 buf[6]; buf 1964 url/url_canon_unittest.cc memset(buf, fill_mem, sizeof(buf)); buf 1965 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itow_s(12, buf, sizeof(buf) / 2 - 1, 10)); buf 1966 url/url_canon_unittest.cc EXPECT_EQ(WStringToUTF16(L"12"), base::string16(buf)); buf 1967 url/url_canon_unittest.cc EXPECT_EQ(fill_char, buf[3]); buf 1970 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itow_s(1234, buf, sizeof(buf) / 2 - 1, 10)); buf 1971 url/url_canon_unittest.cc EXPECT_EQ(WStringToUTF16(L"1234"), base::string16(buf)); buf 1972 url/url_canon_unittest.cc EXPECT_EQ(fill_char, buf[5]); buf 1974 url/url_canon_unittest.cc memset(buf, fill_mem, sizeof(buf)); buf 1975 url/url_canon_unittest.cc EXPECT_EQ(EINVAL, url_canon::_itow_s(12345, buf, sizeof(buf) / 2 - 1, 10)); buf 1976 url/url_canon_unittest.cc EXPECT_EQ(fill_char, buf[5]); // should never write to this location buf 1979 url/url_canon_unittest.cc memset(buf, fill_mem, sizeof(buf)); buf 1980 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itow_s(12, buf, 10)); buf 1981 url/url_canon_unittest.cc EXPECT_EQ(WStringToUTF16(L"12"), base::string16(buf)); buf 1982 url/url_canon_unittest.cc EXPECT_EQ(fill_char, buf[3]); buf 1984 url/url_canon_unittest.cc memset(buf, fill_mem, sizeof(buf)); buf 1985 url/url_canon_unittest.cc EXPECT_EQ(0, url_canon::_itow_s(12345, buf, 10)); buf 1986 url/url_canon_unittest.cc EXPECT_EQ(WStringToUTF16(L"12345"), base::string16(buf)); buf 1988 url/url_canon_unittest.cc EXPECT_EQ(EINVAL, url_canon::_itow_s(123456, buf, 10)); buf 61 webkit/browser/appcache/appcache_disk_cache.cc virtual int Read(int index, int64 offset, net::IOBuffer* buf, int buf_len, buf 68 webkit/browser/appcache/appcache_disk_cache.cc index, static_cast<int>(offset), buf, buf_len, callback); buf 71 webkit/browser/appcache/appcache_disk_cache.cc virtual int Write(int index, int64 offset, net::IOBuffer* buf, int buf_len, buf 79 webkit/browser/appcache/appcache_disk_cache.cc index, static_cast<int>(offset), buf, buf_len, callback, kTruncate); buf 110 webkit/browser/appcache/appcache_response.cc net::IOBuffer* buf, int buf_len) { buf 113 webkit/browser/appcache/appcache_response.cc index, offset, buf, buf_len, buf 121 webkit/browser/appcache/appcache_response.cc net::IOBuffer* buf, int buf_len) { buf 124 webkit/browser/appcache/appcache_response.cc index, offset, buf, buf_len, buf 181 webkit/browser/appcache/appcache_response.cc void AppCacheResponseReader::ReadData(net::IOBuffer* buf, int buf_len, buf 185 webkit/browser/appcache/appcache_response.cc DCHECK(buf); buf 190 webkit/browser/appcache/appcache_response.cc buffer_ = buf; buf 329 webkit/browser/appcache/appcache_response.cc net::IOBuffer* buf, int buf_len, const net::CompletionCallback& callback) { buf 332 webkit/browser/appcache/appcache_response.cc DCHECK(buf); buf 337 webkit/browser/appcache/appcache_response.cc buffer_ = buf; buf 76 webkit/browser/appcache/appcache_response.h virtual int Read(int index, int64 offset, net::IOBuffer* buf, int buf_len, buf 78 webkit/browser/appcache/appcache_response.h virtual int Write(int index, int64 offset, net::IOBuffer* buf, int buf_len, buf 113 webkit/browser/appcache/appcache_response.h void ReadRaw(int index, int offset, net::IOBuffer* buf, int buf_len); buf 114 webkit/browser/appcache/appcache_response.h void WriteRaw(int index, int offset, net::IOBuffer* buf, int buf_len); buf 160 webkit/browser/appcache/appcache_response.h virtual void ReadData(net::IOBuffer* buf, int buf_len, buf 220 webkit/browser/appcache/appcache_response.h void WriteData(net::IOBuffer* buf, int buf_len, buf 52 webkit/browser/appcache/appcache_service_unittest.cc virtual void ReadData(net::IOBuffer* buf, int buf_len, buf 54 webkit/browser/appcache/appcache_service_unittest.cc buffer_ = buf; buf 63 webkit/browser/appcache/appcache_service_unittest.cc memcpy(buf->data(), data_, data_size_); buf 420 webkit/browser/appcache/appcache_url_request_job.cc bool AppCacheURLRequestJob::ReadRawData(net::IOBuffer* buf, int buf_size, buf 427 webkit/browser/appcache/appcache_url_request_job.cc buf, buf_size, base::Bind(&AppCacheURLRequestJob::OnReadComplete, buf 138 webkit/browser/appcache/appcache_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 48 webkit/browser/blob/blob_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 82 webkit/browser/blob/file_stream_reader.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 39 webkit/browser/blob/local_file_stream_reader.cc int LocalFileStreamReader::Read(net::IOBuffer* buf, int buf_len, buf 43 webkit/browser/blob/local_file_stream_reader.cc return stream_impl_->Read(buf, buf_len, callback); buf 46 webkit/browser/blob/local_file_stream_reader.cc make_scoped_refptr(buf), buf_len, callback)); buf 134 webkit/browser/blob/local_file_stream_reader.cc net::IOBuffer* buf, buf 146 webkit/browser/blob/local_file_stream_reader.cc const int read_result = stream_impl_->Read(buf, buf_len, callback); buf 35 webkit/browser/blob/local_file_stream_reader.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 57 webkit/browser/blob/local_file_stream_reader.h void DidOpenForRead(net::IOBuffer* buf, buf 37 webkit/browser/blob/local_file_stream_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf( buf 39 webkit/browser/blob/local_file_stream_reader_unittest.cc int rv = reader->Read(buf.get(), buf->size(), callback.callback()); buf 47 webkit/browser/blob/local_file_stream_reader_unittest.cc data->append(buf->data(), rv); buf 245 webkit/browser/blob/local_file_stream_reader_unittest.cc scoped_refptr<net::IOBufferWithSize> buf( buf 247 webkit/browser/blob/local_file_stream_reader_unittest.cc int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); buf 57 webkit/browser/fileapi/file_stream_writer.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 37 webkit/browser/fileapi/file_system_dir_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 42 webkit/browser/fileapi/file_system_file_stream_reader.cc net::IOBuffer* buf, int buf_len, buf 46 webkit/browser/fileapi/file_system_file_stream_reader.cc int rv = reader->Read(buf, buf_len, callback); buf 71 webkit/browser/fileapi/file_system_file_stream_reader.cc net::IOBuffer* buf, int buf_len, buf 74 webkit/browser/fileapi/file_system_file_stream_reader.cc return local_file_reader_->Read(buf, buf_len, callback); buf 77 webkit/browser/fileapi/file_system_file_stream_reader.cc make_scoped_refptr(buf), buf_len, callback), buf 41 webkit/browser/fileapi/file_system_file_stream_reader.h virtual int Read(net::IOBuffer* buf, int buf_len, buf 45 webkit/browser/fileapi/file_system_url_request_job.h virtual bool ReadRawData(net::IOBuffer* buf, buf 45 webkit/browser/fileapi/local_file_stream_writer.cc int LocalFileStreamWriter::Write(net::IOBuffer* buf, int buf_len, buf 52 webkit/browser/fileapi/local_file_stream_writer.cc int result = InitiateWrite(buf, buf_len, callback); buf 60 webkit/browser/fileapi/local_file_stream_writer.cc make_scoped_refptr(buf), buf_len, callback)); buf 191 webkit/browser/fileapi/local_file_stream_writer.cc net::IOBuffer* buf, int buf_len, buf 195 webkit/browser/fileapi/local_file_stream_writer.cc int result = InitiateWrite(buf, buf_len, callback); buf 203 webkit/browser/fileapi/local_file_stream_writer.cc net::IOBuffer* buf, int buf_len, buf 208 webkit/browser/fileapi/local_file_stream_writer.cc return stream_impl_->Write(buf, buf_len, buf 34 webkit/browser/fileapi/local_file_stream_writer.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 64 webkit/browser/fileapi/local_file_stream_writer.h void ReadyToWrite(net::IOBuffer* buf, int buf_len, buf 68 webkit/browser/fileapi/local_file_stream_writer.h int InitiateWrite(net::IOBuffer* buf, int buf_len, buf 60 webkit/browser/fileapi/sandbox_database_test_helper.cc std::vector<char> buf(size); buf 61 webkit/browser/fileapi/sandbox_database_test_helper.cc int read_size = file.Read(offset, vector_as_array(&buf), buf.size()); buf 63 webkit/browser/fileapi/sandbox_database_test_helper.cc EXPECT_GE(buf.size(), static_cast<size_t>(read_size)); buf 64 webkit/browser/fileapi/sandbox_database_test_helper.cc buf.resize(read_size); buf 66 webkit/browser/fileapi/sandbox_database_test_helper.cc std::transform(buf.begin(), buf.end(), buf.begin(), buf 69 webkit/browser/fileapi/sandbox_database_test_helper.cc int written_size = file.Write(offset, vector_as_array(&buf), buf.size()); buf 71 webkit/browser/fileapi/sandbox_database_test_helper.cc EXPECT_EQ(buf.size(), static_cast<size_t>(written_size)); buf 63 webkit/browser/fileapi/sandbox_file_stream_writer.cc net::IOBuffer* buf, int buf_len, buf 67 webkit/browser/fileapi/sandbox_file_stream_writer.cc return WriteInternal(buf, buf_len, callback); buf 72 webkit/browser/fileapi/sandbox_file_stream_writer.cc make_scoped_refptr(buf), buf_len, callback); buf 89 webkit/browser/fileapi/sandbox_file_stream_writer.cc net::IOBuffer* buf, int buf_len, buf 105 webkit/browser/fileapi/sandbox_file_stream_writer.cc buf, buf_len, buf 181 webkit/browser/fileapi/sandbox_file_stream_writer.cc net::IOBuffer* buf, int buf_len, buf 193 webkit/browser/fileapi/sandbox_file_stream_writer.cc const int result = WriteInternal(buf, buf_len, callback); buf 36 webkit/browser/fileapi/sandbox_file_stream_writer.h virtual int Write(net::IOBuffer* buf, int buf_len, buf 48 webkit/browser/fileapi/sandbox_file_stream_writer.h int WriteInternal(net::IOBuffer* buf, int buf_len, buf 62 webkit/browser/fileapi/sandbox_file_stream_writer.h void DidInitializeForWrite(net::IOBuffer* buf, int buf_len,