buffer_ 78 android_webview/native/input_stream_impl.cc if (!buffer_.obj()) { buffer_ 82 android_webview/native/input_stream_impl.cc buffer_.Reset(temp); buffer_ 89 android_webview/native/input_stream_impl.cc jbyteArray buffer = buffer_.obj(); buffer_ 44 android_webview/native/input_stream_impl.h base::android::ScopedJavaGlobalRef<jbyteArray> buffer_; buffer_ 25 base/async_socket_io_handler_unittest.cc : socket_(socket), buffer_(), buffer_ 37 base/async_socket_io_handler_unittest.cc return io_handler.Read(&buffer_[0], sizeof(buffer_)); buffer_ 40 base/async_socket_io_handler_unittest.cc const char* buffer() const { return &buffer_[0]; } buffer_ 61 base/async_socket_io_handler_unittest.cc char buffer_[kAsyncSocketIoTestStringLength]; buffer_ 167 base/files/file_proxy.cc buffer_(new char[bytes_to_read]), buffer_ 173 base/files/file_proxy.cc bytes_read_ = file_.Read(offset, buffer_.get(), bytes_to_read_); buffer_ 180 base/files/file_proxy.cc callback.Run(error_, buffer_.get(), bytes_read_); buffer_ 184 base/files/file_proxy.cc scoped_ptr<char[]> buffer_; buffer_ 196 base/files/file_proxy.cc buffer_(new char[bytes_to_write]), buffer_ 199 base/files/file_proxy.cc memcpy(buffer_.get(), buffer, bytes_to_write); buffer_ 203 base/files/file_proxy.cc bytes_written_ = file_.Write(offset, buffer_.get(), bytes_to_write_); buffer_ 214 base/files/file_proxy.cc scoped_ptr<char[]> buffer_; buffer_ 62 base/files/file_proxy_unittest.cc buffer_.resize(bytes_read); buffer_ 63 base/files/file_proxy_unittest.cc memcpy(&buffer_[0], data, bytes_read); buffer_ 96 base/files/file_proxy_unittest.cc std::vector<char> buffer_; buffer_ 232 base/files/file_proxy_unittest.cc EXPECT_EQ(expected_bytes, static_cast<int>(buffer_.size())); buffer_ 233 base/files/file_proxy_unittest.cc for (size_t i = 0; i < buffer_.size(); ++i) { buffer_ 234 base/files/file_proxy_unittest.cc EXPECT_EQ(expected_data[i], buffer_[i]); buffer_ 154 base/files/file_util_proxy.cc : buffer_(new char[bytes_to_read]), buffer_ 159 base/files/file_util_proxy.cc bytes_read_ = ReadPlatformFile(file, offset, buffer_.get(), bytes_to_read_); buffer_ 166 base/files/file_util_proxy.cc callback.Run(error, buffer_.get(), bytes_read_); buffer_ 171 base/files/file_util_proxy.cc scoped_ptr<char[]> buffer_; buffer_ 180 base/files/file_util_proxy.cc : buffer_(new char[bytes_to_write]), buffer_ 183 base/files/file_util_proxy.cc memcpy(buffer_.get(), buffer, bytes_to_write); buffer_ 187 base/files/file_util_proxy.cc bytes_written_ = WritePlatformFile(file, offset, buffer_.get(), buffer_ 200 base/files/file_util_proxy.cc scoped_ptr<char[]> buffer_; buffer_ 75 base/files/file_util_proxy_unittest.cc buffer_.resize(bytes_read); buffer_ 76 base/files/file_util_proxy_unittest.cc memcpy(&buffer_[0], data, bytes_read); buffer_ 114 base/files/file_util_proxy_unittest.cc std::vector<char> buffer_; buffer_ 288 base/files/file_util_proxy_unittest.cc EXPECT_EQ(expected_bytes, static_cast<int>(buffer_.size())); buffer_ 289 base/files/file_util_proxy_unittest.cc for (size_t i = 0; i < buffer_.size(); ++i) { buffer_ 290 base/files/file_util_proxy_unittest.cc EXPECT_EQ(expected_data[i], buffer_[i]); buffer_ 28 base/memory/discardable_memory_mac.cc : buffer_(0), buffer_ 34 base/memory/discardable_memory_mac.cc &buffer_, buffer_ 48 base/memory/discardable_memory_mac.cc if (buffer_) buffer_ 49 base/memory/discardable_memory_mac.cc vm_deallocate(mach_task_self(), buffer_, size_); buffer_ 53 base/memory/discardable_memory_mac.cc DCHECK_EQ(0, mprotect(reinterpret_cast<void*>(buffer_), buffer_ 58 base/memory/discardable_memory_mac.cc buffer_, buffer_ 71 base/memory/discardable_memory_mac.cc buffer_, buffer_ 74 base/memory/discardable_memory_mac.cc DCHECK_EQ(0, mprotect(reinterpret_cast<void*>(buffer_), size_, PROT_NONE)); buffer_ 80 base/memory/discardable_memory_mac.cc return reinterpret_cast<void*>(buffer_); buffer_ 84 base/memory/discardable_memory_mac.cc vm_address_t buffer_; buffer_ 117 base/memory/singleton.h return new(buffer_.void_data()) Type(); buffer_ 134 base/memory/singleton.h static base::AlignedMemory<sizeof(Type), ALIGNOF(Type)> buffer_; buffer_ 140 base/memory/singleton.h StaticMemorySingletonTraits<Type>::buffer_; buffer_ 498 base/message_loop/message_loop_unittest.cc DWORD size() { return sizeof(buffer_); } buffer_ 501 base/message_loop/message_loop_unittest.cc char buffer_[48]; buffer_ 510 base/message_loop/message_loop_unittest.cc memset(buffer_, 0, sizeof(buffer_)); buffer_ 523 base/message_loop/message_loop_unittest.cc EXPECT_FALSE(ReadFile(file_, buffer_, size(), &read, context())); buffer_ 107 base/strings/safe_sprintf.cc : buffer_(buffer), buffer_ 157 base/strings/safe_sprintf.cc buffer_[count_] = ch; buffer_ 255 base/strings/safe_sprintf.cc return buffer_ + idx; buffer_ 259 base/strings/safe_sprintf.cc char* buffer_; buffer_ 352 base/strings/safe_sprintf.cc for (char* move = buffer_ + start, *end = buffer_ + size_ - 1; buffer_ 411 base/strings/safe_sprintf.cc char* front = buffer_ + start; buffer_ 27 base/test/trace_event_analyzer_unittest.cc base::debug::TraceResultBuffer buffer_; buffer_ 32 base/test/trace_event_analyzer_unittest.cc buffer_.SetOutputCallback(output_.GetCallback()); buffer_ 40 base/test/trace_event_analyzer_unittest.cc buffer_.AddFragment(json_events_str->data()); buffer_ 47 base/test/trace_event_analyzer_unittest.cc buffer_.Start(); buffer_ 62 base/test/trace_event_analyzer_unittest.cc buffer_.Finish(); buffer_ 71 base/test/trace_event_analyzer_unittest.cc buffer_.Start(); buffer_ 72 base/test/trace_event_analyzer_unittest.cc buffer_.Finish(); buffer_ 331 base/values.cc buffer_(buffer.Pass()), buffer_ 348 base/values.cc return CreateWithCopiedBuffer(buffer_.get(), size_); buffer_ 194 base/values.h char* GetBuffer() { return buffer_.get(); } buffer_ 195 base/values.h const char* GetBuffer() const { return buffer_.get(); } buffer_ 202 base/values.h scoped_ptr<char[]> buffer_; buffer_ 13 base/win/event_trace_controller.cc memset(buffer_, 0, sizeof(buffer_)); buffer_ 16 base/win/event_trace_controller.cc prop->Wnode.BufferSize = sizeof(buffer_); buffer_ 28 base/win/event_trace_controller.cc memcpy(buffer_ + get()->LoggerNameOffset, buffer_ 39 base/win/event_trace_controller.cc memcpy(buffer_ + get()->LogFileNameOffset, buffer_ 50 base/win/event_trace_controller.h return reinterpret_cast<const wchar_t *>(buffer_ + get()->LoggerNameOffset); buffer_ 56 base/win/event_trace_controller.h return reinterpret_cast<const wchar_t*>(buffer_ + get()->LogFileNameOffset); buffer_ 78 base/win/event_trace_controller.h char buffer_[kBufSize]; buffer_ 36 cc/debug/ring_buffer.h return buffer_[BufferIndex(n)]; buffer_ 41 cc/debug/ring_buffer.h return &buffer_[BufferIndex(n)]; buffer_ 45 cc/debug/ring_buffer.h buffer_[BufferIndex(0)] = value; buffer_ 58 cc/debug/ring_buffer.h const T* operator->() const { return &buffer_.ReadBuffer(index_); } buffer_ 59 cc/debug/ring_buffer.h const T* operator*() const { return &buffer_.ReadBuffer(index_); } buffer_ 76 cc/debug/ring_buffer.h return buffer_.IsFilledIndex(index_) && !out_of_range_; buffer_ 81 cc/debug/ring_buffer.h : buffer_(buffer), buffer_ 86 cc/debug/ring_buffer.h const RingBuffer<T, kSize>& buffer_; buffer_ 114 cc/debug/ring_buffer.h T buffer_[kSize]; buffer_ 114 cc/resources/resource_provider.cc explicit IdentityAllocator(void* buffer) : buffer_(buffer) {} buffer_ 116 cc/resources/resource_provider.cc dst->setPixels(buffer_); buffer_ 121 cc/resources/resource_provider.cc void* buffer_; buffer_ 174 chrome/browser/chromeos/drive/drive_file_stream_reader.cc DCHECK(!buffer_.get()); buffer_ 199 chrome/browser/chromeos/drive/drive_file_stream_reader.cc buffer_ = buffer; buffer_ 228 chrome/browser/chromeos/drive/drive_file_stream_reader.cc if (!buffer_.get()) { buffer_ 233 chrome/browser/chromeos/drive/drive_file_stream_reader.cc int result = ReadInternal(&pending_data_, buffer_.get(), buffer_length_); buffer_ 237 chrome/browser/chromeos/drive/drive_file_stream_reader.cc buffer_ = NULL; buffer_ 261 chrome/browser/chromeos/drive/drive_file_stream_reader.cc buffer_ = NULL; buffer_ 116 chrome/browser/chromeos/drive/drive_file_stream_reader.h scoped_refptr<net::IOBuffer> buffer_; buffer_ 184 chrome/browser/extensions/api/hid/hid_api.cc buffer_ = new net::IOBufferWithSize(parameters_->size); buffer_ 186 chrome/browser/extensions/api/hid/hid_api.cc buffer_, base::Bind(&HidReceiveFunction::OnFinished, this)); buffer_ 195 chrome/browser/extensions/api/hid/hid_api.cc SetResult(base::BinaryValue::CreateWithCopiedBuffer(buffer_->data(), bytes)); buffer_ 252 chrome/browser/extensions/api/hid/hid_api.cc buffer_ = new net::IOBufferWithSize(parameters_->size); buffer_ 255 chrome/browser/extensions/api/hid/hid_api.cc buffer_, buffer_ 265 chrome/browser/extensions/api/hid/hid_api.cc SetResult(base::BinaryValue::CreateWithCopiedBuffer(buffer_->data(), bytes)); buffer_ 120 chrome/browser/extensions/api/hid/hid_api.h scoped_refptr<net::IOBufferWithSize> buffer_; buffer_ 164 chrome/browser/extensions/api/hid/hid_api.h scoped_refptr<net::IOBufferWithSize> buffer_; buffer_ 335 chrome/browser/safe_browsing/prefix_set.cc while (!buffer_.empty()) { buffer_ 350 chrome/browser/safe_browsing/prefix_set.cc SBPrefix prev_prefix = buffer_[0]; buffer_ 355 chrome/browser/safe_browsing/prefix_set.cc for (i = 1; i < buffer_.size() && run_pos < PrefixSet::kMaxRun; ++i) { buffer_ 358 chrome/browser/safe_browsing/prefix_set.cc DCHECK_GT(buffer_[i], prev_prefix); buffer_ 359 chrome/browser/safe_browsing/prefix_set.cc const unsigned delta = buffer_[i] - prev_prefix; buffer_ 370 chrome/browser/safe_browsing/prefix_set.cc prev_prefix = buffer_[i]; buffer_ 372 chrome/browser/safe_browsing/prefix_set.cc prefix_set_->AddRun(buffer_[0], run, run + run_pos); buffer_ 373 chrome/browser/safe_browsing/prefix_set.cc buffer_.erase(buffer_.begin(), buffer_.begin() + i); buffer_ 379 chrome/browser/safe_browsing/prefix_set.cc if (buffer_.empty()) { buffer_ 384 chrome/browser/safe_browsing/prefix_set.cc if (buffer_.back() == prefix) buffer_ 387 chrome/browser/safe_browsing/prefix_set.cc DCHECK_LT(buffer_.back(), prefix); buffer_ 389 chrome/browser/safe_browsing/prefix_set.cc buffer_.push_back(prefix); buffer_ 393 chrome/browser/safe_browsing/prefix_set.cc if (buffer_.size() > PrefixSet::kMaxRun + 2) buffer_ 140 chrome/browser/safe_browsing/prefix_set.h std::vector<SBPrefix> buffer_; buffer_ 45 chrome/browser/sessions/session_backend.cc buffer_(SessionBackend::kFileReadBufferSize, 0), buffer_ 74 chrome/browser/sessions/session_backend.cc std::string buffer_; buffer_ 131 chrome/browser/sessions/session_backend.cc memcpy(&command_size, &(buffer_[buffer_position_]), sizeof(command_size)); buffer_ 143 chrome/browser/sessions/session_backend.cc if (command_size > buffer_.size()) buffer_ 144 chrome/browser/sessions/session_backend.cc buffer_.resize((command_size / 1024 + 1) * 1024, 0); buffer_ 151 chrome/browser/sessions/session_backend.cc const id_type command_id = buffer_[buffer_position_]; buffer_ 158 chrome/browser/sessions/session_backend.cc &(buffer_[buffer_position_ + sizeof(id_type)]), buffer_ 169 chrome/browser/sessions/session_backend.cc memmove(&(buffer_[0]), &(buffer_[buffer_position_]), available_count_); buffer_ 172 chrome/browser/sessions/session_backend.cc DCHECK(buffer_position_ + available_count_ < buffer_.size()); buffer_ 173 chrome/browser/sessions/session_backend.cc int to_read = static_cast<int>(buffer_.size() - available_count_); buffer_ 174 chrome/browser/sessions/session_backend.cc int read_count = file_->ReadAtCurrentPos(&(buffer_[available_count_]), buffer_ 36 chrome/common/partial_circular_buffer_unittest.cc buffer_.reset(new uint8[buffer_header_size_ + sizeof(kOutputRefDataWrap)]); buffer_ 41 chrome/common/partial_circular_buffer_unittest.cc buffer_.get(), buffer_ 54 chrome/common/partial_circular_buffer_unittest.cc buffer_.get(), buffer_header_size_ + sizeof(kOutputRefDataWrap))); buffer_ 60 chrome/common/partial_circular_buffer_unittest.cc scoped_ptr<uint8[]> buffer_; buffer_ 76 chrome/installer/mini_installer/mini_string.h buffer_[kCapacity] = L'\0'; // We always reserve 1 more than asked for. buffer_ 90 chrome/installer/mini_installer/mini_string.h return buffer_; buffer_ 94 chrome/installer/mini_installer/mini_string.h return SafeStrCopy(buffer_, kCapacity, str); buffer_ 98 chrome/installer/mini_installer/mini_string.h return SafeStrCat(buffer_, kCapacity, str); buffer_ 102 chrome/installer/mini_installer/mini_string.h buffer_[0] = L'\0'; buffer_ 106 chrome/installer/mini_installer/mini_string.h return SafeStrLen(buffer_, kCapacity); buffer_ 111 chrome/installer/mini_installer/mini_string.h return SearchStringI(buffer_, find); buffer_ 116 chrome/installer/mini_installer/mini_string.h return lstrcmpiW(buffer_, str); buffer_ 121 chrome/installer/mini_installer/mini_string.h return lstrcmpW(buffer_, str); buffer_ 130 chrome/installer/mini_installer/mini_string.h buffer_[location] = L'\0'; buffer_ 137 chrome/installer/mini_installer/mini_string.h wchar_t buffer_[kCapacity + 1]; buffer_ 13 chrome/renderer/net/predictor_queue.cc : buffer_(new char[size + 2]), buffer_ 18 chrome/renderer/net/predictor_queue.cc buffer_[buffer_sentinel_] = '\0'; // Guard byte to help reading data. buffer_ 45 chrome/renderer/net/predictor_queue.cc 0 == strncmp(source, &buffer_[readable_], unsigned_length) && buffer_ 46 chrome/renderer/net/predictor_queue.cc '\0' == buffer_[readable_ + unsigned_length]) { buffer_ 73 chrome/renderer/net/predictor_queue.cc std::memcpy(&buffer_[dest], source, space_till_wrap); buffer_ 77 chrome/renderer/net/predictor_queue.cc DCHECK(static_cast<size_t>(space_till_wrap) == strlen(&buffer_[dest])); buffer_ 85 chrome/renderer/net/predictor_queue.cc std::memcpy(&buffer_[dest], source, length); buffer_ 87 chrome/renderer/net/predictor_queue.cc buffer_[dest + length] = '\0'; // We need termination in our buffer. buffer_ 89 chrome/renderer/net/predictor_queue.cc DCHECK(static_cast<size_t>(length) == strlen(&buffer_[dest])); buffer_ 108 chrome/renderer/net/predictor_queue.cc DCHECK('\0' == buffer_[buffer_sentinel_]); buffer_ 115 chrome/renderer/net/predictor_queue.cc (*out_string) = &buffer_[readable_]; buffer_ 122 chrome/renderer/net/predictor_queue.cc out_string->append(&buffer_[0]); // Fragment at start of buffer. buffer_ 129 chrome/renderer/net/predictor_queue.cc DCHECK('\0' == buffer_[terminal_null]); buffer_ 150 chrome/renderer/net/predictor_queue.cc '\0' == buffer_[buffer_sentinel_] && buffer_ 73 chrome/renderer/net/predictor_queue.h const scoped_ptr<char[]> buffer_; // Circular buffer, plus extra char ('\0'). buffer_ 32 chrome/renderer/net/predictor_queue_unittest.cc DnsQueue* buffer_; buffer_ 41 chrome/renderer/net/predictor_queue_unittest.cc : buffer_(&buffer), buffer_ 52 chrome/renderer/net/predictor_queue_unittest.cc buffer_->Push(value.str().c_str(), value.str().size()) : buffer_ 53 chrome/renderer/net/predictor_queue_unittest.cc buffer_->Push(value.str()); buffer_ 61 chrome/renderer/net/predictor_queue_unittest.cc if (buffer_->Pop(&string)) { buffer_ 9 chrome/renderer/static_v8_external_string_resource.cc : buffer_(buffer) { buffer_ 16 chrome/renderer/static_v8_external_string_resource.cc return buffer_.data(); buffer_ 20 chrome/renderer/static_v8_external_string_resource.cc return buffer_.length(); buffer_ 25 chrome/renderer/static_v8_external_string_resource.h base::StringPiece buffer_; buffer_ 122 chrome/test/chromedriver/util.cc size_t next = buffer_.length(); buffer_ 123 chrome/test/chromedriver/util.cc buffer_.resize(next + size); buffer_ 124 chrome/test/chromedriver/util.cc memcpy(&buffer_[next], bytes, size); buffer_ 127 chrome/test/chromedriver/util.cc const std::string& buffer() const { return buffer_; } buffer_ 130 chrome/test/chromedriver/util.cc std::string buffer_; buffer_ 25 chrome/test/logging/win/mof_data_parser_unittest.cc std::vector<uint8> buffer_; buffer_ 29 chrome/test/logging/win/mof_data_parser_unittest.cc buffer_.assign(sizeof(EVENT_TRACE) + size, 0); buffer_ 30 chrome/test/logging/win/mof_data_parser_unittest.cc EVENT_TRACE* event = reinterpret_cast<EVENT_TRACE*>(&buffer_[0]); buffer_ 32 chrome/test/logging/win/mof_data_parser_unittest.cc event->MofData = &buffer_[sizeof(EVENT_TRACE)]; buffer_ 89 chrome/test/logging/win/mof_data_parser_unittest.cc const void* const pointers[] = { this, &buffer_ }; buffer_ 62 components/nacl/loader/nacl_validation_query.cc CHECK(buffer_length_ <= sizeof(buffer_)); buffer_ 66 components/nacl/loader/nacl_validation_query.cc if (buffer_length_ + kDigestLength > sizeof(buffer_)) { buffer_ 73 components/nacl/loader/nacl_validation_query.cc reinterpret_cast<unsigned char*>(buffer_ + buffer_length_), buffer_ 90 components/nacl/loader/nacl_validation_query.cc CHECK(buffer_length_ <= sizeof(buffer_)); buffer_ 94 components/nacl/loader/nacl_validation_query.cc return db_->QueryKnownToValidate(std::string(buffer_, buffer_length_)); buffer_ 101 components/nacl/loader/nacl_validation_query.cc db_->SetKnownToValidate(std::string(buffer_, buffer_length_)); buffer_ 111 components/nacl/loader/nacl_validation_query.cc CHECK(hasher_.Sign(base::StringPiece(buffer_, buffer_length_), temp, buffer_ 113 components/nacl/loader/nacl_validation_query.cc memcpy(buffer_, temp, kDigestLength); buffer_ 83 components/nacl/loader/nacl_validation_query.h char buffer_[kDigestLength * 4]; buffer_ 100 content/browser/device_orientation/data_fetcher_shared_memory_win.cc DeviceOrientationHardwareBuffer* const buffer) : buffer_(buffer) {} buffer_ 116 content/browser/device_orientation/data_fetcher_shared_memory_win.cc if (buffer_) { buffer_ 117 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteBegin(); buffer_ 118 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.alpha = alpha; buffer_ 119 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasAlpha = has_alpha; buffer_ 120 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.beta = beta; buffer_ 121 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasBeta = has_beta; buffer_ 122 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.gamma = gamma; buffer_ 123 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasGamma = has_gamma; buffer_ 124 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.absolute = true; buffer_ 125 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasAbsolute = has_alpha || has_beta || has_gamma; buffer_ 126 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.allAvailableSensorsAreActive = true; buffer_ 127 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteEnd(); buffer_ 134 content/browser/device_orientation/data_fetcher_shared_memory_win.cc DeviceOrientationHardwareBuffer* const buffer_; buffer_ 143 content/browser/device_orientation/data_fetcher_shared_memory_win.cc : buffer_(buffer) {} buffer_ 172 content/browser/device_orientation/data_fetcher_shared_memory_win.cc if (buffer_) { buffer_ 173 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteBegin(); buffer_ 174 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.accelerationIncludingGravityX = buffer_ 176 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasAccelerationIncludingGravityX = buffer_ 178 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.accelerationIncludingGravityY = buffer_ 180 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasAccelerationIncludingGravityY = buffer_ 182 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.accelerationIncludingGravityZ = buffer_ 184 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasAccelerationIncludingGravityZ = buffer_ 188 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.allAvailableSensorsAreActive = true; buffer_ 189 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteEnd(); buffer_ 203 content/browser/device_orientation/data_fetcher_shared_memory_win.cc if (buffer_) { buffer_ 204 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteBegin(); buffer_ 205 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.rotationRateAlpha = alpha; buffer_ 206 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasRotationRateAlpha = has_alpha; buffer_ 207 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.rotationRateBeta = beta; buffer_ 208 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasRotationRateBeta = has_beta; buffer_ 209 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.rotationRateGamma = gamma; buffer_ 210 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.hasRotationRateGamma = has_gamma; buffer_ 211 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->data.allAvailableSensorsAreActive = true; buffer_ 212 content/browser/device_orientation/data_fetcher_shared_memory_win.cc buffer_->seqlock.WriteEnd(); buffer_ 220 content/browser/device_orientation/data_fetcher_shared_memory_win.cc DeviceMotionHardwareBuffer* const buffer_; buffer_ 68 content/browser/devtools/tethering_handler.cc buffer_ = new net::IOBuffer(kBufferSize); buffer_ 74 content/browser/devtools/tethering_handler.cc buffer_.get(), buffer_ 104 content/browser/devtools/tethering_handler.cc accepted_socket_->Send(buffer_->data(), result); buffer_ 106 content/browser/devtools/tethering_handler.cc buffer_.get(), buffer_ 163 content/browser/devtools/tethering_handler.cc scoped_refptr<net::IOBuffer> buffer_; buffer_ 130 content/browser/loader/async_resource_handler.cc buffer_->RecycleLeastRecentlyAllocated(); buffer_ 131 content/browser/loader/async_resource_handler.cc if (buffer_->CanAllocate()) buffer_ 249 content/browser/loader/async_resource_handler.cc DCHECK(buffer_->CanAllocate()); buffer_ 250 content/browser/loader/async_resource_handler.cc char* memory = buffer_->Allocate(&allocation_size_); buffer_ 253 content/browser/loader/async_resource_handler.cc *buf = new DependentIOBuffer(buffer_.get(), memory); buffer_ 273 content/browser/loader/async_resource_handler.cc buffer_->ShrinkLastAllocation(bytes_read); buffer_ 285 content/browser/loader/async_resource_handler.cc if (!buffer_->ShareToProcess(filter->PeerHandle(), &handle, &size)) buffer_ 292 content/browser/loader/async_resource_handler.cc int data_offset = buffer_->GetLastAllocationOffset(); buffer_ 305 content/browser/loader/async_resource_handler.cc if (!buffer_->CanAllocate()) { buffer_ 384 content/browser/loader/async_resource_handler.cc if (buffer_.get() && buffer_->IsInitialized()) buffer_ 395 content/browser/loader/async_resource_handler.cc buffer_ = new ResourceBuffer(); buffer_ 396 content/browser/loader/async_resource_handler.cc return buffer_->Initialize(kBufferSize, buffer_ 80 content/browser/loader/async_resource_handler.h scoped_refptr<ResourceBuffer> buffer_; buffer_ 97 content/browser/loader/certificate_resource_handler.cc buffer_.push_back(std::make_pair(buffer, bytes_read)); buffer_ 136 content/browser/loader/certificate_resource_handler.cc for (size_t i = 0; i < buffer_.size(); ++i) { buffer_ 137 content/browser/loader/certificate_resource_handler.cc net::IOBuffer* data = buffer_[i].first.get(); buffer_ 138 content/browser/loader/certificate_resource_handler.cc size_t data_len = buffer_[i].second; buffer_ 90 content/browser/loader/certificate_resource_handler.h ContentVector buffer_; buffer_ 44 content/browser/streams/stream_unittest.cc TestStreamReader() : buffer_(new net::GrowableIOBuffer()), completed_(false) { buffer_ 72 content/browser/streams/stream_unittest.cc size_t old_capacity = buffer_->capacity(); buffer_ 73 content/browser/streams/stream_unittest.cc buffer_->SetCapacity(old_capacity + bytes_read); buffer_ 74 content/browser/streams/stream_unittest.cc memcpy(buffer_->StartOfBuffer() + old_capacity, buffer_ 83 content/browser/streams/stream_unittest.cc scoped_refptr<net::GrowableIOBuffer> buffer() { return buffer_; } buffer_ 90 content/browser/streams/stream_unittest.cc scoped_refptr<net::GrowableIOBuffer> buffer_; buffer_ 77 content/child/ftp_directory_listing_response_delegate.cc buffer_.append(data, data_len); buffer_ 82 content/child/ftp_directory_listing_response_delegate.cc int rv = net::ParseFtpDirectoryListing(buffer_, base::Time::Now(), &entries); buffer_ 46 content/child/ftp_directory_listing_response_delegate.h std::string buffer_; buffer_ 105 content/child/web_url_loader_impl.cc if (!buffer_.empty()) buffer_ 106 content/child/web_url_loader_impl.cc buffer_.append("\r\n"); buffer_ 107 content/child/web_url_loader_impl.cc buffer_.append(name_latin1 + ": " + value_latin1); buffer_ 114 content/child/web_url_loader_impl.cc if (!buffer_.empty()) buffer_ 115 content/child/web_url_loader_impl.cc buffer_.append("\r\n"); buffer_ 116 content/child/web_url_loader_impl.cc buffer_.append("Accept: */*"); buffer_ 119 content/child/web_url_loader_impl.cc return buffer_; buffer_ 124 content/child/web_url_loader_impl.cc std::string buffer_; buffer_ 67 content/renderer/device_orientation/device_motion_event_pump_unittest.cc buffer_ = static_cast<DeviceMotionHardwareBuffer*>(shared_memory_.memory()); buffer_ 68 content/renderer/device_orientation/device_motion_event_pump_unittest.cc ASSERT_NE(null_buffer, buffer_); buffer_ 69 content/renderer/device_orientation/device_motion_event_pump_unittest.cc memset(buffer_, 0, sizeof(DeviceMotionHardwareBuffer)); buffer_ 75 content/renderer/device_orientation/device_motion_event_pump_unittest.cc blink::WebDeviceMotionData& data = buffer_->data; buffer_ 89 content/renderer/device_orientation/device_motion_event_pump_unittest.cc DeviceMotionHardwareBuffer* buffer_; buffer_ 71 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc buffer_ = static_cast<DeviceOrientationHardwareBuffer*>( buffer_ 73 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc memset(buffer_, 0, sizeof(DeviceOrientationHardwareBuffer)); buffer_ 78 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc blink::WebDeviceOrientationData& data = buffer_->data; buffer_ 89 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc blink::WebDeviceOrientationData& data = buffer_->data; buffer_ 97 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc DeviceOrientationHardwareBuffer* buffer_; buffer_ 177 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc buffer_->data.alpha = buffer_ 195 content/renderer/device_orientation/device_orientation_event_pump_unittest.cc buffer_->data.alpha = buffer_ 169 content/renderer/media/android/audio_decoder_android.cc const uint8_t* buffer_; buffer_ 186 content/renderer/media/android/audio_decoder_android.cc : buffer_(encoded_data), buffer_ 191 content/renderer/media/android/audio_decoder_android.cc if (buffer_ + data_size > buffer_) buffer_ 192 content/renderer/media/android/audio_decoder_android.cc buffer_end_ = buffer_ + data_size; buffer_ 239 content/renderer/media/android/audio_decoder_android.cc if (buffer_ + kChunkIDLength + kChunkSizeLength >= buffer_end_) buffer_ 242 content/renderer/media/android/audio_decoder_android.cc memcpy(chunk_id_, buffer_, kChunkIDLength); buffer_ 244 content/renderer/media/android/audio_decoder_android.cc chunk_size_ = ReadUnsignedInteger(buffer_ + kChunkIDLength, kChunkSizeLength); buffer_ 261 content/renderer/media/android/audio_decoder_android.cc uint16_t audio_format = ReadUnsignedInteger(buffer_, 2); buffer_ 268 content/renderer/media/android/audio_decoder_android.cc number_of_channels_ = ReadUnsignedInteger(buffer_ + 2, 2); buffer_ 269 content/renderer/media/android/audio_decoder_android.cc sample_rate_ = ReadUnsignedInteger(buffer_ + 4, 4); buffer_ 270 content/renderer/media/android/audio_decoder_android.cc unsigned bits_per_sample = ReadUnsignedInteger(buffer_ + 14, 2); buffer_ 319 content/renderer/media/android/audio_decoder_android.cc int16_t sample = ReadPCMSample(buffer_); buffer_ 321 content/renderer/media/android/audio_decoder_android.cc buffer_ += bytes_per_sample_; buffer_ 332 content/renderer/media/android/audio_decoder_android.cc if (buffer_ + kMinimumWAVLength > buffer_end_) { buffer_ 343 content/renderer/media/android/audio_decoder_android.cc buffer_ += kChunkIDLength + kChunkSizeLength; buffer_ 346 content/renderer/media/android/audio_decoder_android.cc memcpy(chunk_id_, buffer_, kFormatFieldLength); buffer_ 352 content/renderer/media/android/audio_decoder_android.cc buffer_ += kFormatFieldLength; buffer_ 356 content/renderer/media/android/audio_decoder_android.cc while (buffer_ < buffer_end_) { buffer_ 363 content/renderer/media/android/audio_decoder_android.cc buffer_ += kChunkIDLength + kChunkSizeLength; buffer_ 366 content/renderer/media/android/audio_decoder_android.cc if (buffer_ + chunk_size_ > buffer_end_) { buffer_ 385 content/renderer/media/android/audio_decoder_android.cc buffer_ += chunk_size_; buffer_ 185 content/renderer/media/buffered_data_source_unittest.cc data_source_->Read(position, kDataSize, buffer_, buffer_ 220 content/renderer/media/buffered_data_source_unittest.cc uint8 buffer_[kDataSize]; buffer_ 106 content/renderer/media/buffered_resource_loader.cc : buffer_(kMinBufferCapacity, kMinBufferCapacity), buffer_ 283 content/renderer/media/buffered_resource_loader.cc int advance = std::min(first_offset_, buffer_.forward_bytes()); buffer_ 284 content/renderer/media/buffered_resource_loader.cc bool ret = buffer_.Seek(advance); buffer_ 296 content/renderer/media/buffered_resource_loader.cc if (last_offset_ > buffer_.forward_capacity()) { buffer_ 297 content/renderer/media/buffered_resource_loader.cc saved_forward_capacity_ = buffer_.forward_capacity(); buffer_ 298 content/renderer/media/buffered_resource_loader.cc buffer_.set_forward_capacity(last_offset_); buffer_ 448 content/renderer/media/buffered_resource_loader.cc buffer_.Append(reinterpret_cast<const uint8*>(data), data_length); buffer_ 458 content/renderer/media/buffered_resource_loader.cc if (buffer_.forward_bytes() > buffer_.forward_capacity()) { buffer_ 459 content/renderer/media/buffered_resource_loader.cc int excess = buffer_.forward_bytes() - buffer_.forward_capacity(); buffer_ 460 content/renderer/media/buffered_resource_loader.cc bool success = buffer_.Seek(excess); buffer_ 466 content/renderer/media/buffered_resource_loader.cc progress_cb_.Run(offset_ + buffer_.forward_bytes() - 1); buffer_ 497 content/renderer/media/buffered_resource_loader.cc instance_size_ = offset_ + buffer_.forward_bytes(); buffer_ 597 content/renderer/media/buffered_resource_loader.cc buffer_.set_backward_capacity(backward_capacity); buffer_ 598 content/renderer/media/buffered_resource_loader.cc buffer_.set_forward_capacity(forward_capacity); buffer_ 622 content/renderer/media/buffered_resource_loader.cc DCHECK(read_cb_.is_null() || last_offset_ > buffer_.forward_bytes()) buffer_ 627 content/renderer/media/buffered_resource_loader.cc return buffer_.forward_bytes() >= buffer_.forward_capacity(); buffer_ 635 content/renderer/media/buffered_resource_loader.cc if (first_offset_ < 0 && (first_offset_ + buffer_.backward_bytes()) < 0) buffer_ 639 content/renderer/media/buffered_resource_loader.cc if (first_offset_ >= buffer_.forward_bytes()) buffer_ 649 content/renderer/media/buffered_resource_loader.cc if (last_offset_ > buffer_.forward_bytes()) buffer_ 657 content/renderer/media/buffered_resource_loader.cc if (first_offset_ < 0 && (first_offset_ + buffer_.backward_bytes()) < 0) buffer_ 661 content/renderer/media/buffered_resource_loader.cc if ((first_offset_ - buffer_.forward_bytes()) >= kForwardWaitThreshold) buffer_ 674 content/renderer/media/buffered_resource_loader.cc bool ret = buffer_.Seek(first_offset_); buffer_ 678 content/renderer/media/buffered_resource_loader.cc int read = buffer_.Read(read_buffer_, read_size_); buffer_ 755 content/renderer/media/buffered_resource_loader.cc buffer_.set_forward_capacity(saved_forward_capacity_); buffer_ 780 content/renderer/media/buffered_resource_loader.cc offset_ - buffer_.backward_bytes(), buffer_ 782 content/renderer/media/buffered_resource_loader.cc offset_ + buffer_.forward_bytes())); buffer_ 257 content/renderer/media/buffered_resource_loader.h media::SeekableBuffer buffer_; buffer_ 97 content/renderer/media/buffered_resource_loader_unittest.cc loader_->buffer_.set_forward_capacity(forward_capacity); buffer_ 98 content/renderer/media/buffered_resource_loader_unittest.cc loader_->buffer_.set_backward_capacity(backward_capacity); buffer_ 99 content/renderer/media/buffered_resource_loader_unittest.cc loader_->buffer_.Clear(); buffer_ 224 content/renderer/media/buffered_resource_loader_unittest.cc int buffered = loader_->buffer_.forward_bytes(); buffer_ 225 content/renderer/media/buffered_resource_loader_unittest.cc int capacity = loader_->buffer_.forward_capacity(); buffer_ 257 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(backward_bytes, loader_->buffer_.backward_bytes()); buffer_ 258 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(backward_capacity, loader_->buffer_.backward_capacity()); buffer_ 259 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(forward_bytes, loader_->buffer_.forward_bytes()); buffer_ 260 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(forward_capacity, loader_->buffer_.forward_capacity()); buffer_ 264 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(loader_->buffer_.backward_capacity(), buffer_ 269 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_EQ(loader_->buffer_.forward_capacity(), expected_forward_capacity); buffer_ 276 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_GE(loader_->buffer_.forward_capacity(), kMinBufferCapacity); buffer_ 277 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_GE(loader_->buffer_.backward_capacity(), kMinBufferCapacity); buffer_ 281 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_LE(loader_->buffer_.forward_capacity(), kMaxBufferCapacity); buffer_ 282 content/renderer/media/buffered_resource_loader_unittest.cc EXPECT_LE(loader_->buffer_.backward_capacity(), kMaxBufferCapacity); buffer_ 18 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc buffer_(NULL), buffer_ 24 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc base::AlignedFree(buffer_); buffer_ 105 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc captured_frame.data = buffer_; buffer_ 145 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc base::AlignedFree(buffer_); buffer_ 146 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc buffer_ = reinterpret_cast<uint8*>( buffer_ 152 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc uint8* dst_y = buffer_; buffer_ 52 content/renderer/media/webrtc/webrtc_video_capturer_adapter.h uint8* buffer_; buffer_ 26 content/renderer/pepper/host_array_buffer_var.cc : buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)), buffer_ 31 content/renderer/pepper/host_array_buffer_var.cc : buffer_(buffer), buffer_ 37 content/renderer/pepper/host_array_buffer_var.cc : buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)) { buffer_ 41 content/renderer/pepper/host_array_buffer_var.cc memcpy(buffer_.data(), s.memory(), size_in_bytes); buffer_ 52 content/renderer/pepper/host_array_buffer_var.cc return buffer_.data(); buffer_ 60 content/renderer/pepper/host_array_buffer_var.cc return buffer_.byteLength(); buffer_ 33 content/renderer/pepper/host_array_buffer_var.h blink::WebArrayBuffer& webkit_buffer() { return buffer_; } buffer_ 38 content/renderer/pepper/host_array_buffer_var.h blink::WebArrayBuffer buffer_; buffer_ 32 content/renderer/pepper/url_response_info_util.cc const std::string& buffer() const { return buffer_; } buffer_ 35 content/renderer/pepper/url_response_info_util.cc if (!buffer_.empty()) buffer_ 36 content/renderer/pepper/url_response_info_util.cc buffer_.append("\n"); buffer_ 37 content/renderer/pepper/url_response_info_util.cc buffer_.append(name.utf8()); buffer_ 38 content/renderer/pepper/url_response_info_util.cc buffer_.append(": "); buffer_ 39 content/renderer/pepper/url_response_info_util.cc buffer_.append(value.utf8()); buffer_ 43 content/renderer/pepper/url_response_info_util.cc std::string buffer_; buffer_ 42 content/renderer/shared_memory_seqlock_reader.h SharedMemorySeqLockReader() : buffer_(0) { } buffer_ 46 content/renderer/shared_memory_seqlock_reader.h DCHECK(buffer_); buffer_ 48 content/renderer/shared_memory_seqlock_reader.h return FetchFromBuffer(&buffer_->seqlock, data, temp_buffer_.get(), buffer_ 49 content/renderer/shared_memory_seqlock_reader.h &buffer_->data, sizeof(*temp_buffer_)); buffer_ 55 content/renderer/shared_memory_seqlock_reader.h buffer_ = static_cast<SharedMemorySeqLockBuffer<Data>*>(memory); buffer_ 63 content/renderer/shared_memory_seqlock_reader.h SharedMemorySeqLockBuffer<Data>* buffer_; buffer_ 186 content/test/net/url_request_slow_download_job.cc buffer_ = buf; buffer_ 206 content/test/net/url_request_slow_download_job.cc DCHECK(NULL != buffer_.get()); buffer_ 209 content/test/net/url_request_slow_download_job.cc FillBufferHelper(buffer_.get(), buffer_size_, &bytes_written); buffer_ 211 content/test/net/url_request_slow_download_job.cc buffer_ = NULL; // Release the reference. buffer_ 97 content/test/net/url_request_slow_download_job.h scoped_refptr<net::IOBuffer> buffer_; buffer_ 306 courgette/memory_allocator.h NoThrowBuffer() : buffer_(NULL), size_(0), alloc_size_(0) { buffer_ 314 courgette/memory_allocator.h if (buffer_) { buffer_ 315 courgette/memory_allocator.h alloc_.deallocate(buffer_, alloc_size_); buffer_ 316 courgette/memory_allocator.h buffer_ = NULL; buffer_ 341 courgette/memory_allocator.h if (buffer_) { buffer_ 342 courgette/memory_allocator.h memcpy(new_buffer, buffer_, size_ * sizeof(T)); buffer_ 343 courgette/memory_allocator.h alloc_.deallocate(buffer_, alloc_size_); buffer_ 345 courgette/memory_allocator.h buffer_ = new_buffer; buffer_ 376 courgette/memory_allocator.h memcpy(buffer_ + size_, data, size * sizeof(T)); buffer_ 387 courgette/memory_allocator.h buffer_[i] = init_value; buffer_ 403 courgette/memory_allocator.h return buffer_[size_ - 1]; buffer_ 407 courgette/memory_allocator.h return buffer_[size_ - 1]; buffer_ 413 courgette/memory_allocator.h return &buffer_[0]; buffer_ 419 courgette/memory_allocator.h return &buffer_[0]; buffer_ 425 courgette/memory_allocator.h return &buffer_[size_ - 1]; buffer_ 431 courgette/memory_allocator.h return &buffer_[size_ - 1]; buffer_ 436 courgette/memory_allocator.h return buffer_[index]; buffer_ 441 courgette/memory_allocator.h return buffer_[index]; buffer_ 449 courgette/memory_allocator.h return buffer_; buffer_ 458 courgette/memory_allocator.h T* buffer_; buffer_ 185 courgette/streams.cc return buffer_.append(static_cast<const char*>(data), byte_count); buffer_ 215 courgette/streams.cc bool ret = Write(other->buffer_.data(), other->buffer_.size()); buffer_ 222 courgette/streams.cc buffer_.clear(); buffer_ 141 courgette/streams.h size_t Length() const { return buffer_.size(); } buffer_ 147 courgette/streams.h return reinterpret_cast<const uint8*>(buffer_.data()); buffer_ 153 courgette/streams.h return buffer_.reserve(length + buffer_.size()); buffer_ 160 courgette/streams.h NoThrowBuffer<char> buffer_; buffer_ 67 gin/array_buffer.cc void* buffer() const { return buffer_; } buffer_ 82 gin/array_buffer.cc void* buffer_; buffer_ 104 gin/array_buffer.cc buffer_ = contents.Data(); buffer_ 116 gin/array_buffer.cc PerIsolateData::From(isolate_)->allocator()->Free(buffer_, length_); buffer_ 472 gpu/command_buffer/client/fenced_allocator_test.cc buffer_.reset(static_cast<char*>(base::AlignedAlloc( buffer_ 477 gpu/command_buffer/client/fenced_allocator_test.cc buffer_.get())); buffer_ 490 gpu/command_buffer/client/fenced_allocator_test.cc scoped_ptr<char, base::AlignedFreeDeleter> buffer_; buffer_ 500 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_LE(buffer_.get(), static_cast<char *>(pointer)); buffer_ 501 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_GE(kBufferSize, static_cast<char *>(pointer) - buffer_.get() + kSize); buffer_ 509 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_LE(buffer_.get(), pointer_char); buffer_ 510 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_GE(buffer_.get() + kBufferSize, pointer_char + kSize); buffer_ 516 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_LE(buffer_.get(), reinterpret_cast<char *>(pointer_uint)); buffer_ 517 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_GE(buffer_.get() + kBufferSize, buffer_ 105 gpu/command_buffer/client/mapped_memory_unittest.cc buffer_ = MakeBufferFromSharedMemory(shared_memory.Pass(), kBufferSize); buffer_ 107 gpu/command_buffer/client/mapped_memory_unittest.cc buffer_, buffer_ 119 gpu/command_buffer/client/mapped_memory_unittest.cc uint8* buffer_memory() { return static_cast<uint8*>(buffer_->memory()); } buffer_ 122 gpu/command_buffer/client/mapped_memory_unittest.cc scoped_refptr<gpu::Buffer> buffer_; buffer_ 137 gpu/command_buffer/client/mapped_memory_unittest.cc EXPECT_LE(buffer_->memory(), static_cast<uint8*>(pointer)); buffer_ 221 gpu/command_buffer/client/ring_buffer_test.cc buffer_.reset(new int8[kBufferSize + kBaseOffset]); buffer_ 222 gpu/command_buffer/client/ring_buffer_test.cc buffer_start_ = buffer_.get() + kBaseOffset; buffer_ 235 gpu/command_buffer/client/ring_buffer_test.cc scoped_ptr<int8[]> buffer_; buffer_ 61 gpu/command_buffer/client/transfer_buffer.cc buffer_ = NULL; buffer_ 70 gpu/command_buffer/client/transfer_buffer.cc DCHECK(buffer_id_ == -1 || buffer_); buffer_ 93 gpu/command_buffer/client/transfer_buffer.cc buffer_ = buffer; buffer_ 98 gpu/command_buffer/client/transfer_buffer.cc buffer_->size() - result_size_, buffer_ 100 gpu/command_buffer/client/transfer_buffer.cc static_cast<char*>(buffer_->memory()) + result_size_)); buffer_ 102 gpu/command_buffer/client/transfer_buffer.cc result_buffer_ = buffer_->memory(); buffer_ 151 gpu/command_buffer/client/transfer_buffer.cc if (usable_ && (!HaveBuffer() || needed_buffer_size > buffer_->size())) { buffer_ 215 gpu/command_buffer/client/transfer_buffer.cc if (buffer_) { buffer_ 216 gpu/command_buffer/client/transfer_buffer.cc transfer_buffer_->FreePendingToken(buffer_, helper_->InsertToken()); buffer_ 217 gpu/command_buffer/client/transfer_buffer.cc buffer_ = NULL; buffer_ 229 gpu/command_buffer/client/transfer_buffer.cc buffer_ = transfer_buffer_->AllocUpTo(new_size, &size_); buffer_ 147 gpu/command_buffer/client/transfer_buffer.h scoped_refptr<gpu::Buffer> buffer_; buffer_ 169 gpu/command_buffer/client/transfer_buffer.h : buffer_(NULL), buffer_ 181 gpu/command_buffer/client/transfer_buffer.h return buffer_ != NULL; buffer_ 193 gpu/command_buffer/client/transfer_buffer.h return transfer_buffer_->GetOffset(buffer_); buffer_ 197 gpu/command_buffer/client/transfer_buffer.h return buffer_; buffer_ 205 gpu/command_buffer/client/transfer_buffer.h void* buffer_; buffer_ 23 gpu/command_buffer/common/gles2_cmd_format_test.cc memset(buffer_, kInitialValue, sizeof(buffer_)); buffer_ 31 gpu/command_buffer/common/gles2_cmd_format_test.cc return static_cast<T*>(static_cast<void*>(&buffer_)); buffer_ 38 gpu/command_buffer/common/gles2_cmd_format_test.cc EXPECT_LT(actual_size, sizeof(buffer_)); buffer_ 41 gpu/command_buffer/common/gles2_cmd_format_test.cc EXPECT_EQ(kInitialValue, buffer_[written_size]); buffer_ 42 gpu/command_buffer/common/gles2_cmd_format_test.cc EXPECT_NE(kInitialValue, buffer_[written_size - 1]); buffer_ 51 gpu/command_buffer/common/gles2_cmd_format_test.cc unsigned char buffer_[1024]; buffer_ 12 gpu/command_buffer/service/async_pixel_transfer_delegate.cc : buffer_(buffer), data_offset_(data_offset), data_size_(data_size) { buffer_ 13 gpu/command_buffer/service/async_pixel_transfer_delegate.cc DCHECK(buffer_); buffer_ 14 gpu/command_buffer/service/async_pixel_transfer_delegate.cc DCHECK(buffer_->memory()); buffer_ 55 gpu/command_buffer/service/async_pixel_transfer_delegate.h scoped_refptr<Buffer> buffer() const { return buffer_; } buffer_ 59 gpu/command_buffer/service/async_pixel_transfer_delegate.h return buffer_->GetDataAddress(data_offset_, data_size_); buffer_ 63 gpu/command_buffer/service/async_pixel_transfer_delegate.h scoped_refptr<Buffer> buffer_; buffer_ 17 gpu/command_buffer/service/cmd_parser.cc buffer_(NULL), buffer_ 36 gpu/command_buffer/service/cmd_parser.cc buffer_ = reinterpret_cast<CommandBufferEntry*>(buffer_begin); buffer_ 52 gpu/command_buffer/service/cmd_parser.cc CommandHeader header = buffer_[get].value_header; buffer_ 67 gpu/command_buffer/service/cmd_parser.cc header.command, header.size - 1, buffer_ + get); buffer_ 69 gpu/command_buffer/service/cmd_parser.h CommandBufferEntry* buffer_; buffer_ 29 gpu/command_buffer/service/cmd_parser_test.cc buffer_.reset(new CommandBufferEntry[buffer_entry_count_]); buffer_ 59 gpu/command_buffer/service/cmd_parser_test.cc CommandBufferEntry *buffer() { return buffer_.get(); } buffer_ 63 gpu/command_buffer/service/cmd_parser_test.cc scoped_ptr<CommandBufferEntry[]> buffer_; buffer_ 86 gpu/command_buffer/service/common_decoder_unittest.cc buffer_ = MakeBufferFromSharedMemory(shared_memory.Pass(), kBufferSize); buffer_ 93 gpu/command_buffer/service/common_decoder_unittest.cc return buffer_; buffer_ 100 gpu/command_buffer/service/common_decoder_unittest.cc int8* buffer_memory = static_cast<int8*>(buffer_->memory()); buffer_ 105 gpu/command_buffer/service/common_decoder_unittest.cc int8* buffer_memory = static_cast<int8*>(buffer_->memory()); buffer_ 146 gpu/command_buffer/service/common_decoder_unittest.cc scoped_refptr<gpu::Buffer> buffer_; buffer_ 38 gpu/command_buffer/service/gpu_scheduler_unittest.cc buffer_ = static_cast<int32*>(shared_memory->memory()); buffer_ 41 gpu/command_buffer/service/gpu_scheduler_unittest.cc memset(buffer_, 0, kRingBufferSize); buffer_ 76 gpu/command_buffer/service/gpu_scheduler_unittest.cc int32* buffer_; buffer_ 113 gpu/command_buffer/service/gpu_scheduler_unittest.cc CommandHeader* header = reinterpret_cast<CommandHeader*>(&buffer_[0]); buffer_ 116 gpu/command_buffer/service/gpu_scheduler_unittest.cc buffer_[1] = 123; buffer_ 125 gpu/command_buffer/service/gpu_scheduler_unittest.cc EXPECT_CALL(*decoder_, DoCommand(7, 1, &buffer_[0])) buffer_ 135 gpu/command_buffer/service/gpu_scheduler_unittest.cc CommandHeader* header = reinterpret_cast<CommandHeader*>(&buffer_[0]); buffer_ 138 gpu/command_buffer/service/gpu_scheduler_unittest.cc buffer_[1] = 123; buffer_ 148 gpu/command_buffer/service/gpu_scheduler_unittest.cc EXPECT_CALL(*decoder_, DoCommand(7, 1, &buffer_[0])) buffer_ 152 gpu/command_buffer/service/gpu_scheduler_unittest.cc EXPECT_CALL(*decoder_, DoCommand(8, 0, &buffer_[2])) buffer_ 160 gpu/command_buffer/service/gpu_scheduler_unittest.cc CommandHeader* header = reinterpret_cast<CommandHeader*>(&buffer_[0]); buffer_ 170 gpu/command_buffer/service/gpu_scheduler_unittest.cc EXPECT_CALL(*decoder_, DoCommand(7, 0, &buffer_[0])) buffer_ 198 gpu/command_buffer/service/gpu_scheduler_unittest.cc EXPECT_EQ(&buffer_[0], scheduler_->GetSharedMemoryBuffer(7)->memory()); buffer_ 42 gpu/command_buffer/service/texture_definition.cc scoped_refptr<NativeImageBuffer> buffer_; buffer_ 48 gpu/command_buffer/service/texture_definition.cc : buffer_(buffer) { buffer_ 54 gpu/command_buffer/service/texture_definition.cc if (buffer_) buffer_ 55 gpu/command_buffer/service/texture_definition.cc buffer_->RemoveClient(this); buffer_ 75 gpu/command_buffer/service/texture_definition.cc if (buffer_) buffer_ 76 gpu/command_buffer/service/texture_definition.cc buffer_->WillRead(this); buffer_ 80 gpu/command_buffer/service/texture_definition.cc if (buffer_) buffer_ 81 gpu/command_buffer/service/texture_definition.cc buffer_->DidRead(this); buffer_ 85 gpu/command_buffer/service/texture_definition.cc if (buffer_) buffer_ 86 gpu/command_buffer/service/texture_definition.cc buffer_->WillWrite(this); buffer_ 90 gpu/command_buffer/service/texture_definition.cc if (buffer_) buffer_ 91 gpu/command_buffer/service/texture_definition.cc buffer_->DidWrite(this); buffer_ 54 gpu/command_buffer/service/vertex_attrib_manager.cc buffer_ = buffer; buffer_ 64 gpu/command_buffer/service/vertex_attrib_manager.cc if (buffer_.get() == buffer) { buffer_ 65 gpu/command_buffer/service/vertex_attrib_manager.cc buffer_ = NULL; buffer_ 74 gpu/command_buffer/service/vertex_attrib_manager.cc if (!buffer_.get() || buffer_->IsDeleted()) { buffer_ 79 gpu/command_buffer/service/vertex_attrib_manager.cc GLsizeiptr buffer_size = buffer_->size(); buffer_ 38 gpu/command_buffer/service/vertex_attrib_manager.h Buffer* buffer() const { return buffer_.get(); } buffer_ 155 gpu/command_buffer/service/vertex_attrib_manager.h scoped_refptr<Buffer> buffer_; buffer_ 222 media/audio/alsa/alsa_output.cc buffer_.reset(new media::SeekableBuffer(0, output_packet_size)); buffer_ 256 media/audio/alsa/alsa_output.cc buffer_.reset(); buffer_ 284 media/audio/alsa/alsa_output.cc buffer_->Clear(); buffer_ 311 media/audio/alsa/alsa_output.cc buffer_->Append(silent_packet); buffer_ 346 media/audio/alsa/alsa_output.cc buffer_->Clear(); buffer_ 355 media/audio/alsa/alsa_output.cc if (!buffer_->forward_bytes()) { buffer_ 387 media/audio/alsa/alsa_output.cc buffer_->Append(packet); buffer_ 399 media/audio/alsa/alsa_output.cc buffer_->Clear(); buffer_ 406 media/audio/alsa/alsa_output.cc CHECK_EQ(buffer_->forward_bytes() % bytes_per_output_frame_, 0u); buffer_ 410 media/audio/alsa/alsa_output.cc if (buffer_->GetCurrentChunk(&buffer_data, &buffer_size)) { buffer_ 441 media/audio/alsa/alsa_output.cc buffer_->Seek(frames_written * bytes_per_output_frame_); buffer_ 480 media/audio/alsa/alsa_output.cc if (buffer_->forward_bytes() && available_frames) { buffer_ 483 media/audio/alsa/alsa_output.cc } else if (buffer_->forward_bytes()) { buffer_ 201 media/audio/alsa/alsa_output.h scoped_ptr<media::SeekableBuffer> buffer_; buffer_ 142 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_.reset(new media::SeekableBuffer(0, kTestPacketSize)); buffer_ 143 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_->Append(packet_.get()); buffer_ 346 media/audio/alsa/alsa_output_unittest.cc EXPECT_TRUE(test_stream->buffer_.get()); buffer_ 370 media/audio/alsa/alsa_output_unittest.cc EXPECT_FALSE(test_stream->buffer_.get()); buffer_ 398 media/audio/alsa/alsa_output_unittest.cc EXPECT_FALSE(test_stream->buffer_.get()); buffer_ 468 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_->Clear(); buffer_ 498 media/audio/alsa/alsa_output_unittest.cc ASSERT_EQ(test_stream->buffer_->forward_bytes(), buffer_ 510 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); buffer_ 547 media/audio/alsa/alsa_output_unittest.cc ASSERT_EQ(test_stream->buffer_->forward_bytes(), packet_->data_size()); buffer_ 559 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(test_stream->buffer_->forward_bytes(), packet_->data_size()); buffer_ 579 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); buffer_ 586 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_->Clear(); buffer_ 605 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); buffer_ 613 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_->Clear(); buffer_ 631 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); buffer_ 639 media/audio/alsa/alsa_output_unittest.cc test_stream->buffer_->Clear(); buffer_ 658 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); buffer_ 670 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(kTestPacketSize, test_stream->buffer_->forward_bytes()); buffer_ 817 media/audio/alsa/alsa_output_unittest.cc EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); buffer_ 242 media/audio/android/audio_android_unittest.cc buffer_.reset(new media::SeekableBuffer(0, kMaxBufferSize)); buffer_ 255 media/audio/android/audio_android_unittest.cc while (bytes_written < buffer_->forward_capacity()) { buffer_ 260 media/audio/android/audio_android_unittest.cc if (!buffer_->GetCurrentChunk(&chunk, &chunk_size)) buffer_ 266 media/audio/android/audio_android_unittest.cc buffer_->Seek(chunk_size); buffer_ 281 media/audio/android/audio_android_unittest.cc if (!buffer_->Append(src, size)) buffer_ 290 media/audio/android/audio_android_unittest.cc scoped_ptr<media::SeekableBuffer> buffer_; buffer_ 310 media/audio/android/audio_android_unittest.cc buffer_.reset(new uint8[params_.GetBytesPerBuffer()]); buffer_ 374 media/audio/android/audio_android_unittest.cc fifo_->Read(buffer_.get(), size_in_bytes); buffer_ 376 media/audio/android/audio_android_unittest.cc buffer_.get(), dest->frames(), params_.bits_per_sample() / 8); buffer_ 405 media/audio/android/audio_android_unittest.cc scoped_ptr<uint8[]> buffer_; buffer_ 150 media/audio/audio_low_latency_input_output_unittest.cc buffer_.reset( buffer_ 200 media/audio/audio_low_latency_input_output_unittest.cc BytesToMilliseconds(buffer_->forward_bytes()); buffer_ 207 media/audio/audio_low_latency_input_output_unittest.cc if (!buffer_->Append(src, size)) { buffer_ 211 media/audio/audio_low_latency_input_output_unittest.cc buffer_->set_forward_capacity(2 * buffer_->forward_capacity()); buffer_ 212 media/audio/audio_low_latency_input_output_unittest.cc buffer_->Clear(); buffer_ 244 media/audio/audio_low_latency_input_output_unittest.cc if (buffer_->GetCurrentChunk(&source, &size) && size > 0) { buffer_ 250 media/audio/audio_low_latency_input_output_unittest.cc buffer_->Seek(size); buffer_ 275 media/audio/audio_low_latency_input_output_unittest.cc scoped_ptr<media::SeekableBuffer> buffer_; buffer_ 61 media/audio/fake_audio_input_stream.cc buffer_.reset(new uint8[buffer_size_]); buffer_ 62 media/audio/fake_audio_input_stream.cc memset(buffer_.get(), 0, buffer_size_); buffer_ 81 media/audio/fake_audio_input_stream.cc memset(buffer_.get(), 0, buffer_size_); buffer_ 105 media/audio/fake_audio_input_stream.cc memset(buffer_.get() + position, 128, high_bytes); buffer_ 116 media/audio/fake_audio_input_stream.cc callback_->OnData(this, buffer_.get(), buffer_size_, buffer_size_, 1.0); buffer_ 60 media/audio/fake_audio_input_stream.h scoped_ptr<uint8[]> buffer_; buffer_ 51 media/audio/mac/audio_low_latency_input_mac_unittest.cc : buffer_(0, kMaxBufferSize), buffer_ 63 media/audio/mac/audio_low_latency_input_mac_unittest.cc if (!buffer_.GetCurrentChunk(&chunk, &chunk_size)) buffer_ 68 media/audio/mac/audio_low_latency_input_mac_unittest.cc buffer_.Seek(chunk_size); buffer_ 81 media/audio/mac/audio_low_latency_input_mac_unittest.cc if (buffer_.Append(src, size)) { buffer_ 89 media/audio/mac/audio_low_latency_input_mac_unittest.cc media::SeekableBuffer buffer_; buffer_ 55 media/audio/pulse/pulse_input.cc buffer_.reset(new media::SeekableBuffer(0, 2 * params_.GetBytesPerBuffer())); buffer_ 75 media/audio/pulse/pulse_input.cc buffer_->Clear(); buffer_ 266 media/audio/pulse/pulse_input.cc buffer_->Append(reinterpret_cast<const uint8*>(data), length); buffer_ 273 media/audio/pulse/pulse_input.cc while (buffer_->forward_bytes() >= packet_size) { buffer_ 274 media/audio/pulse/pulse_input.cc buffer_->Read(audio_data_buffer_.get(), packet_size); buffer_ 278 media/audio/pulse/pulse_input.cc if (buffer_->forward_bytes() < packet_size) buffer_ 64 media/audio/pulse/pulse_input.h scoped_ptr<media::SeekableBuffer> buffer_; buffer_ 57 media/audio/virtual_audio_input_stream.cc buffer_(new uint8[params.GetBytesPerBuffer()]), buffer_ 85 media/audio/virtual_audio_input_stream.cc memset(buffer_.get(), 0, params_.GetBytesPerBuffer()); buffer_ 144 media/audio/virtual_audio_input_stream.cc buffer_.get()); buffer_ 146 media/audio/virtual_audio_input_stream.cc buffer_.get(), buffer_ 88 media/audio/virtual_audio_input_stream.h scoped_ptr<uint8[]> buffer_; buffer_ 90 media/audio/win/audio_low_latency_input_win_unittest.cc : buffer_(0, kMaxBufferSize), buffer_ 107 media/audio/win/audio_low_latency_input_win_unittest.cc if (!buffer_.GetCurrentChunk(&chunk, &chunk_size)) buffer_ 112 media/audio/win/audio_low_latency_input_win_unittest.cc buffer_.Seek(chunk_size); buffer_ 127 media/audio/win/audio_low_latency_input_win_unittest.cc if (buffer_.Append(src, size)) { buffer_ 135 media/audio/win/audio_low_latency_input_win_unittest.cc media::SeekableBuffer buffer_; buffer_ 31 media/audio/win/wavein_input_win.cc buffer_(NULL), buffer_ 86 media/audio/win/wavein_input_win.cc buffer_ = reinterpret_cast<WAVEHDR*>(new char[sz]); buffer_ 87 media/audio/win/wavein_input_win.cc buffer_->lpData = reinterpret_cast<char*>(buffer_) + sizeof(WAVEHDR); buffer_ 88 media/audio/win/wavein_input_win.cc buffer_->dwBufferLength = buffer_size_; buffer_ 89 media/audio/win/wavein_input_win.cc buffer_->dwBytesRecorded = 0; buffer_ 90 media/audio/win/wavein_input_win.cc buffer_->dwUser = reinterpret_cast<DWORD_PTR>(last); buffer_ 91 media/audio/win/wavein_input_win.cc buffer_->dwFlags = WHDR_DONE; buffer_ 92 media/audio/win/wavein_input_win.cc buffer_->dwLoops = 0; buffer_ 94 media/audio/win/wavein_input_win.cc first = buffer_; buffer_ 95 media/audio/win/wavein_input_win.cc last = buffer_; buffer_ 96 media/audio/win/wavein_input_win.cc ::waveInPrepareHeader(wavein_, buffer_, sizeof(WAVEHDR)); buffer_ 103 media/audio/win/wavein_input_win.cc WAVEHDR* current = buffer_; buffer_ 111 media/audio/win/wavein_input_win.cc buffer_ = NULL; buffer_ 123 media/audio/win/wavein_input_win.cc WAVEHDR* buffer = buffer_; buffer_ 128 media/audio/win/wavein_input_win.cc buffer = buffer_; buffer_ 118 media/audio/win/wavein_input_win.h WAVEHDR* buffer_; buffer_ 15 media/base/byte_queue.cc : buffer_(new uint8[kDefaultQueueSize]), buffer_ 49 media/base/byte_queue.cc buffer_.reset(new_buffer.release()); buffer_ 54 media/base/byte_queue.cc memmove(buffer_.get(), front(), used_); buffer_ 82 media/base/byte_queue.cc uint8* ByteQueue::front() const { return buffer_.get() + offset_; } buffer_ 42 media/base/byte_queue.h scoped_ptr<uint8[]> buffer_; buffer_ 18 media/base/seekable_buffer_unittest.cc SeekableBufferTest() : buffer_(kBufferSize, kBufferSize) { buffer_ 42 media/base/seekable_buffer_unittest.cc SeekableBuffer buffer_; buffer_ 54 media/base/seekable_buffer_unittest.cc bool should_append = buffer_.Append(data_ + write_position, write_size); buffer_ 57 media/base/seekable_buffer_unittest.cc EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); buffer_ 58 media/base/seekable_buffer_unittest.cc EXPECT_EQ(should_append, buffer_.forward_bytes() < kBufferSize) buffer_ 63 media/base/seekable_buffer_unittest.cc int bytes_copied = buffer_.Peek(write_buffer_, copy_size); buffer_ 69 media/base/seekable_buffer_unittest.cc int bytes_read = buffer_.Read(write_buffer_, read_size); buffer_ 74 media/base/seekable_buffer_unittest.cc EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); buffer_ 84 media/base/seekable_buffer_unittest.cc bool should_append = buffer_.Append(data_ + j, kWriteSize); buffer_ 87 media/base/seekable_buffer_unittest.cc EXPECT_EQ(j + kWriteSize, buffer_.forward_bytes()); buffer_ 96 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 98 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 103 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(2 * kReadSize)); buffer_ 106 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 109 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); buffer_ 110 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 114 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 116 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 121 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(-3 * static_cast<int32>(kReadSize))); buffer_ 124 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 127 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); buffer_ 128 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 132 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 134 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 139 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); buffer_ 140 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 144 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 146 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 151 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(kReadSize)); buffer_ 154 media/base/seekable_buffer_unittest.cc EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); buffer_ 164 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Append(data_ + i, kWriteSize)); buffer_ 165 media/base/seekable_buffer_unittest.cc EXPECT_EQ(i + kWriteSize, buffer_.forward_bytes()); buffer_ 170 media/base/seekable_buffer_unittest.cc for (int i = buffer_.forward_bytes(); i < kMaxWriteSize; i += kWriteSize) { buffer_ 171 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Append(data_ + i, kWriteSize)); buffer_ 172 media/base/seekable_buffer_unittest.cc EXPECT_EQ(i + kWriteSize, buffer_.forward_bytes()); buffer_ 177 media/base/seekable_buffer_unittest.cc while (buffer_.forward_bytes()) { buffer_ 180 media/base/seekable_buffer_unittest.cc int forward_bytes = buffer_.forward_bytes(); buffer_ 181 media/base/seekable_buffer_unittest.cc int bytes_read = buffer_.Read(write_buffer_, read_size); buffer_ 189 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kMaxWriteSize - read_position, buffer_.forward_bytes()); buffer_ 193 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.forward_bytes()); buffer_ 194 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.Read(write_buffer_, 1)); buffer_ 198 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.forward_bytes()); buffer_ 199 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.backward_bytes()); buffer_ 200 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Seek(1)); buffer_ 201 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Seek(-1)); buffer_ 208 media/base/seekable_buffer_unittest.cc buffer_.Append(data_ + i, kWriteSize); buffer_ 213 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 218 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(-static_cast<int32>(kBufferSize))); buffer_ 219 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Seek(-1)); buffer_ 223 media/base/seekable_buffer_unittest.cc EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); buffer_ 235 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.GetCurrentChunk(&data, &size)); buffer_ 237 media/base/seekable_buffer_unittest.cc buffer_.Append(buffer.get()); buffer_ 238 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.GetCurrentChunk(&data, &size)); buffer_ 242 media/base/seekable_buffer_unittest.cc buffer_.Seek(kSeekSize); buffer_ 243 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.GetCurrentChunk(&data, &size)); buffer_ 257 media/base/seekable_buffer_unittest.cc bool should_append = buffer_.Append(data_ + write_position, write_size); buffer_ 260 media/base/seekable_buffer_unittest.cc EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); buffer_ 261 media/base/seekable_buffer_unittest.cc EXPECT_EQ(should_append, buffer_.forward_bytes() < kBufferSize) buffer_ 267 media/base/seekable_buffer_unittest.cc if (buffer_.Seek(seek_size)) buffer_ 270 media/base/seekable_buffer_unittest.cc EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); buffer_ 274 media/base/seekable_buffer_unittest.cc int bytes_read = buffer_.Read(write_buffer_, read_size); buffer_ 279 media/base/seekable_buffer_unittest.cc EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); buffer_ 284 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.Read(write_buffer_, 0)); buffer_ 285 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.Read(write_buffer_, 1)); buffer_ 286 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(0)); buffer_ 287 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Seek(-1)); buffer_ 288 media/base/seekable_buffer_unittest.cc EXPECT_FALSE(buffer_.Seek(1)); buffer_ 289 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.forward_bytes()); buffer_ 290 media/base/seekable_buffer_unittest.cc EXPECT_EQ(0, buffer_.backward_bytes()); buffer_ 332 media/base/seekable_buffer_unittest.cc buffer_.current_time().ToInternalValue()); buffer_ 341 media/base/seekable_buffer_unittest.cc buffer_.Append(buffer.get()); buffer_ 342 media/base/seekable_buffer_unittest.cc EXPECT_TRUE(buffer_.Seek(tests[i].consume_bytes)); buffer_ 344 media/base/seekable_buffer_unittest.cc int64 actual = buffer_.current_time().ToInternalValue(); buffer_ 351 media/base/seekable_buffer_unittest.cc buffer_.Clear(); buffer_ 136 media/cast/audio_receiver/audio_decoder.cc opus_decoder_, NULL, 0, buffer_.get(), max_samples_per_frame_, 0); buffer_ 143 media/cast/audio_receiver/audio_decoder.cc opus_decoder_, data, len, buffer_.get(), max_samples_per_frame_, 0); buffer_ 152 media/cast/audio_receiver/audio_decoder.cc const float* src = buffer_.get() + ch; buffer_ 164 media/cast/audio_receiver/audio_decoder.cc const scoped_ptr<float[]> buffer_; buffer_ 228 media/cast/audio_sender/audio_encoder.cc float* dest = buffer_.get() + buffer_fill_offset * num_channels_ + ch; buffer_ 238 media/cast/audio_sender/audio_encoder.cc buffer_.get(), buffer_ 257 media/cast/audio_sender/audio_encoder.cc const scoped_ptr<float[]> buffer_; buffer_ 298 media/cast/audio_sender/audio_encoder.cc buffer_.get() + buffer_fill_offset * num_channels_); buffer_ 304 media/cast/audio_sender/audio_encoder.cc const int16* src = buffer_.get(); buffer_ 313 media/cast/audio_sender/audio_encoder.cc const scoped_ptr<int16[]> buffer_; buffer_ 26 media/cast/framer/frame_buffer_unittest.cc FrameBuffer buffer_; buffer_ 37 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 39 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.GetEncodedVideoFrame(&frame)); buffer_ 46 media/cast/framer/frame_buffer_unittest.cc EXPECT_FALSE(buffer_.Complete()); buffer_ 47 media/cast/framer/frame_buffer_unittest.cc EXPECT_FALSE(buffer_.is_key_frame()); buffer_ 49 media/cast/framer/frame_buffer_unittest.cc EXPECT_FALSE(buffer_.GetEncodedVideoFrame(&frame)); buffer_ 53 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 54 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.Complete()); buffer_ 55 media/cast/framer/frame_buffer_unittest.cc EXPECT_FALSE(buffer_.is_key_frame()); buffer_ 57 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.GetEncodedVideoFrame(&frame)); buffer_ 64 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 66 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 68 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 70 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.Complete()); buffer_ 71 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.is_key_frame()); buffer_ 73 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.GetEncodedVideoFrame(&frame)); buffer_ 79 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 81 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 85 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 87 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 88 media/cast/framer/frame_buffer_unittest.cc EXPECT_FALSE(buffer_.Complete()); buffer_ 91 media/cast/framer/frame_buffer_unittest.cc buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); buffer_ 92 media/cast/framer/frame_buffer_unittest.cc EXPECT_TRUE(buffer_.Complete()); buffer_ 13 media/cast/rtcp/test_rtcp_packet_builder.cc big_endian_writer_(reinterpret_cast<char*>(buffer_), kMaxIpPacketSize) {} buffer_ 260 media/cast/rtcp/test_rtcp_packet_builder.cc new media::cast::Packet(buffer_, buffer_ + Length())); buffer_ 265 media/cast/rtcp/test_rtcp_packet_builder.cc return buffer_; buffer_ 103 media/cast/rtcp/test_rtcp_packet_builder.h uint8 buffer_[kMaxIpPacketSize]; buffer_ 52 media/cast/test/utility/udp_proxy.cc buffer_.push_back(linked_ptr<transport::Packet>(packet.release())); buffer_ 53 media/cast/test/utility/udp_proxy.cc if (buffer_.size() == 1) { buffer_ 61 media/cast/test/utility/udp_proxy.cc double megabits = buffer_.front()->size() * 8 / 1000000.0; buffer_ 71 media/cast/test/utility/udp_proxy.cc CHECK(!buffer_.empty()); buffer_ 72 media/cast/test/utility/udp_proxy.cc scoped_ptr<transport::Packet> packet(buffer_.front().release()); buffer_ 74 media/cast/test/utility/udp_proxy.cc buffer_.pop_front(); buffer_ 76 media/cast/test/utility/udp_proxy.cc if (!buffer_.empty()) { buffer_ 81 media/cast/test/utility/udp_proxy.cc std::deque<linked_ptr<transport::Packet> > buffer_; buffer_ 179 media/cast/test/utility/udp_proxy.cc buffer_.push_back(linked_ptr<transport::Packet>(packet.release())); buffer_ 180 media/cast/test/utility/udp_proxy.cc if (buffer_.size() == 1) { buffer_ 229 media/cast/test/utility/udp_proxy.cc CHECK(!buffer_.empty()); buffer_ 230 media/cast/test/utility/udp_proxy.cc scoped_ptr<transport::Packet> packet(buffer_.front().release()); buffer_ 232 media/cast/test/utility/udp_proxy.cc buffer_.pop_front(); buffer_ 233 media/cast/test/utility/udp_proxy.cc if (!buffer_.empty()) { buffer_ 239 media/cast/test/utility/udp_proxy.cc std::deque<linked_ptr<transport::Packet> > buffer_; buffer_ 40 media/cdm/ppapi/cdm_helpers.h virtual uint32_t Capacity() const OVERRIDE { return buffer_.size(); } buffer_ 43 media/cdm/ppapi/cdm_helpers.h return static_cast<uint8_t*>(buffer_.data()); buffer_ 58 media/cdm/ppapi/cdm_helpers.h pp::Buffer_Dev buffer_dev() const { return buffer_; } buffer_ 64 media/cdm/ppapi/cdm_helpers.h : buffer_(buffer), buffer_ 69 media/cdm/ppapi/cdm_helpers.h pp::Buffer_Dev buffer_; buffer_ 106 media/cdm/ppapi/cdm_helpers.h DecryptedBlockImpl() : buffer_(NULL), timestamp_(0) {} buffer_ 107 media/cdm/ppapi/cdm_helpers.h virtual ~DecryptedBlockImpl() { if (buffer_) buffer_->Destroy(); } buffer_ 110 media/cdm/ppapi/cdm_helpers.h buffer_ = static_cast<PpbBuffer*>(buffer); buffer_ 112 media/cdm/ppapi/cdm_helpers.h virtual cdm::Buffer* DecryptedBuffer() OVERRIDE { return buffer_; } buffer_ 120 media/cdm/ppapi/cdm_helpers.h PpbBuffer* buffer_; buffer_ 195 media/cdm/ppapi/cdm_helpers.h AudioFramesImpl() : buffer_(NULL), format_(cdm::kUnknownAudioFormat) {} buffer_ 197 media/cdm/ppapi/cdm_helpers.h if (buffer_) buffer_ 198 media/cdm/ppapi/cdm_helpers.h buffer_->Destroy(); buffer_ 203 media/cdm/ppapi/cdm_helpers.h buffer_ = static_cast<PpbBuffer*>(buffer); buffer_ 206 media/cdm/ppapi/cdm_helpers.h return buffer_; buffer_ 216 media/cdm/ppapi/cdm_helpers.h PpbBuffer* temp_buffer = buffer_; buffer_ 217 media/cdm/ppapi/cdm_helpers.h buffer_ = NULL; buffer_ 222 media/cdm/ppapi/cdm_helpers.h PpbBuffer* buffer_; buffer_ 35 media/filters/fake_demuxer_stream_unittest.cc buffer_ = buffer; buffer_ 64 media/filters/fake_demuxer_stream_unittest.cc ASSERT_TRUE(buffer_.get()); buffer_ 65 media/filters/fake_demuxer_stream_unittest.cc EXPECT_FALSE(buffer_->end_of_stream()); buffer_ 71 media/filters/fake_demuxer_stream_unittest.cc EXPECT_FALSE(buffer_.get()); buffer_ 78 media/filters/fake_demuxer_stream_unittest.cc EXPECT_FALSE(buffer_.get()); buffer_ 84 media/filters/fake_demuxer_stream_unittest.cc ASSERT_TRUE(buffer_.get()); buffer_ 85 media/filters/fake_demuxer_stream_unittest.cc EXPECT_TRUE(buffer_->end_of_stream()); buffer_ 166 media/filters/fake_demuxer_stream_unittest.cc scoped_refptr<DecoderBuffer> buffer_; buffer_ 61 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + kClusterTimecodeOffset; buffer_ 75 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + bytes_used_; buffer_ 95 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + bytes_used_; buffer_ 138 media/formats/webm/cluster_builder.cc scoped_ptr<Cluster> ret(new Cluster(buffer_.Pass(), bytes_used_)); buffer_ 145 media/formats/webm/cluster_builder.cc buffer_.reset(new uint8[buffer_size_]); buffer_ 146 media/formats/webm/cluster_builder.cc memcpy(buffer_.get(), kClusterHeader, sizeof(kClusterHeader)); buffer_ 159 media/formats/webm/cluster_builder.cc memcpy(new_buffer.get(), buffer_.get(), bytes_used_); buffer_ 160 media/formats/webm/cluster_builder.cc buffer_.reset(new_buffer.release()); buffer_ 166 media/formats/webm/cluster_builder.cc uint8* buf = buffer_.get() + offset; buffer_ 49 media/formats/webm/cluster_builder.h scoped_ptr<uint8[]> buffer_; buffer_ 118 mojo/public/c/system/tests/core_perftest.cc CorePerftest() : buffer_(NULL), num_bytes_(0) {} buffer_ 139 mojo/public/c/system/tests/core_perftest.cc self->buffer_, self->num_bytes_, buffer_ 145 mojo/public/c/system/tests/core_perftest.cc self->buffer_, &read_bytes, buffer_ 244 mojo/public/c/system/tests/core_perftest.cc void* buffer_; buffer_ 279 mojo/public/c/system/tests/core_perftest.cc buffer_ = buffer; buffer_ 33 mojo/public/cpp/bindings/allocation_scope.h Buffer* buffer() { return &buffer_; } buffer_ 36 mojo/public/cpp/bindings/allocation_scope.h internal::ScratchBuffer buffer_; buffer_ 88 mojo/system/local_data_pipe.cc memcpy(buffer_.get() + first_write_index, elements, num_bytes_to_write_first); buffer_ 92 mojo/system/local_data_pipe.cc memcpy(buffer_.get(), buffer_ 137 mojo/system/local_data_pipe.cc *buffer = buffer_.get() + write_index; buffer_ 202 mojo/system/local_data_pipe.cc memcpy(elements, buffer_.get() + start_index_, num_bytes_to_read_first); buffer_ 207 mojo/system/local_data_pipe.cc buffer_.get(), buffer_ 265 mojo/system/local_data_pipe.cc *buffer = buffer_.get() + start_index_; buffer_ 297 mojo/system/local_data_pipe.cc if (buffer_.get()) buffer_ 299 mojo/system/local_data_pipe.cc buffer_.reset(static_cast<char*>( buffer_ 307 mojo/system/local_data_pipe.cc if (buffer_.get()) buffer_ 308 mojo/system/local_data_pipe.cc memset(buffer_.get(), 0xcd, capacity_num_bytes()); buffer_ 310 mojo/system/local_data_pipe.cc buffer_.reset(); buffer_ 73 mojo/system/local_data_pipe.h scoped_ptr<char, base::AlignedFreeDeleter> buffer_; buffer_ 69 mojo/system/message_in_transit.cc : buffer_(buffer) { buffer_ 71 mojo/system/message_in_transit.cc DCHECK(MessageInTransit::GetNextMessageSize(buffer_, message_size, buffer_ 100 mojo/system/message_in_transit.h const void* main_buffer() const { return buffer_; } buffer_ 106 mojo/system/message_in_transit.h static_cast<const char*>(buffer_) + main_buffer_size() : NULL; buffer_ 114 mojo/system/message_in_transit.h return static_cast<const char*>(buffer_) + sizeof(Header); buffer_ 123 mojo/system/message_in_transit.h const Header* header() const { return static_cast<const Header*>(buffer_); } buffer_ 125 mojo/system/message_in_transit.h const void* const buffer_; buffer_ 23 mojo/system/raw_channel.cc RawChannel::ReadBuffer::ReadBuffer() : buffer_(kReadSize), num_valid_bytes_(0) { buffer_ 29 mojo/system/raw_channel.cc DCHECK_GE(buffer_.size(), num_valid_bytes_ + kReadSize); buffer_ 30 mojo/system/raw_channel.cc *addr = &buffer_[0] + num_valid_bytes_; buffer_ 249 mojo/system/raw_channel.cc &read_buffer_->buffer_[read_buffer_start], remaining_bytes, buffer_ 253 mojo/system/raw_channel.cc message_view(message_size, &read_buffer_->buffer_[read_buffer_start]); buffer_ 274 mojo/system/raw_channel.cc memmove(&read_buffer_->buffer_[0], buffer_ 275 mojo/system/raw_channel.cc &read_buffer_->buffer_[read_buffer_start], remaining_bytes); buffer_ 280 mojo/system/raw_channel.cc if (read_buffer_->buffer_.size() - read_buffer_->num_valid_bytes_ < buffer_ 287 mojo/system/raw_channel.cc size_t new_size = std::max(read_buffer_->buffer_.size(), kReadSize); buffer_ 292 mojo/system/raw_channel.cc read_buffer_->buffer_.resize(new_size, 0); buffer_ 119 mojo/system/raw_channel.h std::vector<char> buffer_; buffer_ 53 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc ~Graphics2DInstance() { delete[] buffer_; } buffer_ 79 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc if (!buffer_) buffer_ 122 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc buffer_ = new uint8_t[new_size.width() * new_size.height()]; buffer_ 149 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc buffer_[offset + x] = RandUint8(128, 255); buffer_ 152 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc buffer_[offset + x] = RandUint8(32, 96); buffer_ 165 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset - width + x - 1]; buffer_ 166 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset - width + x + 1]; buffer_ 167 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset + x - 1]; buffer_ 168 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset + x + 1]; buffer_ 169 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset + width + x - 1]; buffer_ 170 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset + width + x]; buffer_ 171 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc sum += buffer_[offset + width + x + 1]; buffer_ 172 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc buffer_[offset - width + x] = sum / 7; buffer_ 195 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc buffer_[y * width + x] = RandUint8(192, 255); buffer_ 213 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc data[offset] = palette_[buffer_[offset]]; buffer_ 262 native_client_sdk/src/examples/api/graphics_2d/graphics_2d.cc uint8_t* buffer_; buffer_ 91 native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc GLuint buffer_; buffer_ 375 native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc glGenBuffers(1, &buffer_); buffer_ 376 native_client_sdk/src/examples/api/media_stream_video/media_stream_video.cc glBindBuffer(GL_ARRAY_BUFFER, buffer_); buffer_ 34 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc buffer_(new char[READ_BUFFER_SIZE]), buffer_ 42 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc delete[] buffer_; buffer_ 43 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc buffer_ = NULL; buffer_ 98 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc delete[] buffer_; buffer_ 99 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc buffer_ = NULL; buffer_ 104 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc AppendDataBytes(buffer_, result); buffer_ 124 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc result = url_loader_.ReadResponseBody(buffer_, READ_BUFFER_SIZE, cc); buffer_ 130 native_client_sdk/src/examples/api/url_loader/url_loader_handler.cc AppendDataBytes(buffer_, result); buffer_ 80 native_client_sdk/src/examples/api/url_loader/url_loader_handler.h char* buffer_; // Temporary buffer for reads. buffer_ 139 native_client_sdk/src/examples/demo/drive/drive.cc uint8_t* buffer_ = new uint8_t[kReadBufferSize]; buffer_ 143 native_client_sdk/src/examples/demo/drive/drive.cc buffer_, kReadBufferSize, pp::BlockUntilComplete()); buffer_ 147 native_client_sdk/src/examples/demo/drive/drive.cc output->insert(output->end(), buffer_, buffer_ + num_bytes); buffer_ 151 native_client_sdk/src/examples/demo/drive/drive.cc delete[] buffer_; buffer_ 15 native_client_sdk/src/libraries/nacl_io/fifo_char.cc : buffer_(NULL), buffer_ 20 native_client_sdk/src/libraries/nacl_io/fifo_char.cc buffer_ = new char[size]; buffer_ 24 native_client_sdk/src/libraries/nacl_io/fifo_char.cc delete[] buffer_; buffer_ 45 native_client_sdk/src/libraries/nacl_io/fifo_char.cc delete[] buffer_; buffer_ 46 native_client_sdk/src/libraries/nacl_io/fifo_char.cc buffer_ = data; buffer_ 68 native_client_sdk/src/libraries/nacl_io/fifo_char.cc memcpy(ptr, &buffer_[offs], read_len); buffer_ 101 native_client_sdk/src/libraries/nacl_io/fifo_char.cc memcpy(&buffer_[offs], ptr, write_len); buffer_ 44 native_client_sdk/src/libraries/nacl_io/fifo_char.h char* buffer_; buffer_ 535 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc buffer_.resize(kBytesToRead); buffer_ 540 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc ReadResponseToBuffer(loader, buffer_.data(), kBytesToRead, &bytes_read); buffer_ 582 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc if (buffer_.size() < static_cast<size_t>(count)) buffer_ 583 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc buffer_.resize(std::min(count, MAX_READ_BUFFER_SIZE)); buffer_ 588 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc std::min(static_cast<size_t>(bytes_left), buffer_.size()); buffer_ 591 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc loader, buffer_.data(), bytes_to_read, &bytes_read); buffer_ 88 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h std::vector<char> buffer_; buffer_ 14 native_client_sdk/src/libraries/nacl_io/socket/packet.cc : ppapi_(ppapi), addr_(0), buffer_(NULL), len_(0) {} buffer_ 19 native_client_sdk/src/libraries/nacl_io/socket/packet.cc delete[] buffer_; buffer_ 25 native_client_sdk/src/libraries/nacl_io/socket/packet.cc buffer_ = static_cast<char*>(const_cast<void*>(buffer)); buffer_ 31 native_client_sdk/src/libraries/nacl_io/socket/packet.cc buffer_ = new char[len]; buffer_ 33 native_client_sdk/src/libraries/nacl_io/socket/packet.cc memcpy(buffer_, buffer, len); buffer_ 30 native_client_sdk/src/libraries/nacl_io/socket/packet.h char* buffer() { return buffer_; } buffer_ 37 native_client_sdk/src/libraries/nacl_io/socket/packet.h char* buffer_; buffer_ 93 net/base/address_tracker_linux_unittest.cc explicit NetlinkMessage(uint16 type) : buffer_(NLMSG_HDRLEN) { buffer_ 100 net/base/address_tracker_linux_unittest.cc buffer_.size()) << "Payload must be added first"; buffer_ 117 net/base/address_tracker_linux_unittest.cc output->reserve(output->size() + NLMSG_LENGTH(buffer_.size())); buffer_ 118 net/base/address_tracker_linux_unittest.cc output->insert(output->end(), buffer_.begin(), buffer_.end()); buffer_ 124 net/base/address_tracker_linux_unittest.cc buffer_.insert(buffer_.end(), chardata, chardata + length); buffer_ 128 net/base/address_tracker_linux_unittest.cc header()->nlmsg_len = buffer_.size(); buffer_ 129 net/base/address_tracker_linux_unittest.cc buffer_.insert(buffer_.end(), NLMSG_ALIGN(buffer_.size()) - buffer_.size(), buffer_ 131 net/base/address_tracker_linux_unittest.cc CHECK(NLMSG_OK(header(), buffer_.size())); buffer_ 135 net/base/address_tracker_linux_unittest.cc return reinterpret_cast<struct nlmsghdr*>(&buffer_[0]); buffer_ 138 net/base/address_tracker_linux_unittest.cc Buffer buffer_; buffer_ 57 net/base/test_completion_callback.cc IOBuffer* buffer) : buffer_(buffer) { buffer_ 64 net/base/test_completion_callback.cc if (!buffer_->HasOneRef()) buffer_ 122 net/base/test_completion_callback.h IOBuffer* buffer_; buffer_ 41 net/base/test_data_stream.cc buffer_ptr_ = buffer_; buffer_ 52 net/base/test_data_stream.cc buffer_[bytes_remaining_++] = (val % 10) + '0'; buffer_ 54 net/base/test_data_stream.cc buffer_[bytes_remaining_++] = '.'; buffer_ 64 net/base/test_data_stream.cc buffer_ptr_ = buffer_; buffer_ 41 net/base/test_data_stream.h char buffer_[16]; buffer_ 99 net/disk_cache/blockfile/entry_impl.cc buffer_.reserve(kMaxBlockSize); buffer_ 127 net/disk_cache/blockfile/entry_impl.cc char* Data() { return buffer_.size() ? &buffer_[0] : NULL; } buffer_ 128 net/disk_cache/blockfile/entry_impl.cc int Size() { return static_cast<int>(buffer_.size()); } buffer_ 133 net/disk_cache/blockfile/entry_impl.cc int capacity() { return static_cast<int>(buffer_.capacity()); } buffer_ 138 net/disk_cache/blockfile/entry_impl.cc std::vector<char> buffer_; buffer_ 172 net/disk_cache/blockfile/entry_impl.cc buffer_.resize(offset); buffer_ 188 net/disk_cache/blockfile/entry_impl.cc buffer_.resize(offset); buffer_ 197 net/disk_cache/blockfile/entry_impl.cc memcpy(&buffer_[offset], buffer, copy_len); buffer_ 204 net/disk_cache/blockfile/entry_impl.cc buffer_.insert(buffer_.end(), buffer, buffer + len); buffer_ 253 net/disk_cache/blockfile/entry_impl.cc memcpy(buf->data() + clean_bytes, &buffer_[start], len); buffer_ 263 net/disk_cache/blockfile/entry_impl.cc buffer_.swap(tmp); buffer_ 264 net/disk_cache/blockfile/entry_impl.cc buffer_.reserve(kMaxBlockSize); buffer_ 267 net/disk_cache/blockfile/entry_impl.cc buffer_.clear(); buffer_ 292 net/disk_cache/blockfile/entry_impl.cc buffer_.reserve(required); buffer_ 48 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.reserve(kMaxBlockSize); buffer_ 76 net/disk_cache/blockfile/entry_impl_v3.cc char* Data() { return buffer_.size() ? &buffer_[0] : NULL; } buffer_ 77 net/disk_cache/blockfile/entry_impl_v3.cc int Size() { return static_cast<int>(buffer_.size()); } buffer_ 82 net/disk_cache/blockfile/entry_impl_v3.cc int capacity() { return static_cast<int>(buffer_.capacity()); } buffer_ 87 net/disk_cache/blockfile/entry_impl_v3.cc std::vector<char> buffer_; buffer_ 121 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.resize(offset); buffer_ 137 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.resize(offset); buffer_ 146 net/disk_cache/blockfile/entry_impl_v3.cc memcpy(&buffer_[offset], buffer, copy_len); buffer_ 153 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.insert(buffer_.end(), buffer, buffer + len); buffer_ 202 net/disk_cache/blockfile/entry_impl_v3.cc memcpy(buf->data() + clean_bytes, &buffer_[start], len); buffer_ 212 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.swap(tmp); buffer_ 213 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.reserve(kMaxBlockSize); buffer_ 216 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.clear(); buffer_ 241 net/disk_cache/blockfile/entry_impl_v3.cc buffer_.reserve(required); buffer_ 34 net/disk_cache/blockfile/mapped_file.h return buffer_; buffer_ 60 net/disk_cache/blockfile/mapped_file.h void* buffer_; // Address of the memory mapped buffer. buffer_ 22 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc buffer_ = malloc(size); buffer_ 24 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc if (buffer_ && snapshot_ && Read(buffer_, size, 0)) { buffer_ 25 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc memcpy(snapshot_, buffer_, size); buffer_ 27 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc free(buffer_); buffer_ 29 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc buffer_ = snapshot_ = 0; buffer_ 34 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc return buffer_; buffer_ 38 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc DCHECK(buffer_); buffer_ 40 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc const char* buffer_ptr = static_cast<const char*>(buffer_); buffer_ 56 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc if (buffer_ && snapshot_) { buffer_ 59 net/disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc free(buffer_); buffer_ 25 net/disk_cache/blockfile/mapped_file_posix.cc buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, buffer_ 29 net/disk_cache/blockfile/mapped_file_posix.cc DCHECK(reinterpret_cast<intptr_t>(buffer_) != -1); buffer_ 30 net/disk_cache/blockfile/mapped_file_posix.cc if (reinterpret_cast<intptr_t>(buffer_) == -1) buffer_ 31 net/disk_cache/blockfile/mapped_file_posix.cc buffer_ = 0; buffer_ 38 net/disk_cache/blockfile/mapped_file_posix.cc return buffer_; buffer_ 48 net/disk_cache/blockfile/mapped_file_posix.cc if (buffer_) { buffer_ 49 net/disk_cache/blockfile/mapped_file_posix.cc int ret = munmap(buffer_, view_size_); buffer_ 46 net/disk_cache/blockfile/mapped_file_unittest.cc CacheTestFillBuffer(buffer_, sizeof(buffer_), false); buffer_ 51 net/disk_cache/blockfile/mapped_file_unittest.cc virtual void* buffer() const OVERRIDE { return const_cast<char*>(buffer_); } buffer_ 52 net/disk_cache/blockfile/mapped_file_unittest.cc virtual size_t size() const OVERRIDE { return sizeof(buffer_); } buffer_ 56 net/disk_cache/blockfile/mapped_file_unittest.cc char buffer_[20]; buffer_ 19 net/disk_cache/blockfile/mapped_file_win.cc buffer_ = NULL; buffer_ 26 net/disk_cache/blockfile/mapped_file_win.cc buffer_ = MapViewOfFile(section_, FILE_MAP_READ | FILE_MAP_WRITE, 0, 0, size); buffer_ 27 net/disk_cache/blockfile/mapped_file_win.cc DCHECK(buffer_); buffer_ 36 net/disk_cache/blockfile/mapped_file_win.cc return buffer_; buffer_ 43 net/disk_cache/blockfile/mapped_file_win.cc if (buffer_) { buffer_ 44 net/disk_cache/blockfile/mapped_file_win.cc BOOL ret = UnmapViewOfFile(buffer_); buffer_ 76 net/disk_cache/blockfile/sparse_control.cc scoped_ptr<char[]> buffer_; buffer_ 82 net/disk_cache/blockfile/sparse_control.cc char* buffer = buffer_.release(); buffer_ 87 net/disk_cache/blockfile/sparse_control.cc buffer_.reset(buffer); buffer_ 100 net/disk_cache/blockfile/sparse_control.cc buffer_.reset(); buffer_ 117 net/disk_cache/blockfile/sparse_control.cc buffer_.reset(new char[len]); buffer_ 119 net/disk_cache/blockfile/sparse_control.cc if (!file->Read(buffer_.get(), len, file_offset, this, &completed)) buffer_ 76 net/disk_cache/blockfile/sparse_control_v3.cc scoped_ptr<char[]> buffer_; buffer_ 82 net/disk_cache/blockfile/sparse_control_v3.cc char* buffer = buffer_.release(); buffer_ 87 net/disk_cache/blockfile/sparse_control_v3.cc buffer_.reset(buffer); buffer_ 100 net/disk_cache/blockfile/sparse_control_v3.cc buffer_.reset(); buffer_ 117 net/disk_cache/blockfile/sparse_control_v3.cc buffer_.reset(new char[len]); buffer_ 119 net/disk_cache/blockfile/sparse_control_v3.cc if (!file->Read(buffer_.get(), len, file_offset, this, &completed)) buffer_ 393 net/dns/dns_transaction.cc buffer_ = buffer_ 404 net/dns/dns_transaction.cc buffer_->DidConsume(rv); buffer_ 405 net/dns/dns_transaction.cc if (buffer_->BytesRemaining() > 0) { buffer_ 408 net/dns/dns_transaction.cc buffer_.get(), buffer_ 409 net/dns/dns_transaction.cc buffer_->BytesRemaining(), buffer_ 412 net/dns/dns_transaction.cc buffer_ = new DrainableIOBuffer(query_->io_buffer(), buffer_ 423 net/dns/dns_transaction.cc buffer_->DidConsume(rv); buffer_ 424 net/dns/dns_transaction.cc if (buffer_->BytesRemaining() > 0) { buffer_ 427 net/dns/dns_transaction.cc buffer_.get(), buffer_ 428 net/dns/dns_transaction.cc buffer_->BytesRemaining(), buffer_ 431 net/dns/dns_transaction.cc buffer_ = buffer_ 442 net/dns/dns_transaction.cc buffer_->DidConsume(rv); buffer_ 443 net/dns/dns_transaction.cc if (buffer_->BytesRemaining() > 0) { buffer_ 446 net/dns/dns_transaction.cc buffer_.get(), buffer_ 447 net/dns/dns_transaction.cc buffer_->BytesRemaining(), buffer_ 456 net/dns/dns_transaction.cc buffer_ = new DrainableIOBuffer(response_->io_buffer(), response_length_); buffer_ 466 net/dns/dns_transaction.cc buffer_->DidConsume(rv); buffer_ 467 net/dns/dns_transaction.cc if (buffer_->BytesRemaining() > 0) { buffer_ 470 net/dns/dns_transaction.cc buffer_.get(), buffer_ 471 net/dns/dns_transaction.cc buffer_->BytesRemaining(), buffer_ 474 net/dns/dns_transaction.cc if (!response_->InitParse(buffer_->BytesConsumed(), *query_)) buffer_ 499 net/dns/dns_transaction.cc scoped_refptr<DrainableIOBuffer> buffer_; buffer_ 31 net/ftp/ftp_ctrl_response_buffer.cc buffer_.append(data, data_length); buffer_ 143 net/ftp/ftp_ctrl_response_buffer.cc for (size_t i = 0; i < buffer_.length(); i++) { buffer_ 144 net/ftp/ftp_ctrl_response_buffer.cc if (i >= 1 && buffer_[i - 1] == '\r' && buffer_[i] == '\n') { buffer_ 145 net/ftp/ftp_ctrl_response_buffer.cc lines_.push(ParseLine(buffer_.substr(cut_pos, i - cut_pos - 1))); buffer_ 149 net/ftp/ftp_ctrl_response_buffer.cc buffer_.erase(0, cut_pos); buffer_ 76 net/ftp/ftp_ctrl_response_buffer.h std::string buffer_; buffer_ 16 net/ftp/ftp_ctrl_response_buffer_unittest.cc FtpCtrlResponseBufferTest() : buffer_(net::BoundNetLog()) { buffer_ 21 net/ftp/ftp_ctrl_response_buffer_unittest.cc return buffer_.ConsumeData(data, strlen(data)); buffer_ 24 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponseBuffer buffer_; buffer_ 28 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 31 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 33 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 34 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 42 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 44 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 46 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 48 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 50 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 52 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 53 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 61 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 64 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 67 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 69 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 70 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 80 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 83 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 86 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 89 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 92 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 94 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 95 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 106 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 109 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 112 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 114 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 115 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 124 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 129 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 132 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_TRUE(buffer_.ResponseAvailable()); buffer_ 134 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 135 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 145 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 148 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 151 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 154 net/ftp/ftp_ctrl_response_buffer_unittest.cc ASSERT_TRUE(buffer_.ResponseAvailable()); buffer_ 156 net/ftp/ftp_ctrl_response_buffer_unittest.cc net::FtpCtrlResponse response = buffer_.PopResponse(); buffer_ 157 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 167 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 172 net/ftp/ftp_ctrl_response_buffer_unittest.cc EXPECT_FALSE(buffer_.ResponseAvailable()); buffer_ 184 net/http/http_auth_gssapi_posix.cc : buffer_(buffer), buffer_ 190 net/http/http_auth_gssapi_posix.cc if (buffer_ != GSS_C_NO_BUFFER) { buffer_ 193 net/http/http_auth_gssapi_posix.cc gssapi_lib_->release_buffer(&minor_status, buffer_); buffer_ 198 net/http/http_auth_gssapi_posix.cc buffer_ = GSS_C_NO_BUFFER; buffer_ 203 net/http/http_auth_gssapi_posix.cc gss_buffer_t buffer_; buffer_ 190 net/ocsp/nss_ocsp.cc buffer_(new IOBuffer(kRecvBufferSize)), buffer_ 307 net/ocsp/nss_ocsp.cc request_->Read(buffer_.get(), kRecvBufferSize, &bytes_read); buffer_ 320 net/ocsp/nss_ocsp.cc data_.append(buffer_->data(), bytes_read); buffer_ 321 net/ocsp/nss_ocsp.cc } while (request_->Read(buffer_.get(), kRecvBufferSize, &bytes_read)); buffer_ 430 net/ocsp/nss_ocsp.cc scoped_refptr<IOBuffer> buffer_; // Read buffer buffer_ 197 net/quic/crypto/crypto_framer.cc buffer_.append(input.data(), input.length()); buffer_ 198 net/quic/crypto/crypto_framer.cc QuicDataReader reader(buffer_.data(), buffer_.length()); buffer_ 270 net/quic/crypto/crypto_framer.cc buffer_ = reader.PeekRemainingPayload().as_string(); buffer_ 66 net/quic/crypto/crypto_framer.h size_t InputBytesRemaining() const { return buffer_.length(); } buffer_ 98 net/quic/crypto/crypto_framer.h std::string buffer_; buffer_ 20 net/quic/quic_data_writer.cc : buffer_(new char[size]), buffer_ 26 net/quic/quic_data_writer.cc delete[] buffer_; buffer_ 30 net/quic/quic_data_writer.cc char* rv = buffer_; buffer_ 31 net/quic/quic_data_writer.cc buffer_ = NULL; buffer_ 133 net/quic/quic_data_writer.cc return buffer_ + length_; buffer_ 165 net/quic/quic_data_writer.cc memset(buffer_ + length_, 0x00, capacity_ - length_); buffer_ 74 net/quic/quic_data_writer.h char* buffer_; buffer_ 538 net/quic/quic_protocol.cc : buffer_(buffer), buffer_ 546 net/quic/quic_protocol.cc : buffer_(buffer), buffer_ 553 net/quic/quic_protocol.cc delete [] const_cast<char*>(buffer_); buffer_ 573 net/quic/quic_protocol.cc buffer_(buffer), buffer_ 866 net/quic/quic_protocol.h const char* data() const { return buffer_; } buffer_ 870 net/quic/quic_protocol.h const char* buffer_; buffer_ 908 net/quic/quic_protocol.h char* mutable_data() { return buffer_; } buffer_ 919 net/quic/quic_protocol.h char* buffer_; buffer_ 64 net/socket/socks5_client_socket.cc buffer_.clear(); buffer_ 286 net/socket/socks5_client_socket.cc if (buffer_.empty()) { buffer_ 287 net/socket/socks5_client_socket.cc buffer_ = std::string(kSOCKS5GreetWriteData, buffer_ 293 net/socket/socks5_client_socket.cc size_t handshake_buf_len = buffer_.size() - bytes_sent_; buffer_ 295 net/socket/socks5_client_socket.cc memcpy(handshake_buf_->data(), &buffer_.data()[bytes_sent_], buffer_ 306 net/socket/socks5_client_socket.cc if (bytes_sent_ == buffer_.size()) { buffer_ 307 net/socket/socks5_client_socket.cc buffer_.clear(); buffer_ 334 net/socket/socks5_client_socket.cc buffer_.append(handshake_buf_->data(), result); buffer_ 341 net/socket/socks5_client_socket.cc if (buffer_[0] != kSOCKS5Version) { buffer_ 343 net/socket/socks5_client_socket.cc NetLog::IntegerCallback("version", buffer_[0])); buffer_ 346 net/socket/socks5_client_socket.cc if (buffer_[1] != 0x00) { buffer_ 348 net/socket/socks5_client_socket.cc NetLog::IntegerCallback("method", buffer_[1])); buffer_ 352 net/socket/socks5_client_socket.cc buffer_.clear(); buffer_ 383 net/socket/socks5_client_socket.cc if (buffer_.empty()) { buffer_ 384 net/socket/socks5_client_socket.cc int rv = BuildHandshakeWriteBuffer(&buffer_); buffer_ 390 net/socket/socks5_client_socket.cc int handshake_buf_len = buffer_.size() - bytes_sent_; buffer_ 393 net/socket/socks5_client_socket.cc memcpy(handshake_buf_->data(), &buffer_[bytes_sent_], buffer_ 407 net/socket/socks5_client_socket.cc if (bytes_sent_ == buffer_.size()) { buffer_ 409 net/socket/socks5_client_socket.cc buffer_.clear(); buffer_ 410 net/socket/socks5_client_socket.cc } else if (bytes_sent_ < buffer_.size()) { buffer_ 422 net/socket/socks5_client_socket.cc if (buffer_.empty()) { buffer_ 443 net/socket/socks5_client_socket.cc buffer_.append(handshake_buf_->data(), result); buffer_ 449 net/socket/socks5_client_socket.cc if (buffer_[0] != kSOCKS5Version || buffer_[2] != kNullByte) { buffer_ 451 net/socket/socks5_client_socket.cc NetLog::IntegerCallback("version", buffer_[0])); buffer_ 454 net/socket/socks5_client_socket.cc if (buffer_[1] != 0x00) { buffer_ 456 net/socket/socks5_client_socket.cc NetLog::IntegerCallback("error_code", buffer_[1])); buffer_ 466 net/socket/socks5_client_socket.cc static_cast<SocksEndPointAddressType>(buffer_[3]); buffer_ 468 net/socket/socks5_client_socket.cc read_header_size += static_cast<uint8>(buffer_[4]); buffer_ 475 net/socket/socks5_client_socket.cc NetLog::IntegerCallback("address_type", buffer_[3])); buffer_ 489 net/socket/socks5_client_socket.cc buffer_.clear(); buffer_ 135 net/socket/socks5_client_socket.h std::string buffer_; buffer_ 345 net/socket/socks_client_socket.cc if (buffer_.empty()) { buffer_ 346 net/socket/socks_client_socket.cc buffer_ = BuildHandshakeWriteBuffer(); buffer_ 350 net/socket/socks_client_socket.cc int handshake_buf_len = buffer_.size() - bytes_sent_; buffer_ 353 net/socket/socks_client_socket.cc memcpy(handshake_buf_->data(), &buffer_[bytes_sent_], buffer_ 369 net/socket/socks_client_socket.cc if (bytes_sent_ == buffer_.size()) { buffer_ 371 net/socket/socks_client_socket.cc buffer_.clear(); buffer_ 372 net/socket/socks_client_socket.cc } else if (bytes_sent_ < buffer_.size()) { buffer_ 384 net/socket/socks_client_socket.cc if (buffer_.empty()) { buffer_ 409 net/socket/socks_client_socket.cc buffer_.append(handshake_buf_->data(), result); buffer_ 417 net/socket/socks_client_socket.cc reinterpret_cast<const SOCKS4ServerResponse*>(buffer_.data()); buffer_ 114 net/socket/socks_client_socket.h std::string buffer_; buffer_ 20 net/spdy/hpack_input_stream.cc buffer_(buffer), buffer_ 26 net/spdy/hpack_input_stream.cc return !buffer_.empty(); buffer_ 46 net/spdy/hpack_input_stream.cc if ((bit_offset_ > 0) || buffer_.empty()) buffer_ 49 net/spdy/hpack_input_stream.cc *next_octet = buffer_[0]; buffer_ 57 net/spdy/hpack_input_stream.cc buffer_.remove_prefix(1); buffer_ 104 net/spdy/hpack_input_stream.cc if (size > buffer_.size()) buffer_ 107 net/spdy/hpack_input_stream.cc *str = StringPiece(buffer_.data(), size); buffer_ 108 net/spdy/hpack_input_stream.cc buffer_.remove_prefix(size); buffer_ 118 net/spdy/hpack_input_stream.cc if (encoded_size > buffer_.size()) buffer_ 123 net/spdy/hpack_input_stream.cc StringPiece(buffer_.data(), encoded_size)); buffer_ 124 net/spdy/hpack_input_stream.cc buffer_.remove_prefix(encoded_size); buffer_ 134 net/spdy/hpack_input_stream.cc if (*peeked_count >= 32 || byte_offset >= buffer_.size()) { buffer_ 141 net/spdy/hpack_input_stream.cc uint32 new_bits = static_cast<uint32>(buffer_[byte_offset]); buffer_ 158 net/spdy/hpack_input_stream.cc CHECK_GE(buffer_.size(), byte_count); buffer_ 160 net/spdy/hpack_input_stream.cc CHECK_GT(buffer_.size(), 0u); buffer_ 162 net/spdy/hpack_input_stream.cc buffer_.remove_prefix(byte_count); buffer_ 73 net/spdy/hpack_input_stream.h base::StringPiece buffer_; buffer_ 41 net/spdy/hpack_output_stream.cc buffer_.swap(*output); buffer_ 42 net/spdy/hpack_output_stream.cc buffer_.clear(); buffer_ 54 net/spdy/hpack_output_stream.cc buffer_.append(1, bits << (8 - bit_size)); buffer_ 58 net/spdy/hpack_output_stream.cc *buffer_.rbegin() |= bits << (8 - new_bit_offset); buffer_ 62 net/spdy/hpack_output_stream.cc *buffer_.rbegin() |= bits >> (new_bit_offset - 8); buffer_ 63 net/spdy/hpack_output_stream.cc buffer_.append(1, bits << (16 - new_bit_offset)); buffer_ 82 net/spdy/hpack_output_stream.cc buffer_.append(1, (I & 0x7f) | 0x80); buffer_ 96 net/spdy/hpack_output_stream.cc buffer_.append(str.data(), str.size()); buffer_ 89 net/spdy/hpack_output_stream.h std::string buffer_; buffer_ 18 net/spdy/spdy_buffer_producer.cc : buffer_(buffer.Pass()) {} buffer_ 23 net/spdy/spdy_buffer_producer.cc DCHECK(buffer_); buffer_ 24 net/spdy/spdy_buffer_producer.cc return buffer_.Pass(); buffer_ 43 net/spdy/spdy_buffer_producer.h scoped_ptr<SpdyBuffer> buffer_; buffer_ 36 net/spdy/spdy_frame_builder.cc : buffer_(new char[size]), buffer_ 48 net/spdy/spdy_frame_builder.cc return buffer_.get() + length_; buffer_ 75 net/spdy/spdy_frame_builder.h SpdyFrame* rv = new SpdyFrame(buffer_.release(), length_, true); buffer_ 130 net/spdy/spdy_frame_builder.h scoped_ptr<char[]> buffer_; buffer_ 78 net/spdy/spdy_framer_test.cc CHECK(buffer_.get() == NULL); buffer_ 81 net/spdy/spdy_framer_test.cc buffer_.reset(new char[kMaxDecompressedSize]); buffer_ 100 net/spdy/spdy_framer_test.cc CHECK(buffer_.get() != NULL); buffer_ 104 net/spdy/spdy_framer_test.cc memcpy(buffer_.get() + size_, header_data, len); buffer_ 127 net/spdy/spdy_framer_test.cc memcpy(buffer_.get(), frame->data(), framer.GetSynStreamMinimumSize()); buffer_ 138 net/spdy/spdy_framer_test.cc memcpy(buffer_.get(), frame->data(), framer.GetHeadersMinimumSize()); buffer_ 169 net/spdy/spdy_framer_test.cc memcpy(buffer_.get(), frame->data(), framer.GetHeadersMinimumSize()); buffer_ 185 net/spdy/spdy_framer_test.cc memcpy(buffer_.get(), frame->data(), framer.GetPushPromiseMinimumSize()); buffer_ 195 net/spdy/spdy_framer_test.cc return buffer_.release(); buffer_ 210 net/spdy/spdy_framer_test.cc scoped_ptr<char[]> buffer_; buffer_ 10 net/spdy/spdy_pinnable_buffer_piece.cc : buffer_(0), length_(0) {} buffer_ 15 net/spdy/spdy_pinnable_buffer_piece.cc if (!storage_ && buffer_ != NULL && length_ != 0) { buffer_ 17 net/spdy/spdy_pinnable_buffer_piece.cc std::copy(buffer_, buffer_ + length_, storage_.get()); buffer_ 18 net/spdy/spdy_pinnable_buffer_piece.cc buffer_ = storage_.get(); buffer_ 27 net/spdy/spdy_pinnable_buffer_piece.cc const char* buffer = buffer_; buffer_ 28 net/spdy/spdy_pinnable_buffer_piece.cc buffer_ = other->buffer_; buffer_ 29 net/spdy/spdy_pinnable_buffer_piece.cc other->buffer_ = buffer; buffer_ 28 net/spdy/spdy_pinnable_buffer_piece.h return buffer_; buffer_ 36 net/spdy/spdy_pinnable_buffer_piece.h return base::StringPiece(buffer_, length_); buffer_ 52 net/spdy/spdy_pinnable_buffer_piece.h const char * buffer_; buffer_ 60 net/spdy/spdy_prefixed_buffer_reader.cc out->buffer_ = prefix_; buffer_ 68 net/spdy/spdy_prefixed_buffer_reader.cc out->buffer_ = out->storage_.get(); buffer_ 74 net/spdy/spdy_prefixed_buffer_reader.cc out->buffer_ = suffix_; buffer_ 48 net/test/embedded_test_server/http_request.cc data.AppendToString(&buffer_); buffer_ 49 net/test/embedded_test_server/http_request.cc DCHECK_LE(buffer_.size() + data.size(), kRequestSizeLimit) << buffer_ 54 net/test/embedded_test_server/http_request.cc size_t eoln_position = buffer_.find("\r\n", buffer_position_); buffer_ 57 net/test/embedded_test_server/http_request.cc std::string result = buffer_.substr(buffer_position_, line_length); buffer_ 81 net/test/embedded_test_server/http_request.cc if (buffer_.find("\r\n\r\n", buffer_position_) == std::string::npos) buffer_ 152 net/test/embedded_test_server/http_request.cc const size_t available_bytes = buffer_.size() - buffer_position_; buffer_ 156 net/test/embedded_test_server/http_request.cc http_request_->content.append(buffer_.data() + buffer_position_, buffer_ 176 net/test/embedded_test_server/http_request.cc buffer_.clear(); buffer_ 103 net/test/embedded_test_server/http_request.h std::string buffer_; buffer_ 23 net/tools/balsa/balsa_headers_test.cc buffer_.reset(new BalsaBuffer); buffer_ 28 net/tools/balsa/balsa_headers_test.cc scoped_ptr<BalsaBuffer> buffer_; buffer_ 56 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(1u, buffer_->num_blocks()); buffer_ 61 net/tools/balsa/balsa_headers_test.cc StringPiece sp1 = buffer_->Write(StringPiece("hello"), &index1); buffer_ 62 net/tools/balsa/balsa_headers_test.cc StringPiece sp2 = buffer_->Write(StringPiece(", world"), &index2); buffer_ 64 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 70 net/tools/balsa/balsa_headers_test.cc StringPiece(buffer_->GetPtr(1), buffer_->bytes_used(1))); buffer_ 79 net/tools/balsa/balsa_headers_test.cc StringPiece sp1 = buffer_->Write(as, &index1); buffer_ 80 net/tools/balsa/balsa_headers_test.cc StringPiece sp2 = buffer_->Write(bs, &index2); buffer_ 81 net/tools/balsa/balsa_headers_test.cc StringPiece sp3 = buffer_->Write(cs, &index3); buffer_ 83 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(3u, buffer_->num_blocks()); buffer_ 90 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ("aacccc", StringPiece(buffer_->GetPtr(1), buffer_->bytes_used(1))); buffer_ 91 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(sp2, StringPiece(buffer_->GetPtr(2), buffer_->bytes_used(2))); buffer_ 99 net/tools/balsa/balsa_headers_test.cc buffer_->WriteToContiguousBuffer(as); buffer_ 100 net/tools/balsa/balsa_headers_test.cc buffer_->WriteToContiguousBuffer(bs); buffer_ 101 net/tools/balsa/balsa_headers_test.cc buffer_->WriteToContiguousBuffer(cs); buffer_ 103 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(1u, buffer_->num_blocks()); buffer_ 105 net/tools/balsa/balsa_headers_test.cc StringPiece(buffer_->GetPtr(0), buffer_->bytes_used(0))); buffer_ 110 net/tools/balsa/balsa_headers_test.cc StringPiece sp1 = buffer_->Write(StringPiece("hello"), &index1); buffer_ 111 net/tools/balsa/balsa_headers_test.cc buffer_->NoMoreWriteToContiguousBuffer(); buffer_ 112 net/tools/balsa/balsa_headers_test.cc StringPiece sp2 = buffer_->Write(StringPiece(", world"), &index2); buffer_ 114 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 119 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(sp1, StringPiece(buffer_->GetPtr(1), buffer_->bytes_used(1))); buffer_ 120 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(sp2, StringPiece(buffer_->GetPtr(0), buffer_->bytes_used(0))); buffer_ 124 net/tools/balsa/balsa_headers_test.cc buffer_->Write("hello", NULL); buffer_ 125 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 126 net/tools/balsa/balsa_headers_test.cc buffer_->Clear(); buffer_ 127 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(1u, buffer_->num_blocks()); buffer_ 131 net/tools/balsa/balsa_headers_test.cc buffer_->Write("hello", NULL); buffer_ 133 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 136 net/tools/balsa/balsa_headers_test.cc buffer_->Swap(anotherBuffer_.get()); buffer_ 138 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(1u, buffer_->num_blocks()); buffer_ 146 net/tools/balsa/balsa_headers_test.cc buffer_->Write("hello", NULL); buffer_ 148 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 151 net/tools/balsa/balsa_headers_test.cc anotherBuffer_->CopyFrom(*buffer_); buffer_ 153 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ(2u, buffer_->num_blocks()); buffer_ 155 net/tools/balsa/balsa_headers_test.cc ASSERT_EQ("hello", StringPiece(buffer_->GetPtr(1), buffer_->bytes_used(1))); buffer_ 11 net/tools/flip_server/ring_buffer.cc : buffer_(new char[buffer_size]), buffer_ 62 net/tools/flip_server/ring_buffer.cc this->buffer_[this->write_idx_] = *p; buffer_ 77 net/tools/flip_server/ring_buffer.cc *ptr = buffer_.get() + write_idx_; buffer_ 91 net/tools/flip_server/ring_buffer.cc *ptr = buffer_.get() + read_idx_; buffer_ 133 net/tools/flip_server/ring_buffer.cc *p = this->buffer_[this->read_idx_]; buffer_ 171 net/tools/flip_server/ring_buffer.cc memmove(buffer_.get(), read_ptr, read_size); buffer_ 233 net/tools/flip_server/ring_buffer.cc buffer_.reset(new_buffer); buffer_ 94 net/tools/flip_server/ring_buffer.h const char* buffer() const { return buffer_.get(); } buffer_ 100 net/tools/flip_server/ring_buffer.h scoped_ptr<char[]> buffer_; buffer_ 29 net/udp/udp_socket_unittest.cc : buffer_(new IOBufferWithSize(kMaxRead)) { buffer_ 37 net/udp/udp_socket_unittest.cc buffer_.get(), kMaxRead, &recv_from_address_, callback.callback()); buffer_ 42 net/udp/udp_socket_unittest.cc return std::string(buffer_->data(), rv); buffer_ 81 net/udp/udp_socket_unittest.cc int rv = socket->Read(buffer_.get(), kMaxRead, callback.callback()); buffer_ 86 net/udp/udp_socket_unittest.cc return std::string(buffer_->data(), rv); buffer_ 115 net/udp/udp_socket_unittest.cc scoped_refptr<IOBufferWithSize> buffer_; buffer_ 521 net/udp/udp_socket_unittest.cc rv = server.RecvFrom(buffer_.get(), kMaxRead, &from, callback.callback()); buffer_ 79 net/url_request/url_fetcher_core.cc buffer_(new IOBuffer(kBufferSize)), buffer_ 436 net/url_request/url_fetcher_core.cc WriteBuffer(new DrainableIOBuffer(buffer_.get(), bytes_read)); buffer_ 441 net/url_request/url_fetcher_core.cc } while (request_->Read(buffer_.get(), kBufferSize, &bytes_read)); buffer_ 849 net/url_request/url_fetcher_core.cc request_->Read(buffer_.get(), kBufferSize, &bytes_read); buffer_ 223 net/url_request/url_fetcher_core.h scoped_refptr<IOBuffer> buffer_; buffer_ 69 net/websockets/websocket_deflater.cc buffer_.push_back('\x00'); buffer_ 88 net/websockets/websocket_deflater.cc buffer_.resize(buffer_.size() - 4); buffer_ 96 net/websockets/websocket_deflater.cc buffer_.insert(buffer_.end(), &data[0], &data[sizeof(data)]); buffer_ 100 net/websockets/websocket_deflater.cc std::deque<char>::iterator begin = buffer_.begin(); buffer_ 101 net/websockets/websocket_deflater.cc std::deque<char>::iterator end = begin + std::min(size, buffer_.size()); buffer_ 105 net/websockets/websocket_deflater.cc buffer_.erase(begin, end); buffer_ 122 net/websockets/websocket_deflater.cc buffer_.insert(buffer_.end(), &fixed_buffer_[0], &fixed_buffer_[0] + size); buffer_ 57 net/websockets/websocket_deflater.h size_t CurrentOutputSize() const { return buffer_.size(); } buffer_ 65 net/websockets/websocket_deflater.h std::deque<char> buffer_; buffer_ 57 net/websockets/websocket_frame_parser.cc buffer_.insert(buffer_.end(), data, data + length); buffer_ 59 net/websockets/websocket_frame_parser.cc while (current_read_pos_ < buffer_.size()) { buffer_ 78 net/websockets/websocket_frame_parser.cc DCHECK(current_read_pos_ == buffer_.size()); buffer_ 84 net/websockets/websocket_frame_parser.cc buffer_.erase(buffer_.begin(), buffer_.begin() + current_read_pos_); buffer_ 93 net/websockets/websocket_frame_parser.cc DCHECK_LT(buffer_.size(), kMaximumFrameHeaderSize); buffer_ 104 net/websockets/websocket_frame_parser.cc const char* start = &buffer_.front() + current_read_pos_; buffer_ 106 net/websockets/websocket_frame_parser.cc const char* end = &buffer_.front() + buffer_.size(); buffer_ 145 net/websockets/websocket_frame_parser.cc buffer_.clear(); buffer_ 174 net/websockets/websocket_frame_parser.cc const char* current = &buffer_.front() + current_read_pos_; buffer_ 175 net/websockets/websocket_frame_parser.cc const char* end = &buffer_.front() + buffer_.size(); buffer_ 67 net/websockets/websocket_frame_parser.h std::vector<char> buffer_; buffer_ 171 net/websockets/websocket_inflater.cc buffer_(capacity_ + 1), // 1 for sentinel buffer_ 178 net/websockets/websocket_inflater.cc return (tail_ + buffer_.size() - head_) % buffer_.size(); buffer_ 182 net/websockets/websocket_inflater.cc DCHECK_LT(tail_, buffer_.size()); buffer_ 183 net/websockets/websocket_inflater.cc return std::make_pair(&buffer_[tail_], buffer_ 184 net/websockets/websocket_inflater.cc std::min(capacity_ - Size(), buffer_.size() - tail_)); buffer_ 192 net/websockets/websocket_inflater.cc size_t num_bytes_to_copy = std::min(size, buffer_.size() - head_); buffer_ 193 net/websockets/websocket_inflater.cc DCHECK_LT(head_, buffer_.size()); buffer_ 194 net/websockets/websocket_inflater.cc memcpy(&dest[num_bytes_copied], &buffer_[head_], num_bytes_to_copy); buffer_ 204 net/websockets/websocket_inflater.cc DCHECK_LT(head_, buffer_.size()); buffer_ 205 net/websockets/websocket_inflater.cc memcpy(&dest[num_bytes_copied], &buffer_[head_], num_bytes_to_copy); buffer_ 214 net/websockets/websocket_inflater.cc head_ = (head_ + advance) % buffer_.size(); buffer_ 219 net/websockets/websocket_inflater.cc tail_ = (tail_ + advance) % buffer_.size(); buffer_ 86 net/websockets/websocket_inflater.h std::vector<char> buffer_; buffer_ 91 ppapi/examples/media_stream_video/media_stream_video.cc GLuint buffer_; buffer_ 375 ppapi/examples/media_stream_video/media_stream_video.cc glGenBuffers(1, &buffer_); buffer_ 376 ppapi/examples/media_stream_video/media_stream_video.cc glBindBuffer(GL_ARRAY_BUFFER, buffer_); buffer_ 133 ppapi/native_client/src/trusted/plugin/file_downloader.cc buffer_.clear(); buffer_ 407 ppapi/native_client/src/trusted/plugin/file_downloader.cc buffer_.insert(buffer_.end(), &temp_buffer_[0], &temp_buffer_[pp_error]); buffer_ 165 ppapi/native_client/src/trusted/plugin/file_downloader.h const std::deque<char>& buffer() const { return buffer_; } buffer_ 216 ppapi/native_client/src/trusted/plugin/file_downloader.h std::deque<char> buffer_; buffer_ 16 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc buffer_ = reinterpret_cast<char *>(malloc(nbytes_)); buffer_ 17 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc if (NULL == buffer_) { buffer_ 21 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc buffer_[0] = '\0'; buffer_ 26 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc buffer_[0] = '\0'; buffer_ 32 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc free(buffer_); buffer_ 33 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc buffer_ = NULL; buffer_ 45 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc insert_pt = buffer_ + insert_; buffer_ 54 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc new_buffer = reinterpret_cast<char *>(realloc(buffer_, 2 * nbytes_)); buffer_ 61 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.cc buffer_ = new_buffer; buffer_ 25 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.h return std::string(buffer_, insert_); buffer_ 31 ppapi/native_client/src/untrusted/nacl_ppapi_util/string_buffer.h char *buffer_; buffer_ 21 ppapi/proxy/audio_buffer_resource.cc DCHECK_EQ(buffer_->header.type, MediaStreamBuffer::TYPE_AUDIO); buffer_ 25 ppapi/proxy/audio_buffer_resource.cc CHECK(!buffer_) << "An unused (or unrecycled) buffer is destroyed."; buffer_ 33 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 37 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.timestamp; buffer_ 41 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 45 ppapi/proxy/audio_buffer_resource.cc buffer_->audio.timestamp = timestamp; buffer_ 49 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 53 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.sample_rate; buffer_ 57 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 65 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 69 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.number_of_channels; buffer_ 73 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 77 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.number_of_samples; buffer_ 81 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 85 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.data; buffer_ 89 ppapi/proxy/audio_buffer_resource.cc if (!buffer_) { buffer_ 93 ppapi/proxy/audio_buffer_resource.cc return buffer_->audio.data_size; buffer_ 97 ppapi/proxy/audio_buffer_resource.cc return buffer_; buffer_ 105 ppapi/proxy/audio_buffer_resource.cc DCHECK(buffer_); buffer_ 107 ppapi/proxy/audio_buffer_resource.cc buffer_ = NULL; buffer_ 49 ppapi/proxy/audio_buffer_resource.h MediaStreamBuffer* buffer_; buffer_ 80 ppapi/proxy/file_io_resource.cc DCHECK(!buffer_.get()); buffer_ 81 ppapi/proxy/file_io_resource.cc buffer_.reset(new char[bytes_to_read_]); buffer_ 83 ppapi/proxy/file_io_resource.cc file_handle_->raw_handle(), offset_, buffer_.get(), bytes_to_read_); buffer_ 93 ppapi/proxy/file_io_resource.cc buffer_(buffer), buffer_ 106 ppapi/proxy/file_io_resource.cc file_handle_->raw_handle(), buffer_, bytes_to_write_); buffer_ 109 ppapi/proxy/file_io_resource.cc file_handle_->raw_handle(), offset_, buffer_, bytes_to_write_); buffer_ 139 ppapi/proxy/file_io_resource.h char* buffer() const { return buffer_.get(); } buffer_ 148 ppapi/proxy/file_io_resource.h scoped_ptr<char[]> buffer_; buffer_ 170 ppapi/proxy/file_io_resource.h const char* buffer_; buffer_ 67 ppapi/proxy/gamepad_resource.cc if (!buffer_) { buffer_ 88 ppapi/proxy/gamepad_resource.cc version = ReadBegin(&buffer_->sequence); buffer_ 89 ppapi/proxy/gamepad_resource.cc memcpy(&read_into, &buffer_->buffer, sizeof(read_into)); buffer_ 93 ppapi/proxy/gamepad_resource.cc } while (ReadRetry(&buffer_->sequence, version)); buffer_ 111 ppapi/proxy/gamepad_resource.cc buffer_ = static_cast<const ContentGamepadHardwareBuffer*>( buffer_ 49 ppapi/proxy/gamepad_resource.h const ContentGamepadHardwareBuffer* buffer_; buffer_ 30 ppapi/proxy/plugin_array_buffer_var.cc : buffer_(size_in_bytes), buffer_ 65 ppapi/proxy/plugin_array_buffer_var.cc if (buffer_.empty()) buffer_ 67 ppapi/proxy/plugin_array_buffer_var.cc return &(buffer_[0]); buffer_ 39 ppapi/proxy/plugin_array_buffer_var.h std::vector<uint8> buffer_; buffer_ 175 ppapi/proxy/url_loader_resource.cc if (!buffer_.empty()) buffer_ 276 ppapi/proxy/url_loader_resource.cc buffer_.insert(buffer_.end(), data, data + data_length); buffer_ 286 ppapi/proxy/url_loader_resource.cc (buffer_.size() >= static_cast<size_t>( buffer_ 288 ppapi/proxy/url_loader_resource.cc DVLOG(1) << "Suspending async load - buffer size: " << buffer_.size(); buffer_ 381 ppapi/proxy/url_loader_resource.cc size_t bytes_to_copy = std::min(buffer_.size(), user_buffer_size_); buffer_ 382 ppapi/proxy/url_loader_resource.cc std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); buffer_ 383 ppapi/proxy/url_loader_resource.cc buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); buffer_ 387 ppapi/proxy/url_loader_resource.cc buffer_.size() <= static_cast<size_t>( buffer_ 389 ppapi/proxy/url_loader_resource.cc DVLOG(1) << "Resuming async load - buffer size: " << buffer_.size(); buffer_ 126 ppapi/proxy/url_loader_resource.h std::deque<char> buffer_; buffer_ 20 ppapi/proxy/video_frame_resource.cc DCHECK_EQ(buffer_->header.type, MediaStreamBuffer::TYPE_VIDEO); buffer_ 24 ppapi/proxy/video_frame_resource.cc CHECK(!buffer_) << "An unused (or unrecycled) frame is destroyed."; buffer_ 32 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 36 ppapi/proxy/video_frame_resource.cc return buffer_->video.timestamp; buffer_ 40 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 44 ppapi/proxy/video_frame_resource.cc buffer_->video.timestamp = timestamp; buffer_ 48 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 52 ppapi/proxy/video_frame_resource.cc return buffer_->video.format; buffer_ 56 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 60 ppapi/proxy/video_frame_resource.cc *size = buffer_->video.size; buffer_ 65 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 69 ppapi/proxy/video_frame_resource.cc return buffer_->video.data; buffer_ 73 ppapi/proxy/video_frame_resource.cc if (!buffer_) { buffer_ 77 ppapi/proxy/video_frame_resource.cc return buffer_->video.data_size; buffer_ 81 ppapi/proxy/video_frame_resource.cc return buffer_; buffer_ 89 ppapi/proxy/video_frame_resource.cc DCHECK(buffer_); buffer_ 91 ppapi/proxy/video_frame_resource.cc buffer_ = NULL; buffer_ 44 ppapi/proxy/video_frame_resource.h MediaStreamBuffer* buffer_; buffer_ 27 printing/backend/printing_info_win.h buffer_.reset(GetPrinterInfo(printer, level)); buffer_ 28 printing/backend/printing_info_win.h return buffer_; buffer_ 32 printing/backend/printing_info_win.h return reinterpret_cast<const PrinterInfoType*>(buffer_.get()); buffer_ 36 printing/backend/printing_info_win.h scoped_ptr<uint8[]> buffer_; buffer_ 45 printing/backend/printing_info_win.h buffer_.reset(GetDriverInfo(printer, level)); buffer_ 46 printing/backend/printing_info_win.h return buffer_; buffer_ 50 printing/backend/printing_info_win.h return reinterpret_cast<const DriverInfoType*>(buffer_.get()); buffer_ 54 printing/backend/printing_info_win.h scoped_ptr<uint8[]> buffer_; buffer_ 197 remoting/base/compound_buffer.cc : buffer_(buffer), buffer_ 202 remoting/base/compound_buffer.cc DCHECK(buffer_->locked()); buffer_ 209 remoting/base/compound_buffer.cc if (current_chunk_ < buffer_->chunks_.size()) { buffer_ 211 remoting/base/compound_buffer.cc const CompoundBuffer::DataChunk& chunk = buffer_->chunks_[current_chunk_]; buffer_ 225 remoting/base/compound_buffer.cc DCHECK_EQ(position_, buffer_->total_bytes()); buffer_ 241 remoting/base/compound_buffer.cc const CompoundBuffer::DataChunk& chunk = buffer_->chunks_[current_chunk_]; buffer_ 254 remoting/base/compound_buffer.cc while (count > 0 && current_chunk_ < buffer_->chunks_.size()) { buffer_ 255 remoting/base/compound_buffer.cc const CompoundBuffer::DataChunk& chunk = buffer_->chunks_[current_chunk_]; buffer_ 117 remoting/base/compound_buffer.h const CompoundBuffer* buffer_; buffer_ 26 remoting/base/typed_buffer.h TypedBuffer() : buffer_(NULL), length_(0) { buffer_ 30 remoting/base/typed_buffer.h explicit TypedBuffer(uint32 length) : buffer_(NULL), length_(length) { buffer_ 32 remoting/base/typed_buffer.h buffer_ = reinterpret_cast<T*>(new uint8[length_]); buffer_ 36 remoting/base/typed_buffer.h TypedBuffer(RValue rvalue) : buffer_(NULL), length_(0) { buffer_ 43 remoting/base/typed_buffer.h if (buffer_) { buffer_ 44 remoting/base/typed_buffer.h delete[] reinterpret_cast<uint8*>(buffer_); buffer_ 45 remoting/base/typed_buffer.h buffer_ = NULL; buffer_ 60 remoting/base/typed_buffer.h assert(buffer_ != NULL); buffer_ 61 remoting/base/typed_buffer.h return *buffer_; buffer_ 64 remoting/base/typed_buffer.h assert(buffer_ != NULL); buffer_ 65 remoting/base/typed_buffer.h return buffer_; buffer_ 67 remoting/base/typed_buffer.h T* get() const { return buffer_; } buffer_ 74 remoting/base/typed_buffer.h return reinterpret_cast<T*>(reinterpret_cast<uint8*>(buffer_) + offset); buffer_ 80 remoting/base/typed_buffer.h operator Testable() const { return buffer_ ? &TypedBuffer::buffer_ : NULL; } buffer_ 84 remoting/base/typed_buffer.h std::swap(buffer_, other.buffer_); buffer_ 90 remoting/base/typed_buffer.h T* buffer_; buffer_ 45 remoting/client/audio_player_unittest.cc buffer_.reset(new char[kAudioFrameBytes + kPaddingBytes]); buffer_ 52 remoting/client/audio_player_unittest.cc uint8* buffer = reinterpret_cast<uint8*>(buffer_.get()); buffer_ 54 remoting/client/audio_player_unittest.cc AudioPlayer::AudioPlayerCallback(reinterpret_cast<void*>(buffer_.get()), buffer_ 65 remoting/client/audio_player_unittest.cc uint8* buffer = reinterpret_cast<uint8*>(buffer_.get()); buffer_ 89 remoting/client/audio_player_unittest.cc scoped_ptr<char[]> buffer_; buffer_ 37 remoting/client/plugin/pepper_view.cc return buffer_; buffer_ 41 remoting/client/plugin/pepper_view.cc pp::ImageData buffer_; buffer_ 51 remoting/host/token_validator_base.cc buffer_(new net::IOBuffer(kBufferSize)), buffer_ 86 remoting/host/token_validator_base.cc request_->Read(buffer_.get(), kBufferSize, &bytes_read); buffer_ 98 remoting/host/token_validator_base.cc data_.append(buffer_->data(), bytes_read); buffer_ 99 remoting/host/token_validator_base.cc } while (request_->Read(buffer_.get(), kBufferSize, &bytes_read)); buffer_ 78 remoting/host/token_validator_base.h scoped_refptr<net::IOBuffer> buffer_; buffer_ 25 remoting/protocol/message_decoder.cc buffer_.Append(data.get(), data_size); buffer_ 41 remoting/protocol/message_decoder.cc if (!next_payload_known_ || buffer_.total_bytes() < next_payload_) buffer_ 45 remoting/protocol/message_decoder.cc message_buffer->CopyFrom(buffer_, 0, next_payload_); buffer_ 47 remoting/protocol/message_decoder.cc buffer_.CropFront(next_payload_); buffer_ 57 remoting/protocol/message_decoder.cc if (buffer_.total_bytes() < kHeaderSize) buffer_ 62 remoting/protocol/message_decoder.cc header_buffer.CopyFrom(buffer_, 0, kHeaderSize); buffer_ 65 remoting/protocol/message_decoder.cc buffer_.CropFront(kHeaderSize); buffer_ 54 remoting/protocol/message_decoder.h CompoundBuffer buffer_; buffer_ 574 rlz/lib/rlz_lib_test.cc scoped_ptr<char[]> buffer_; buffer_ 580 rlz/lib/rlz_lib_test.cc explicit typed_buffer_ptr(size_t size) : buffer_(new char[size]) { buffer_ 584 rlz/lib/rlz_lib_test.cc buffer_.reset(new char[size]); buffer_ 588 rlz/lib/rlz_lib_test.cc return reinterpret_cast<T*>(buffer_.get()); buffer_ 27 rlz/win/lib/rlz_lib_win.cc scoped_ptr<char[]> buffer_; buffer_ 33 rlz/win/lib/rlz_lib_win.cc explicit typed_buffer_ptr(size_t size) : buffer_(new char[size]) { buffer_ 37 rlz/win/lib/rlz_lib_win.cc buffer_.reset(new char[size]); buffer_ 41 rlz/win/lib/rlz_lib_win.cc return reinterpret_cast<T*>(buffer_.get()); buffer_ 31 sandbox/win/src/internal_types.h CountedBuffer(void* buffer, uint32 size) : size_(size), buffer_(buffer) {} buffer_ 38 sandbox/win/src/internal_types.h return buffer_; buffer_ 43 sandbox/win/src/internal_types.h void* buffer_; buffer_ 51 sandbox/win/src/internal_types.h buffer_.vp = buffer; buffer_ 55 sandbox/win/src/internal_types.h buffer_.vp = NULL; buffer_ 56 sandbox/win/src/internal_types.h buffer_.i32 = i32; buffer_ 60 sandbox/win/src/internal_types.h return buffer_.i32; buffer_ 64 sandbox/win/src/internal_types.h return buffer_.vp; buffer_ 71 sandbox/win/src/internal_types.h } buffer_; buffer_ 122 sandbox/win/src/policy_low_level.cc buffer_ = reinterpret_cast<PolicyBuffer*>(memory); buffer_ 123 sandbox/win/src/policy_low_level.cc buffer_->opcode_count = 0; buffer_ 124 sandbox/win/src/policy_low_level.cc opcode_factory_ = new OpcodeFactory(buffer_, buffer_ 135 sandbox/win/src/policy_low_level.cc buffer_ = reinterpret_cast<PolicyBuffer*>(memory); buffer_ 136 sandbox/win/src/policy_low_level.cc memcpy(buffer_, other.buffer_, buffer_size); buffer_ 138 sandbox/win/src/policy_low_level.cc char* opcode_buffer = reinterpret_cast<char*>(&buffer_->opcodes[0]); buffer_ 180 sandbox/win/src/policy_low_level.cc if (last_call && (buffer_->opcode_count > 0)) { buffer_ 181 sandbox/win/src/policy_low_level.cc op = &buffer_->opcodes[buffer_->opcode_count - 1]; buffer_ 212 sandbox/win/src/policy_low_level.cc ++buffer_->opcode_count; buffer_ 294 sandbox/win/src/policy_low_level.cc ++buffer_->opcode_count; buffer_ 305 sandbox/win/src/policy_low_level.cc ++buffer_->opcode_count; buffer_ 312 sandbox/win/src/policy_low_level.cc size_t count = buffer_->opcode_count; buffer_ 317 sandbox/win/src/policy_low_level.cc PolicyOpcode& opcode = buffer_->opcodes[ix]; buffer_ 344 sandbox/win/src/policy_low_level.cc delete [] reinterpret_cast<char*>(buffer_); buffer_ 153 sandbox/win/src/policy_low_level.h return buffer_->opcode_count; buffer_ 175 sandbox/win/src/policy_low_level.h PolicyBuffer* buffer_; buffer_ 56 skia/ext/convolver.cc buffer_.resize(row_byte_width_ * max_y_filter_size); buffer_ 63 skia/ext/convolver.cc unsigned char* row = &buffer_[next_row_ * row_byte_width_]; buffer_ 94 skia/ext/convolver.cc row_addresses_[i] = &buffer_[cur_row * row_byte_width_]; buffer_ 106 skia/ext/convolver.cc std::vector<unsigned char> buffer_; buffer_ 160 sync/engine/net/server_connection_manager.cc int bytes_read = buffer_.length(); buffer_ 162 sync/engine/net/server_connection_manager.cc out_buffer->assign(buffer_); buffer_ 173 sync/engine/net/server_connection_manager.h std::string buffer_; buffer_ 14 sync/internal_api/protocol_event_buffer.cc : buffer_deleter_(&buffer_) {} buffer_ 19 sync/internal_api/protocol_event_buffer.cc buffer_.push_back(event.Clone().release()); buffer_ 20 sync/internal_api/protocol_event_buffer.cc if (buffer_.size() > kBufferSize) { buffer_ 21 sync/internal_api/protocol_event_buffer.cc ProtocolEvent* to_delete = buffer_.front(); buffer_ 22 sync/internal_api/protocol_event_buffer.cc buffer_.pop_front(); buffer_ 30 sync/internal_api/protocol_event_buffer.cc for (std::deque<ProtocolEvent*>::const_iterator it = buffer_.begin(); buffer_ 31 sync/internal_api/protocol_event_buffer.cc it != buffer_.end(); ++it) { buffer_ 34 sync/internal_api/protocol_event_buffer.h std::deque<ProtocolEvent*> buffer_; buffer_ 25 sync/internal_api/protocol_event_buffer_unittest.cc ProtocolEventBuffer buffer_; buffer_ 48 sync/internal_api/protocol_event_buffer_unittest.cc buffer_.RecordProtocolEvent(*e1); buffer_ 49 sync/internal_api/protocol_event_buffer_unittest.cc buffer_.RecordProtocolEvent(*e2); buffer_ 52 sync/internal_api/protocol_event_buffer_unittest.cc buffer_.GetBufferedProtocolEvents()); buffer_ 62 sync/internal_api/protocol_event_buffer_unittest.cc buffer_.RecordProtocolEvent(*e); buffer_ 66 sync/internal_api/protocol_event_buffer_unittest.cc buffer_.GetBufferedProtocolEvents()); buffer_ 74 sync/internal_api/syncapi_server_connection_manager.cc buffer_.assign(http->GetResponseContent(), http->GetResponseContentLength()); buffer_ 26 third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h buffer_.clear(); buffer_ 31 third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h buffer_.append(s); buffer_ 37 third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h return base::SHA1HashString(buffer_); buffer_ 41 third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h string buffer_; buffer_ 280 third_party/harfbuzz-ng/src/hb-ot-layout-gsubgpos-private.hh hb_buffer_t *buffer_) : buffer_ 282 third_party/harfbuzz-ng/src/hb-ot-layout-gsubgpos-private.hh font (font_), face (font->face), buffer (buffer_), buffer_ 283 third_party/harfbuzz-ng/src/hb-ot-layout-gsubgpos-private.hh direction (buffer_->props.direction), buffer_ 112 third_party/libxml/chromium/libxml_utils.cc if (buffer_) buffer_ 113 third_party/libxml/chromium/libxml_utils.cc xmlBufferFree(buffer_); buffer_ 117 third_party/libxml/chromium/libxml_utils.cc buffer_ = xmlBufferCreate(); buffer_ 118 third_party/libxml/chromium/libxml_utils.cc writer_ = xmlNewTextWriterMemory(buffer_, 0); buffer_ 167 third_party/libxml/chromium/libxml_utils.h if (buffer_ == NULL) buffer_ 169 third_party/libxml/chromium/libxml_utils.h return XmlStringToStdString(buffer_->content); buffer_ 177 third_party/libxml/chromium/libxml_utils.h xmlBufferPtr buffer_; buffer_ 93 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_end_ = buffer_; buffer_ 196 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = NULL; buffer_ 197 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_end_ = buffer_; buffer_ 218 third_party/protobuf/src/google/protobuf/io/coded_stream.cc *data = buffer_; buffer_ 227 third_party/protobuf/src/google/protobuf/io/coded_stream.cc memcpy(buffer, buffer_, current_buffer_size); buffer_ 234 third_party/protobuf/src/google/protobuf/io/coded_stream.cc memcpy(buffer, buffer_, size); buffer_ 256 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer->append(reinterpret_cast<const char*>(buffer_), buffer_ 264 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer->append(reinterpret_cast<const char*>(buffer_), size); buffer_ 277 third_party/protobuf/src/google/protobuf/io/coded_stream.cc ptr = buffer_; buffer_ 294 third_party/protobuf/src/google/protobuf/io/coded_stream.cc ptr = buffer_; buffer_ 352 third_party/protobuf/src/google/protobuf/io/coded_stream.cc (buffer_end_ > buffer_ && !(buffer_end_[-1] & 0x80))) { buffer_ 353 third_party/protobuf/src/google/protobuf/io/coded_stream.cc const uint8* end = ReadVarint32FromArray(buffer_, value); buffer_ 355 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = end; buffer_ 366 third_party/protobuf/src/google/protobuf/io/coded_stream.cc if (buffer_ == buffer_end_) { buffer_ 398 third_party/protobuf/src/google/protobuf/io/coded_stream.cc const uint8* end = ReadVarint32FromArray(buffer_, &tag); buffer_ 402 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = end; buffer_ 432 third_party/protobuf/src/google/protobuf/io/coded_stream.cc while (buffer_ == buffer_end_) { buffer_ 435 third_party/protobuf/src/google/protobuf/io/coded_stream.cc b = *buffer_; buffer_ 449 third_party/protobuf/src/google/protobuf/io/coded_stream.cc (buffer_end_ > buffer_ && !(buffer_end_[-1] & 0x80))) { buffer_ 453 third_party/protobuf/src/google/protobuf/io/coded_stream.cc const uint8* ptr = buffer_; buffer_ 476 third_party/protobuf/src/google/protobuf/io/coded_stream.cc Advance(ptr - buffer_); buffer_ 520 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = reinterpret_cast<const uint8*>(void_buffer); buffer_ 521 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_end_ = buffer_ + buffer_size; buffer_ 545 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = NULL; buffer_ 555 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_(NULL), buffer_ 588 third_party/protobuf/src/google/protobuf/io/coded_stream.cc *data = buffer_; buffer_ 595 third_party/protobuf/src/google/protobuf/io/coded_stream.cc memcpy(buffer_, data, buffer_size_); buffer_ 601 third_party/protobuf/src/google/protobuf/io/coded_stream.cc memcpy(buffer_, data, size); buffer_ 616 third_party/protobuf/src/google/protobuf/io/coded_stream.cc uint8* ptr = use_fast ? buffer_ : bytes; buffer_ 631 third_party/protobuf/src/google/protobuf/io/coded_stream.cc uint8* ptr = use_fast ? buffer_ : bytes; buffer_ 676 third_party/protobuf/src/google/protobuf/io/coded_stream.cc uint8* target = buffer_; buffer_ 775 third_party/protobuf/src/google/protobuf/io/coded_stream.cc uint8* target = buffer_; buffer_ 802 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = reinterpret_cast<uint8*>(void_buffer); buffer_ 806 third_party/protobuf/src/google/protobuf/io/coded_stream.cc buffer_ = NULL; buffer_ 459 third_party/protobuf/src/google/protobuf/io/coded_stream.h const uint8* buffer_; buffer_ 724 third_party/protobuf/src/google/protobuf/io/coded_stream.h uint8* buffer_; buffer_ 758 third_party/protobuf/src/google/protobuf/io/coded_stream.h if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { buffer_ 759 third_party/protobuf/src/google/protobuf/io/coded_stream.h *value = *buffer_; buffer_ 768 third_party/protobuf/src/google/protobuf/io/coded_stream.h if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && *buffer_ < 0x80) { buffer_ 769 third_party/protobuf/src/google/protobuf/io/coded_stream.h *value = *buffer_; buffer_ 817 third_party/protobuf/src/google/protobuf/io/coded_stream.h memcpy(value, buffer_, sizeof(*value)); buffer_ 831 third_party/protobuf/src/google/protobuf/io/coded_stream.h memcpy(value, buffer_, sizeof(*value)); buffer_ 843 third_party/protobuf/src/google/protobuf/io/coded_stream.h if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && buffer_[0] < 0x80) { buffer_ 844 third_party/protobuf/src/google/protobuf/io/coded_stream.h last_tag_ = buffer_[0]; buffer_ 863 third_party/protobuf/src/google/protobuf/io/coded_stream.h if (GOOGLE_PREDICT_TRUE(buffer_ < buffer_end_) && buffer_[0] == expected) { buffer_ 871 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_[0] == static_cast<uint8>(expected | 0x80) && buffer_ 872 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_[1] == static_cast<uint8>(expected >> 7)) { buffer_ 901 third_party/protobuf/src/google/protobuf/io/coded_stream.h *data = buffer_; buffer_ 902 third_party/protobuf/src/google/protobuf/io/coded_stream.h *size = buffer_end_ - buffer_; buffer_ 909 third_party/protobuf/src/google/protobuf/io/coded_stream.h if (buffer_ == buffer_end_ && buffer_ 928 third_party/protobuf/src/google/protobuf/io/coded_stream.h uint8* result = buffer_; buffer_ 1042 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_ += amount; buffer_ 1046 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_ += amount; buffer_ 1078 third_party/protobuf/src/google/protobuf/io/coded_stream.h return buffer_end_ - buffer_; buffer_ 1083 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_(NULL), buffer_ 1104 third_party/protobuf/src/google/protobuf/io/coded_stream.h buffer_(buffer), buffer_ 56 third_party/protobuf/src/google/protobuf/io/coded_stream_inl.h memcpy(string_as_array(buffer), buffer_, size); buffer_ 135 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc static uint8 buffer_[kBufferSize]; buffer_ 138 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; buffer_ 186 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); buffer_ 187 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 201 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); buffer_ 202 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 247 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc buffer_[0] = '\0'; buffer_ 248 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size); buffer_ 249 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 279 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); buffer_ 286 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc CodedInputStream::ExpectTagFromArray(buffer_, buffer_ 288 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_TRUE(buffer_ + kVarintCases_case.size == buffer_ 289 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); buffer_ 292 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); buffer_ 297 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); buffer_ 298 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 317 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 330 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcmp(buffer_, kVarintCases_case.bytes, kVarintCases_case.size)); buffer_ 334 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 347 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcmp(buffer_, kVarintCases_case.bytes, kVarintCases_case.size)); buffer_ 360 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 382 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 432 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintErrorCases_case.bytes, kVarintErrorCases_case.size); buffer_ 433 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, kVarintErrorCases_case.size, buffer_ 442 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kVarintErrorCases_case.bytes, kVarintErrorCases_case.size); buffer_ 443 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, kVarintErrorCases_case.size, buffer_ 522 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kFixed32Cases_case.bytes, sizeof(kFixed32Cases_case.bytes)); buffer_ 523 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 537 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kFixed64Cases_case.bytes, sizeof(kFixed64Cases_case.bytes)); buffer_ 538 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 552 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 564 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(0, memcmp(buffer_, kFixed32Cases_case.bytes, sizeof(uint32))); buffer_ 568 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 580 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(0, memcmp(buffer_, kFixed64Cases_case.bytes, sizeof(uint64))); buffer_ 586 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kFixed32Cases_case.bytes, sizeof(kFixed32Cases_case.bytes)); buffer_ 590 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc buffer_, &value); buffer_ 592 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_TRUE(end == buffer_ + sizeof(value)); buffer_ 596 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kFixed64Cases_case.bytes, sizeof(kFixed64Cases_case.bytes)); buffer_ 600 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc buffer_, &value); buffer_ 602 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_TRUE(end == buffer_ + sizeof(value)); buffer_ 611 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kRawBytes, sizeof(kRawBytes)); buffer_ 612 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 626 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 638 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(0, memcmp(buffer_, kRawBytes, sizeof(kRawBytes))); buffer_ 642 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kRawBytes, sizeof(kRawBytes)); buffer_ 643 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 658 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 695 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc memcpy(buffer_, kSkipTestBytes, sizeof(kSkipTestBytes)); buffer_ 696 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 716 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), 8); buffer_ 723 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 728 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 734 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 3, ptr); buffer_ 740 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 8, ptr); buffer_ 745 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), 8); buffer_ 752 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 757 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 763 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 3, ptr); buffer_ 770 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 8, ptr); buffer_ 775 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayOutputStream output(buffer_, sizeof(buffer_), 8); buffer_ 782 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 787 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_, ptr); buffer_ 793 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 3, ptr); buffer_ 799 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 8, ptr); buffer_ 805 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc EXPECT_EQ(buffer_ + 30, ptr); buffer_ 813 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 843 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 885 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); buffer_ 925 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 942 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 954 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 968 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 980 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 1006 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 1038 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream raw_input(buffer_, sizeof(buffer_), 128); buffer_ 1086 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc ArrayInputStream input(buffer_, sizeof(buffer_)); buffer_ 1135 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc *data = buffer_; buffer_ 1136 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc *size = sizeof(buffer_); buffer_ 1143 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc *data = buffer_; buffer_ 1161 third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc char buffer_[1024]; buffer_ 46 third_party/protobuf/src/google/protobuf/io/printer.cc buffer_(NULL), buffer_ 181 third_party/protobuf/src/google/protobuf/io/printer.cc memcpy(buffer_, data, buffer_size_); buffer_ 187 third_party/protobuf/src/google/protobuf/io/printer.cc buffer_ = reinterpret_cast<char*>(void_buffer); buffer_ 191 third_party/protobuf/src/google/protobuf/io/printer.cc memcpy(buffer_, data, size); buffer_ 192 third_party/protobuf/src/google/protobuf/io/printer.cc buffer_ += size; buffer_ 122 third_party/protobuf/src/google/protobuf/io/printer.h char* buffer_; buffer_ 189 third_party/protobuf/src/google/protobuf/io/tokenizer.cc buffer_(NULL), buffer_ 234 third_party/protobuf/src/google/protobuf/io/tokenizer.cc current_char_ = buffer_[buffer_pos_]; buffer_ 248 third_party/protobuf/src/google/protobuf/io/tokenizer.cc record_target_->append(buffer_ + record_start_, buffer_size_ - record_start_); buffer_ 253 third_party/protobuf/src/google/protobuf/io/tokenizer.cc buffer_ = NULL; buffer_ 265 third_party/protobuf/src/google/protobuf/io/tokenizer.cc buffer_ = static_cast<const char*>(data); buffer_ 267 third_party/protobuf/src/google/protobuf/io/tokenizer.cc current_char_ = buffer_[0]; buffer_ 281 third_party/protobuf/src/google/protobuf/io/tokenizer.cc record_target_->append(buffer_ + record_start_, buffer_pos_ - record_start_); buffer_ 242 third_party/protobuf/src/google/protobuf/io/tokenizer.h const char* buffer_; // Current buffer returned from input_. buffer_ 233 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc *data = buffer_.get() + buffer_used_ - backup_bytes_; buffer_ 240 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc buffer_used_ = copying_stream_->Read(buffer_.get(), buffer_size_); buffer_ 253 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc *data = buffer_.get(); buffer_ 258 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) buffer_ 297 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc if (buffer_.get() == NULL) { buffer_ 298 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc buffer_.reset(new uint8[buffer_size_]); buffer_ 305 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc buffer_.reset(); buffer_ 340 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc *data = buffer_.get() + buffer_used_; buffer_ 369 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc if (copying_stream_->Write(buffer_.get(), buffer_used_)) { buffer_ 381 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc if (buffer_ == NULL) { buffer_ 382 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc buffer_.reset(new uint8[buffer_size_]); buffer_ 388 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc buffer_.reset(); buffer_ 234 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h scoped_array<uint8> buffer_; buffer_ 323 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h scoped_array<uint8> buffer_; buffer_ 918 third_party/protobuf/src/google/protobuf/text_format.cc buffer_(NULL), buffer_ 1007 third_party/protobuf/src/google/protobuf/text_format.cc memcpy(buffer_, data, buffer_size_); buffer_ 1013 third_party/protobuf/src/google/protobuf/text_format.cc buffer_ = reinterpret_cast<char*>(void_buffer); buffer_ 1017 third_party/protobuf/src/google/protobuf/text_format.cc memcpy(buffer_, data, size); buffer_ 1018 third_party/protobuf/src/google/protobuf/text_format.cc buffer_ += size; buffer_ 1023 third_party/protobuf/src/google/protobuf/text_format.cc char* buffer_; buffer_ 462 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawWrite(fd_, buffer_, cursor_); buffer_ 468 third_party/tcmalloc/chromium/src/deep-heap-profile.cc return ForwardCursor(snprintf(buffer_ + cursor_, size_ - cursor_, buffer_ 473 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 486 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 499 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 511 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 522 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 533 third_party/tcmalloc/chromium/src/deep-heap-profile.cc char* position = buffer_ + cursor_; buffer_ 115 third_party/tcmalloc/chromium/src/deep-heap-profile.h : buffer_(raw_buffer), buffer_ 138 third_party/tcmalloc/chromium/src/deep-heap-profile.h char *buffer_; buffer_ 57 tools/android/forwarder/forwarder.cc ret = HANDLE_EINTR(read(fd, buffer_, kBufferSize)); buffer_ 67 tools/android/forwarder/forwarder.cc ret = HANDLE_EINTR(write(fd, buffer_ + write_offset_, buffer_ 85 tools/android/forwarder/forwarder.cc char buffer_[kBufferSize]; buffer_ 57 tools/android/forwarder2/common.h const char* buffer() const { return buffer_; } buffer_ 60 tools/android/forwarder2/common.h buffer_[0] = 0; buffer_ 61 tools/android/forwarder2/common.h write_ptr_ = buffer_; buffer_ 67 tools/android/forwarder2/common.h if (write_ptr_ >= buffer_ + BufferSize) buffer_ 72 tools/android/forwarder2/common.h write_ptr_, BufferSize - (write_ptr_ - buffer_), format, ap); buffer_ 81 tools/android/forwarder2/common.h char buffer_[BufferSize]; buffer_ 150 tools/android/forwarder2/forwarder.cc ret = socket_from_->NonBlockingRead(buffer_, kBufferSize); buffer_ 170 tools/android/forwarder2/forwarder.cc ret = socket_to_->NonBlockingWrite(buffer_ + write_offset_, buffer_ 213 tools/android/forwarder2/forwarder.cc char buffer_[kBufferSize]; buffer_ 10 ui/events/gestures/velocity_calculator.cc : buffer_(new Point[buffer_size]) , buffer_ 34 ui/events/gestures/velocity_calculator.cc buffer_[index_].x = x; buffer_ 35 ui/events/gestures/velocity_calculator.cc buffer_[index_].y = y; buffer_ 36 ui/events/gestures/velocity_calculator.cc buffer_[index_].time = time; buffer_ 65 ui/events/gestures/velocity_calculator.cc mean_x += buffer_[i].x; buffer_ 66 ui/events/gestures/velocity_calculator.cc mean_y += buffer_[i].y; buffer_ 67 ui/events/gestures/velocity_calculator.cc mean_time += buffer_[i].time; buffer_ 89 ui/events/gestures/velocity_calculator.cc t_i = (buffer_[i].time - mean_time); buffer_ 90 ui/events/gestures/velocity_calculator.cc xt += (buffer_[i].x - mean_x) * t_i; buffer_ 91 ui/events/gestures/velocity_calculator.cc yt += (buffer_[i].y - mean_y) * t_i; buffer_ 36 ui/events/gestures/velocity_calculator.h HistoryBuffer buffer_; buffer_ 24 ui/gl/gl_surface_osmesa.cc buffer_.reset(); buffer_ 39 ui/gl/gl_surface_osmesa.cc scoped_ptr<int32[]> old_buffer(buffer_.release()); buffer_ 42 ui/gl/gl_surface_osmesa.cc buffer_.reset(new int32[new_size.GetArea()]); buffer_ 43 ui/gl/gl_surface_osmesa.cc memset(buffer_.get(), 0, new_size.GetArea() * sizeof(buffer_[0])); buffer_ 51 ui/gl/gl_surface_osmesa.cc buffer_[y * new_size.width() + x] = old_buffer[y * size_.width() + x]; buffer_ 75 ui/gl/gl_surface_osmesa.cc return buffer_.get(); buffer_ 37 ui/gl/gl_surface_osmesa.h scoped_ptr<int32[]> buffer_; buffer_ 30 url/url_canon.h CanonOutputT() : buffer_(NULL), buffer_len_(0), cur_len_(0) { buffer_ 45 url/url_canon.h return buffer_[offset]; buffer_ 51 url/url_canon.h buffer_[offset] = ch; buffer_ 72 url/url_canon.h return buffer_; buffer_ 75 url/url_canon.h return buffer_; buffer_ 94 url/url_canon.h buffer_[cur_len_] = ch; buffer_ 105 url/url_canon.h buffer_[cur_len_] = ch; buffer_ 116 url/url_canon.h buffer_[cur_len_ + i] = str[i]; buffer_ 135 url/url_canon.h T* buffer_; buffer_ 149 url/url_canon.h this->buffer_ = fixed_buffer_; buffer_ 153 url/url_canon.h if (this->buffer_ != fixed_buffer_) buffer_ 154 url/url_canon.h delete[] this->buffer_; buffer_ 159 url/url_canon.h memcpy(new_buf, this->buffer_, buffer_ 161 url/url_canon.h if (this->buffer_ != fixed_buffer_) buffer_ 162 url/url_canon.h delete[] this->buffer_; buffer_ 163 url/url_canon.h this->buffer_ = new_buf; buffer_ 13 url/url_canon_stdstring.cc buffer_ = str_->empty() ? NULL : &(*str_)[0]; buffer_ 28 url/url_canon_stdstring.cc buffer_ = str_->empty() ? NULL : &(*str_)[0]; buffer_ 102 webkit/browser/appcache/appcache_response.cc buffer_ = NULL; buffer_ 157 webkit/browser/appcache/appcache_response.cc DCHECK(!buffer_.get()); buffer_ 177 webkit/browser/appcache/appcache_response.cc buffer_ = new net::IOBuffer(size); buffer_ 178 webkit/browser/appcache/appcache_response.cc ReadRaw(kResponseInfoIndex, 0, buffer_.get(), size); buffer_ 187 webkit/browser/appcache/appcache_response.cc DCHECK(!buffer_.get()); buffer_ 190 webkit/browser/appcache/appcache_response.cc buffer_ = buf; buffer_ 209 webkit/browser/appcache/appcache_response.cc buffer_.get(), buffer_ 223 webkit/browser/appcache/appcache_response.cc Pickle pickle(buffer_->data(), result); buffer_ 266 webkit/browser/appcache/appcache_response.cc DCHECK(info_buffer_.get() || buffer_.get()); buffer_ 304 webkit/browser/appcache/appcache_response.cc DCHECK(!buffer_.get()); buffer_ 324 webkit/browser/appcache/appcache_response.cc buffer_ = new WrappedPickleIOBuffer(pickle); // takes ownership of pickle buffer_ 325 webkit/browser/appcache/appcache_response.cc WriteRaw(kResponseInfoIndex, 0, buffer_.get(), write_amount_); buffer_ 334 webkit/browser/appcache/appcache_response.cc DCHECK(!buffer_.get()); buffer_ 337 webkit/browser/appcache/appcache_response.cc buffer_ = buf; buffer_ 349 webkit/browser/appcache/appcache_response.cc kResponseContentIndex, write_position_, buffer_.get(), write_amount_); buffer_ 386 webkit/browser/appcache/appcache_response.cc DCHECK(info_buffer_.get() || buffer_.get()); buffer_ 121 webkit/browser/appcache/appcache_response.h scoped_refptr<net::IOBuffer> buffer_; buffer_ 54 webkit/browser/appcache/appcache_service_unittest.cc buffer_ = buf; buffer_ 113 webkit/browser/appcache/appcache_update_job.cc buffer_(new net::IOBuffer(kBufferSize)), buffer_ 202 webkit/browser/appcache/appcache_update_job.cc while (request->Read(buffer_.get(), kBufferSize, &bytes_read)) { buffer_ 260 webkit/browser/appcache/appcache_update_job.cc request_->Read(buffer_.get(), kBufferSize, &bytes_read); buffer_ 272 webkit/browser/appcache/appcache_update_job.cc manifest_data_.append(buffer_->data(), bytes_read); buffer_ 278 webkit/browser/appcache/appcache_update_job.cc buffer_.get(), buffer_ 152 webkit/browser/appcache/appcache_update_job.h scoped_refptr<net::IOBuffer> buffer_;