/external/chromium_org/ppapi/proxy/ |
audio_buffer_resource.cc | 20 buffer_(buffer) { 21 DCHECK_EQ(buffer_->header.type, MediaStreamBuffer::TYPE_AUDIO); 25 CHECK(!buffer_) << "An unused (or unrecycled) buffer is destroyed."; 33 if (!buffer_) { 37 return buffer_->audio.timestamp; 41 if (!buffer_) { 45 buffer_->audio.timestamp = timestamp; 49 if (!buffer_) { 53 return buffer_->audio.sample_rate; 57 if (!buffer_) { [all...] |
video_frame_resource.cc | 19 buffer_(buffer) { 20 DCHECK_EQ(buffer_->header.type, MediaStreamBuffer::TYPE_VIDEO); 24 CHECK(!buffer_) << "An unused (or unrecycled) frame is destroyed."; 32 if (!buffer_) { 36 return buffer_->video.timestamp; 40 if (!buffer_) { 44 buffer_->video.timestamp = timestamp; 48 if (!buffer_) { 52 return buffer_->video.format; 56 if (!buffer_) { [all...] |
/external/chromium_org/net/spdy/ |
spdy_pinnable_buffer_piece.cc | 10 : buffer_(0), length_(0) {} 15 if (!storage_ && buffer_ != NULL && length_ != 0) { 17 std::copy(buffer_, buffer_ + length_, storage_.get()); 18 buffer_ = storage_.get(); 27 const char* buffer = buffer_; 28 buffer_ = other->buffer_; 29 other->buffer_ = buffer;
|
spdy_buffer_producer.cc | 18 : buffer_(buffer.Pass()) {} 23 DCHECK(buffer_); 24 return buffer_.Pass();
|
spdy_pinnable_buffer_piece.h | 28 return buffer_; 36 return base::StringPiece(buffer_, length_); 52 const char * buffer_; member in struct:net::SpdyPinnableBufferPiece 54 // Null iff |buffer_| isn't pinned.
|
/external/chromium_org/extensions/renderer/ |
static_v8_external_ascii_string_resource.cc | 11 : buffer_(buffer) { 18 return buffer_.data(); 22 return buffer_.length();
|
/external/chromium_org/remoting/base/ |
typed_buffer.h | 26 TypedBuffer() : buffer_(NULL), length_(0) { 30 explicit TypedBuffer(uint32 length) : buffer_(NULL), length_(length) { 32 buffer_ = reinterpret_cast<T*>(new uint8[length_]); 36 TypedBuffer(RValue rvalue) : buffer_(NULL), length_(0) { 43 if (buffer_) { 44 delete[] reinterpret_cast<uint8*>(buffer_); 45 buffer_ = NULL; 60 assert(buffer_ != NULL); 61 return *buffer_; 64 assert(buffer_ != NULL) 90 T* buffer_; member in class:remoting::TypedBuffer [all...] |
/external/chromium_org/sync/internal_api/ |
protocol_event_buffer.cc | 14 : buffer_deleter_(&buffer_) {} 19 buffer_.push_back(event.Clone().release()); 20 if (buffer_.size() > kBufferSize) { 21 ProtocolEvent* to_delete = buffer_.front(); 22 buffer_.pop_front(); 30 for (std::deque<ProtocolEvent*>::const_iterator it = buffer_.begin(); 31 it != buffer_.end(); ++it) {
|
/external/chromium_org/ppapi/native_client/src/untrusted/nacl_ppapi_util/ |
string_buffer.cc | 16 buffer_ = reinterpret_cast<char *>(malloc(nbytes_)); 17 if (NULL == buffer_) { 21 buffer_[0] = '\0'; 26 buffer_[0] = '\0'; 32 free(buffer_); 33 buffer_ = NULL; 45 insert_pt = buffer_ + insert_; 54 new_buffer = reinterpret_cast<char *>(realloc(buffer_, 2 * nbytes_)); 61 buffer_ = new_buffer;
|
/external/chromium_org/sandbox/win/src/ |
internal_types.h | 31 CountedBuffer(void* buffer, uint32 size) : size_(size), buffer_(buffer) {} 38 return buffer_; 43 void* buffer_; member in class:sandbox::CountedBuffer 51 buffer_.vp = buffer; 55 buffer_.vp = NULL; 56 buffer_.i32 = i32; 60 return buffer_.i32; 64 return buffer_.vp; 71 } buffer_; member in class:sandbox::IPCInt
|
/external/chromium_org/printing/backend/ |
printing_info_win.h | 27 buffer_.reset(GetPrinterInfo(printer, level)); 28 return buffer_; 32 return reinterpret_cast<const PrinterInfoType*>(buffer_.get()); 36 scoped_ptr<uint8[]> buffer_; member in class:printing::internal::PrinterInfo 45 buffer_.reset(GetDriverInfo(printer, level)); 46 return buffer_; 50 return reinterpret_cast<const DriverInfoType*>(buffer_.get()); 54 scoped_ptr<uint8[]> buffer_; member in class:printing::internal::DriverInfo
|
/external/chromium_org/media/cast/framer/ |
frame_buffer_unittest.cc | 19 FrameBuffer buffer_; member in class:media::cast::FrameBufferTest 31 buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); 33 EXPECT_TRUE(buffer_.AssembleEncodedFrame(&frame)); 41 EXPECT_FALSE(buffer_.Complete()); 43 EXPECT_FALSE(buffer_.AssembleEncodedFrame(&frame)); 47 buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_); 48 EXPECT_TRUE(buffer_.Complete()); 49 EXPECT_FALSE(buffer_.is_key_frame()); 51 EXPECT_TRUE(buffer_.AssembleEncodedFrame(&frame)); 58 buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_) [all...] |
/external/chromium_org/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/ |
sha1-digest-function.h | 26 buffer_.clear(); 31 buffer_.append(s); 37 return base::SHA1HashString(buffer_); 41 string buffer_; member in class:invalidation::Sha1DigestFunction
|
/external/chromium_org/pdf/pdfium/ |
pdfium_mem_buffer_file_write.h | 20 const std::basic_string<unsigned char>& buffer() { return buffer_; } 21 size_t size() { return buffer_.size(); } 28 std::basic_string<unsigned char> buffer_; member in class:chrome_pdf::PDFiumMemBufferFileWrite
|
/external/chromium_org/v8/src/ |
regexp-macro-assembler-irregexp-inl.h | 23 ASSERT(pc_ <= buffer_.length()); 24 if (pc_ + 3 >= buffer_.length()) { 27 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; 33 ASSERT(pc_ <= buffer_.length()); 34 if (pc_ + 1 >= buffer_.length()) { 37 *reinterpret_cast<uint16_t*>(buffer_.start() + pc_) = word; 43 ASSERT(pc_ <= buffer_.length()); 44 if (pc_ == buffer_.length()) { 47 *reinterpret_cast<unsigned char*>(buffer_.start() + pc_) = word; 53 ASSERT(pc_ <= buffer_.length()) [all...] |
/external/chromium_org/net/disk_cache/blockfile/ |
mapped_file_avoid_mmap_posix.cc | 22 buffer_ = malloc(size); 24 if (buffer_ && snapshot_ && Read(buffer_, size, 0)) { 25 memcpy(snapshot_, buffer_, size); 27 free(buffer_); 29 buffer_ = snapshot_ = 0; 34 return buffer_; 38 DCHECK(buffer_); 40 const char* buffer_ptr = static_cast<const char*>(buffer_); 56 if (buffer_ && snapshot_) [all...] |
mapped_file_posix.cc | 25 buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, 29 DCHECK(reinterpret_cast<intptr_t>(buffer_) != -1); 30 if (reinterpret_cast<intptr_t>(buffer_) == -1) 31 buffer_ = 0; 38 return buffer_; 48 if (buffer_) { 49 int ret = munmap(buffer_, view_size_);
|
mapped_file_win.cc | 19 buffer_ = NULL; 26 buffer_ = MapViewOfFile(section_, FILE_MAP_READ | FILE_MAP_WRITE, 0, 0, size); 27 DCHECK(buffer_); 36 return buffer_; 43 if (buffer_) { 44 BOOL ret = UnmapViewOfFile(buffer_);
|
/external/chromium_org/net/ftp/ |
ftp_ctrl_response_buffer_unittest.cc | 16 FtpCtrlResponseBufferTest() : buffer_(net::BoundNetLog()) { 21 return buffer_.ConsumeData(data, strlen(data)); 24 net::FtpCtrlResponseBuffer buffer_; member in class:__anon13240::FtpCtrlResponseBufferTest 28 EXPECT_FALSE(buffer_.ResponseAvailable()); 31 EXPECT_TRUE(buffer_.ResponseAvailable()); 33 net::FtpCtrlResponse response = buffer_.PopResponse(); 34 EXPECT_FALSE(buffer_.ResponseAvailable()); 42 EXPECT_FALSE(buffer_.ResponseAvailable()); 44 EXPECT_FALSE(buffer_.ResponseAvailable()); 46 EXPECT_FALSE(buffer_.ResponseAvailable()) [all...] |
/external/chromium_org/remoting/protocol/ |
message_decoder.cc | 25 buffer_.Append(data.get(), data_size); 41 if (!next_payload_known_ || buffer_.total_bytes() < next_payload_) 45 message_buffer->CopyFrom(buffer_, 0, next_payload_); 47 buffer_.CropFront(next_payload_); 57 if (buffer_.total_bytes() < kHeaderSize) 62 header_buffer.CopyFrom(buffer_, 0, kHeaderSize); 65 buffer_.CropFront(kHeaderSize);
|
/external/chromium_org/media/base/ |
seekable_buffer_unittest.cc | 18 SeekableBufferTest() : buffer_(kBufferSize, kBufferSize) { 42 SeekableBuffer buffer_; member in class:media::SeekableBufferTest 54 bool should_append = buffer_.Append(data_ + write_position, write_size); 57 EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); 58 EXPECT_EQ(should_append, buffer_.forward_bytes() < kBufferSize) 63 int bytes_copied = buffer_.Peek(write_buffer_, copy_size); 69 int bytes_read = buffer_.Read(write_buffer_, read_size); 74 EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); 84 bool should_append = buffer_.Append(data_ + j, kWriteSize); 87 EXPECT_EQ(j + kWriteSize, buffer_.forward_bytes()) [all...] |
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
ringbuffer.h | 24 // buffer_[i] == buffer_[i + (1 << window_bits)] if i < (1 << tail_bits). 31 buffer_ = new uint8_t[buflen + kSlackForThreeByteHashingEverywhere]; 33 buffer_[buflen + i] = 0; 37 delete [] buffer_; 48 memcpy(&buffer_[masked_pos], bytes, n); 52 memcpy(&buffer_[masked_pos], bytes, 56 memcpy(&buffer_[0], bytes + ((1 << window_bits_) - masked_pos), 65 uint8_t *start() { return &buffer_[0]; } 66 const uint8_t *start() const { return &buffer_[0]; 86 uint8_t *buffer_; member in class:RingBuffer [all...] |
/external/chromium_org/content/renderer/ |
shared_memory_seqlock_reader.h | 42 SharedMemorySeqLockReader() : buffer_(0) { } 46 DCHECK(buffer_); 48 return FetchFromBuffer(&buffer_->seqlock, data, temp_buffer_.get(), 49 &buffer_->data, sizeof(*temp_buffer_)); 55 buffer_ = static_cast<SharedMemorySeqLockBuffer<Data>*>(memory); 63 SharedMemorySeqLockBuffer<Data>* buffer_; member in class:content::SharedMemorySeqLockReader
|
/external/chromium_org/tools/android/forwarder2/ |
common.h | 57 const char* buffer() const { return buffer_; } 60 buffer_[0] = 0; 61 write_ptr_ = buffer_; 67 if (write_ptr_ >= buffer_ + BufferSize) 72 write_ptr_, BufferSize - (write_ptr_ - buffer_), format, ap); 81 char buffer_[BufferSize]; member in class:forwarder2::FixedSizeStringBuilder
|
/external/chromium_org/third_party/leveldatabase/src/table/ |
block_builder.cc | 49 buffer_.clear(); 58 return (buffer_.size() + // Raw data buffer 66 PutFixed32(&buffer_, restarts_[i]); 68 PutFixed32(&buffer_, restarts_.size()); 70 return Slice(buffer_); 77 assert(buffer_.empty() // No values yet? 88 restarts_.push_back(buffer_.size()); 93 // Add "<shared><non_shared><value_size>" to buffer_ 94 PutVarint32(&buffer_, shared); 95 PutVarint32(&buffer_, non_shared) [all...] |