HomeSort by relevance Sort by last modified time
    Searched refs:buffer_ (Results 26 - 50 of 411) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/v8/src/
utils.cc 38 buffer_ = Vector<char>::New(size);
49 ASSERT(!is_finalized() && position_ + n < buffer_.length());
51 memcpy(&buffer_[position_], s, n * kCharSize);
75 buffer_[position_ - i] = '0' + static_cast<char>(number % 10);
82 ASSERT(!is_finalized() && position_ < buffer_.length());
83 buffer_[position_] = '\0';
86 ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_));
89 return buffer_.start();
circular-queue.cc 48 buffer_(NewArray<Cell>(buffer_size_ + 1)) {
53 buffer_[i] = kClear;
55 buffer_[buffer_size_] = kEnd;
70 producer_pos_->enqueue_pos = buffer_;
76 consumer_pos_->dequeue_chunk_pos = buffer_;
77 consumer_pos_->dequeue_chunk_poll_pos = buffer_ + producer_consumer_distance_;
84 DeleteArray(buffer_);
  /external/chromium_org/chrome/renderer/net/
predictor_queue.cc 13 : buffer_(new char[size + 2]),
18 buffer_[buffer_sentinel_] = '\0'; // Guard byte to help reading data.
45 0 == strncmp(source, &buffer_[readable_], unsigned_length) &&
46 '\0' == buffer_[readable_ + unsigned_length]) {
73 std::memcpy(&buffer_[dest], source, space_till_wrap);
77 DCHECK(static_cast<size_t>(space_till_wrap) == strlen(&buffer_[dest]));
85 std::memcpy(&buffer_[dest], source, length);
87 buffer_[dest + length] = '\0'; // We need termination in our buffer.
89 DCHECK(static_cast<size_t>(length) == strlen(&buffer_[dest]));
108 DCHECK('\0' == buffer_[buffer_sentinel_])
    [all...]
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/
packet.cc 16 buffer_(NULL),
22 delete[] buffer_;
28 buffer_ = static_cast<char*>(const_cast<void*>(buffer));
34 buffer_ = new char[len];
36 memcpy(buffer_, buffer, len);
packet.h 30 char* buffer() { return buffer_; }
37 char* buffer_; member in class:nacl_io::Packet
  /external/chromium_org/ui/events/gestures/
velocity_calculator.cc 10 : buffer_(new Point[buffer_size]) ,
34 buffer_[index_].x = x;
35 buffer_[index_].y = y;
36 buffer_[index_].time = time;
65 mean_x += buffer_[i].x;
66 mean_y += buffer_[i].y;
67 mean_time += buffer_[i].time;
89 t_i = (buffer_[i].time - mean_time);
90 xt += (buffer_[i].x - mean_x) * t_i;
91 yt += (buffer_[i].y - mean_y) * t_i
    [all...]
  /external/chromium_org/v8/src/
utils.cc 39 buffer_ = Vector<char>::New(size);
50 ASSERT(!is_finalized() && position_ + n <= buffer_.length());
52 OS::MemCopy(&buffer_[position_], s, n * kCharSize);
76 buffer_[position_ - i] = '0' + static_cast<char>(number % 10);
83 ASSERT(!is_finalized() && position_ <= buffer_.length());
85 if (position_ == buffer_.length()) {
88 for (int i = 3; i > 0 && position_ > i; --i) buffer_[position_ - i] = '.';
90 buffer_[position_] = '\0';
93 ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_));
96 return buffer_.start()
    [all...]
  /external/chromium/net/disk_cache/
mapped_file_posix.cc 24 buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
27 DCHECK(reinterpret_cast<intptr_t>(buffer_) != -1);
28 if (reinterpret_cast<intptr_t>(buffer_) == -1)
29 buffer_ = 0;
32 return buffer_;
49 if (buffer_) {
50 int ret = munmap(buffer_, view_size_);
mapped_file.h 33 return buffer_;
47 void* buffer_; // Address of the memory mapped buffer. member in class:disk_cache::MappedFile
48 size_t view_size_; // Size of the memory pointed by buffer_.
mapped_file_win.cc 18 buffer_ = NULL;
25 buffer_ = MapViewOfFile(section_, FILE_MAP_READ | FILE_MAP_WRITE, 0, 0, size);
26 DCHECK(buffer_);
29 return buffer_;
36 if (buffer_) {
37 BOOL ret = UnmapViewOfFile(buffer_);
  /external/chromium_org/ui/gl/
gl_surface_osmesa.cc 23 buffer_.reset();
38 scoped_ptr<int32[]> old_buffer(buffer_.release());
41 buffer_.reset(new int32[new_size.GetArea()]);
42 memset(buffer_.get(), 0, new_size.GetArea() * sizeof(buffer_[0]));
50 buffer_[y * new_size.width() + x] = old_buffer[y * size_.width() + x];
74 return buffer_.get();
  /external/chromium_org/content/browser/device_orientation/
data_fetcher_shared_memory_win.cc 100 DeviceOrientationHardwareBuffer* const buffer) : buffer_(buffer) {}
116 if (buffer_) {
117 buffer_->seqlock.WriteBegin();
118 buffer_->data.alpha = alpha;
119 buffer_->data.hasAlpha = has_alpha;
120 buffer_->data.beta = beta;
121 buffer_->data.hasBeta = has_beta;
122 buffer_->data.gamma = gamma;
123 buffer_->data.hasGamma = has_gamma;
124 buffer_->data.absolute = true
134 DeviceOrientationHardwareBuffer* const buffer_; member in class:content::DataFetcherSharedMemory::SensorEventSinkOrientation
220 DeviceMotionHardwareBuffer* const buffer_; member in class:content::DataFetcherSharedMemory::SensorEventSinkMotion
    [all...]
  /external/protobuf/src/google/protobuf/io/
coded_stream_unittest.cc 129 static uint8 buffer_[kBufferSize]; member in class:google::protobuf::io::__anon27287::CodedStreamTest
132 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in class:google::protobuf::io::__anon27287::CodedStreamTest
180 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
181 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case);
195 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
196 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case);
214 buffer_[0] = '\0';
215 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size)
1073 char buffer_[1024]; member in class:google::protobuf::io::__anon27287::ReallyBigInputStream
    [all...]
  /external/chromium/net/spdy/
spdy_io_buffer.h 33 DrainableIOBuffer* buffer() const { return buffer_; }
34 size_t size() const { return buffer_->size(); }
47 scoped_refptr<DrainableIOBuffer> buffer_; member in class:net::SpdyIOBuffer
spdy_io_buffer.cc 15 : buffer_(new DrainableIOBuffer(buffer, size)),
25 buffer_ = NULL;
spdy_frame_builder.h 45 SpdyFrame* rv = new SpdyFrame(buffer_, true);
46 buffer_ = NULL;
87 char *ptr = buffer_ + offset;
108 iter < buffer_ ||
123 const char* end_of_payload() const { return buffer_ + length_; }
151 char* buffer_; member in class:spdy::SpdyFrameBuilder
  /external/chromium_org/chrome/renderer/
static_v8_external_string_resource.h 25 base::StringPiece buffer_; member in class:StaticV8ExternalAsciiStringResource
  /external/chromium_org/net/base/
test_data_stream.cc 41 buffer_ptr_ = buffer_;
52 buffer_[bytes_remaining_++] = (val % 10) + '0';
54 buffer_[bytes_remaining_++] = '.';
64 buffer_ptr_ = buffer_;
  /external/chromium_org/net/tools/balsa/
balsa_headers_test.cc 23 buffer_.reset(new BalsaBuffer);
28 scoped_ptr<BalsaBuffer> buffer_; member in class:net::BalsaBufferTest
56 ASSERT_EQ(1u, buffer_->num_blocks());
61 StringPiece sp1 = buffer_->Write(StringPiece("hello"), &index1);
62 StringPiece sp2 = buffer_->Write(StringPiece(", world"), &index2);
64 ASSERT_EQ(2u, buffer_->num_blocks());
70 StringPiece(buffer_->GetPtr(1), buffer_->bytes_used(1)));
79 StringPiece sp1 = buffer_->Write(as, &index1);
80 StringPiece sp2 = buffer_->Write(bs, &index2)
    [all...]
  /external/chromium_org/net/websockets/
websocket_deflater.cc 69 buffer_.push_back('\x02');
70 buffer_.push_back('\x00');
89 buffer_.resize(buffer_.size() - 4);
97 buffer_.insert(buffer_.end(), &data[0], &data[sizeof(data)]);
101 std::deque<char>::iterator begin = buffer_.begin();
102 std::deque<char>::iterator end = begin + std::min(size, buffer_.size());
106 buffer_.erase(begin, end);
123 buffer_.insert(buffer_.end(), &fixed_buffer_[0], &fixed_buffer_[0] + size)
    [all...]
  /external/chromium_org/third_party/protobuf/src/google/protobuf/io/
coded_stream_unittest.cc 135 static uint8 buffer_[kBufferSize]; member in class:google::protobuf::io::__anon16635::CodedStreamTest
138 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in class:google::protobuf::io::__anon16635::CodedStreamTest
186 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
187 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case);
201 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
202 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case);
247 buffer_[0] = '\0';
248 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size)
1161 char buffer_[1024]; member in class:google::protobuf::io::__anon16635::ReallyBigInputStream
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/db/
log_reader.cc 24 buffer_(),
75 uint64_t physical_record_offset = end_of_buffer_offset_ - buffer_.size();
174 end_of_buffer_offset_ - buffer_.size() - bytes >= initial_offset_) {
181 if (buffer_.size() < kHeaderSize) {
184 buffer_.clear();
185 Status status = file_->Read(kBlockSize, &buffer_, backing_store_);
186 end_of_buffer_offset_ += buffer_.size();
188 buffer_.clear();
192 } else if (buffer_.size() < kBlockSize) {
196 } else if (buffer_.size() == 0)
    [all...]
  /external/chromium_org/media/cdm/ppapi/
cdm_helpers.h 40 virtual uint32_t Capacity() const OVERRIDE { return buffer_.size(); }
43 return static_cast<uint8_t*>(buffer_.data());
58 pp::Buffer_Dev buffer_dev() const { return buffer_; }
64 : buffer_(buffer),
69 pp::Buffer_Dev buffer_; member in class:media::PpbBuffer
106 DecryptedBlockImpl() : buffer_(NULL), timestamp_(0) {}
107 virtual ~DecryptedBlockImpl() { if (buffer_) buffer_->Destroy(); }
110 buffer_ = static_cast<PpbBuffer*>(buffer);
112 virtual cdm::Buffer* DecryptedBuffer() OVERRIDE { return buffer_; }
120 PpbBuffer* buffer_; member in class:media::DecryptedBlockImpl
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/base/
transformadapter.cc 61 if ((state_ == ST_PROCESSING) && (len_ < sizeof(buffer_))) {
64 buffer_ + len_,
65 sizeof(buffer_) - len_,
83 StreamResult result = transform_->Transform(buffer_, &in_len,
103 memmove(buffer_, buffer_ + in_len, len_);
129 if (len_ < sizeof(buffer_)) {
132 size_t out_len = sizeof(buffer_) - len_;
134 buffer_ + len_, &out_len,
155 StreamResult result = StreamAdapterInterface::Write(buffer_ + pos
    [all...]
  /external/chromium_org/content/renderer/pepper/
host_array_buffer_var.cc 26 : buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)),
31 : buffer_(buffer),
37 : buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)) {
41 memcpy(buffer_.data(), s.memory(), size_in_bytes);
52 return buffer_.data();
60 return buffer_.byteLength();

Completed in 481 milliseconds

12 3 4 5 6 7 8 91011>>