Home
last modified time | relevance | path

Searched refs:buffer_ (Results 1 – 25 of 270) sorted by relevance

1234567891011

/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/src/
Dstring.cc29 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
30 if (buffer_ == nullptr) { in String()
33 buffer_[0] = '\0'; in String()
38 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * (count + 1))); in String()
39 if (buffer_ == nullptr) { in String()
42 memset(buffer_, ch, count); in String()
43 buffer_[count] = '\0'; in String()
48 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
49 if (buffer_ == nullptr) { in String()
52 buffer_[0] = '\0'; in String()
[all …]
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/src/
Dstring.cc29 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
30 if (buffer_ == nullptr) { in String()
33 buffer_[0] = '\0'; in String()
38 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * (count + 1))); in String()
39 if (buffer_ == nullptr) { in String()
42 memset(buffer_, ch, count); in String()
43 buffer_[count] = '\0'; in String()
48 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
49 if (buffer_ == nullptr) { in String()
52 buffer_[0] = '\0'; in String()
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc136 static uint8 buffer_[kBufferSize]; member in google::protobuf::io::__anon589458c90111::CodedStreamTest
139 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in google::protobuf::io::__anon589458c90111::CodedStreamTest
192 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D()
193 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D()
207 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_2D()
208 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); in TEST_2D()
252 buffer_[0] = '\0'; in TEST_1D()
253 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D()
254 ArrayInputStream input(buffer_, sizeof(buffer_)); in TEST_1D()
284 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); in TEST_1D()
[all …]
Dcoded_stream.cc99 buffer_end_ = buffer_; in BackUpInputToCurrentPosition()
210 buffer_ = NULL; in SkipFallback()
211 buffer_end_ = buffer_; in SkipFallback()
236 *data = buffer_; in GetDirectBufferPointer()
245 memcpy(buffer, buffer_, current_buffer_size); in ReadRaw()
252 memcpy(buffer, buffer_, size); in ReadRaw()
268 memcpy(z.first, buffer_, size); in ReadString()
296 buffer->append(reinterpret_cast<const char*>(buffer_), in ReadStringFallback()
304 buffer->append(reinterpret_cast<const char*>(buffer_), size); in ReadStringFallback()
317 ptr = buffer_; in ReadLittleEndian32Fallback()
[all …]
/third_party/grpc/include/grpcpp/impl/codegen/
Dbyte_buffer.h64 ByteBuffer() : buffer_(nullptr) {} in ByteBuffer()
78 static_assert(std::is_same<decltype(buffer_), grpc_byte_buffer*>::value, in ByteBuffer()
88 buffer_ = g_core_codegen_interface->grpc_raw_byte_buffer_create( in ByteBuffer()
96 ByteBuffer(const ByteBuffer& buf) : buffer_(nullptr) { operator=(buf); } in ByteBuffer()
99 if (buffer_) { in ~ByteBuffer()
100 g_core_codegen_interface->grpc_byte_buffer_destroy(buffer_); in ~ByteBuffer()
111 if (buf.buffer_) {
113 buffer_ = g_core_codegen_interface->grpc_byte_buffer_copy(buf.buffer_);
123 if (buffer_) { in Clear()
124 g_core_codegen_interface->grpc_byte_buffer_destroy(buffer_); in Clear()
[all …]
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/include/
Dlite_utils.h62 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
63 if (buffer_ == nullptr) { in String()
66 buffer_[0] = '\0'; in String()
71 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * (count + 1))); in String()
72 if (buffer_ == nullptr) { in String()
75 memset(buffer_, ch, count); in String()
76 buffer_[count] = '\0'; in String()
82 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
83 if (buffer_ == nullptr) { in String()
86 buffer_[0] = '\0'; in String()
[all …]
/third_party/mindspore/mindspore/lite/include/
Dlite_utils.h63 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
64 if (buffer_ == nullptr) { in String()
67 buffer_[0] = '\0'; in String()
72 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * (count + 1))); in String()
73 if (buffer_ == nullptr) { in String()
76 memset(buffer_, ch, count); in String()
77 buffer_[count] = '\0'; in String()
83 buffer_ = reinterpret_cast<char *>(malloc(sizeof(char) * 1)); in String()
84 if (buffer_ == nullptr) { in String()
87 buffer_[0] = '\0'; in String()
[all …]
/third_party/gn/src/base/containers/
Dcircular_deque.h148 return parent_deque_->buffer_[index_];
153 return &parent_deque_->buffer_[index_];
251 return parent_deque_->buffer_.capacity() - parent_deque_->begin_ + index_; in OffsetFromBegin()
259 if (index_ == parent_deque_->buffer_.capacity()) in Increment()
266 index_ = parent_deque_->buffer_.capacity() - 1; in Decrement()
289 parent_deque_->buffer_.capacity(); in Add()
432 circular_deque(const circular_deque& other) : buffer_(other.size() + 1) { in circular_deque()
436 : buffer_(std::move(other.buffer_)), in circular_deque()
467 buffer_ = std::move(other.buffer_);
517 size_t right_size = buffer_.capacity() - begin_; in at()
[all …]
Dvector_buffer.h47 : buffer_(reinterpret_cast<T*>(malloc(sizeof(T) * count))), in VectorBuffer()
51 : buffer_(other.buffer_), capacity_(other.capacity_) { in VectorBuffer()
52 other.buffer_ = nullptr; in VectorBuffer()
56 ~VectorBuffer() { free(buffer_); } in ~VectorBuffer()
59 free(buffer_);
60 buffer_ = other.buffer_;
63 other.buffer_ = nullptr;
70 T& operator[](size_t i) { return buffer_[i]; }
71 const T& operator[](size_t i) const { return buffer_[i]; }
72 T* begin() { return buffer_; } in begin()
[all …]
/third_party/mindspore/mindspore/ccsrc/debug/
Ddraw.cc271 buffer_ << "digraph " << name_ << " {" << std::endl; in Start()
272 buffer_ << "compound=true" << std::endl; in Start()
280 buffer_ << "node" << node << "_" << id; in Head()
282 buffer_ << ":core"; in Head()
291 buffer_ << "node" << node << "_" << id; in Tail()
292 buffer_ << ":" << idx; in Tail()
299 buffer_ << "node" << func_graph->get_return() << "_" << 0; in Tail()
304 buffer_ << "->"; in Edge()
307 buffer_ << "[lhead=cluster_" << end; in Edge()
308 buffer_ << ",dir=both,arrowhead=dot,style=filled,color=blue]"; in Edge()
[all …]
/third_party/protobuf/js/binary/
Dencoder.js55 this.buffer_ = []; property in jspb.BinaryEncoder
63 return this.buffer_.length;
71 var buffer = this.buffer_;
72 this.buffer_ = []; property
94 this.buffer_.push((lowBits & 0x7f) | 0x80);
98 this.buffer_.push(lowBits);
131 this.buffer_.push((value & 0x7f) | 0x80);
135 this.buffer_.push(value);
157 this.buffer_.push((value & 0x7f) | 0x80);
163 this.buffer_.push(1);
[all …]
/third_party/boost/libs/asio/include/boost/asio/
Dbasic_streambuf.hpp136 buffer_(allocator) in basic_streambuf()
139 buffer_.resize((std::max<std::size_t>)(pend, 1)); in basic_streambuf()
140 setg(&buffer_[0], &buffer_[0], &buffer_[0]); in basic_streambuf()
141 setp(&buffer_[0], &buffer_[0] + pend); in basic_streambuf()
181 return buffer_.capacity(); in capacity()
251 setg(&buffer_[0], gptr(), pptr()); in consume()
268 setg(&buffer_[0], gptr(), pptr()); in underflow()
312 std::size_t gnext = gptr() - &buffer_[0]; in reserve()
313 std::size_t pnext = pptr() - &buffer_[0]; in reserve()
314 std::size_t pend = epptr() - &buffer_[0]; in reserve()
[all …]
/third_party/boost/boost/asio/
Dbasic_streambuf.hpp136 buffer_(allocator) in basic_streambuf()
139 buffer_.resize((std::max<std::size_t>)(pend, 1)); in basic_streambuf()
140 setg(&buffer_[0], &buffer_[0], &buffer_[0]); in basic_streambuf()
141 setp(&buffer_[0], &buffer_[0] + pend); in basic_streambuf()
181 return buffer_.capacity(); in capacity()
251 setg(&buffer_[0], gptr(), pptr()); in consume()
268 setg(&buffer_[0], gptr(), pptr()); in underflow()
312 std::size_t gnext = gptr() - &buffer_[0]; in reserve()
313 std::size_t pnext = pptr() - &buffer_[0]; in reserve()
314 std::size_t pend = epptr() - &buffer_[0]; in reserve()
[all …]
/third_party/boost/libs/variant/test/
Dtest2.cpp37 buffer_[0] = '\0'; in short_string()
50 std::copy(src, src + len_, buffer_); in short_string()
51 buffer_[len_] = '\0'; in short_string()
56 std::copy(other.buffer_, other.buffer_ + e_limit, buffer_); in short_string()
63 std::copy(buffer_, buffer_ + e_limit, temp); in swap()
64 std::copy(other.buffer_, other.buffer_ + e_limit, buffer_); in swap()
65 std::copy(temp, temp + e_limit, other.buffer_); in swap()
80 return buffer_; in operator const char*()
85 char buffer_[e_limit]; member
/third_party/skia/third_party/externals/brotli/c/enc/
Dringbuffer.h46 uint8_t* buffer_; member
53 rb->buffer_ = 0; in RingBufferInit()
86 rb->buffer_ = rb->data_ + 2; in RingBufferInitBuffer()
87 rb->buffer_[-2] = rb->buffer_[-1] = 0; in RingBufferInitBuffer()
89 rb->buffer_[rb->cur_size_ + i] = 0; in RingBufferInitBuffer()
99 memcpy(&rb->buffer_[p], bytes, in RingBufferWriteTail()
117 memcpy(rb->buffer_, bytes, n); in RingBufferWrite()
126 rb->buffer_[rb->size_ - 2] = 0; in RingBufferWrite()
127 rb->buffer_[rb->size_ - 1] = 0; in RingBufferWrite()
130 rb->buffer_[rb->size_] = 241; in RingBufferWrite()
[all …]
/third_party/node/deps/brotli/c/enc/
Dringbuffer.h46 uint8_t* buffer_; member
53 rb->buffer_ = 0; in RingBufferInit()
86 rb->buffer_ = rb->data_ + 2; in RingBufferInitBuffer()
87 rb->buffer_[-2] = rb->buffer_[-1] = 0; in RingBufferInitBuffer()
89 rb->buffer_[rb->cur_size_ + i] = 0; in RingBufferInitBuffer()
99 memcpy(&rb->buffer_[p], bytes, in RingBufferWriteTail()
117 memcpy(rb->buffer_, bytes, n); in RingBufferWrite()
126 rb->buffer_[rb->size_ - 2] = 0; in RingBufferWrite()
127 rb->buffer_[rb->size_ - 1] = 0; in RingBufferWrite()
130 rb->buffer_[rb->size_] = 241; in RingBufferWrite()
[all …]
/third_party/boost/boost/accumulators/statistics/
Drolling_window.hpp88 : buffer_(args[rolling_window_size] + 1) in rolling_window_plus1_impl()
95 : buffer_(that.buffer_) in rolling_window_plus1_impl()
97 this->buffer_.set_capacity(that.buffer_.capacity()); in rolling_window_plus1_impl()
102 this->buffer_ = that.buffer_; in operator =()
103 this->buffer_.set_capacity(that.buffer_.capacity()); in operator =()
110 this->buffer_.push_back(args[sample]); in operator ()()
115 return this->buffer_.full(); in full()
122 return result_type(this->buffer_.begin(), this->buffer_.end()); in result()
128 ar & buffer_; in serialize() local
132 circular_buffer<Sample> buffer_; member
/third_party/boost/boost/nowide/
Dstackstring.hpp45 buffer_[0] = 0; in basic_stackstring()
72 data_ = buffer_; in operator =()
111 … if(min_output_size <= buffer_size && utf::convert_buffer(buffer_, buffer_size, begin, end)) in convert()
112 data_ = buffer_; in convert()
151 std::swap(lhs.buffer_[i], rhs.buffer_[i]); in swap()
155 rhs.data_ = rhs.buffer_; in swap()
157 rhs.buffer_[i] = lhs.buffer_[i]; in swap()
162 lhs.data_ = lhs.buffer_; in swap()
164 lhs.buffer_[i] = rhs.buffer_[i]; in swap()
173 return data_ == buffer_; in uses_stack_memory()
[all …]
/third_party/boost/boost/mpi/detail/
Dpacked_oprimitive.hpp34 : buffer_(b), in packed_oprimitive()
41 return detail::c_data(buffer_); in address()
46 return size_ = buffer_.size(); in size()
100 int position = buffer_.size(); in save_impl()
101 buffer_.resize(position + memory_needed); in save_impl()
106 detail::c_data(buffer_), in save_impl()
107 buffer_.size(), in save_impl()
110 BOOST_ASSERT(std::size_t(position) <= buffer_.size()); in save_impl()
111 if (std::size_t(position) < buffer_.size()) in save_impl()
112 buffer_.resize(position); in save_impl()
[all …]
Dpacked_iprimitive.hpp34 : buffer_(b), in packed_iprimitive()
42 return detail::c_data(buffer_); in address()
47 return detail::c_data(buffer_); in address()
52 return size_ = buffer_.size(); in size()
57 buffer_.resize(s); in resize()
107 … (const_cast<char*>(detail::c_data(buffer_)), buffer_.size(), &position, p, l, t, comm)); in load_impl()
110 buffer_type & buffer_; member in boost::mpi::packed_iprimitive
/third_party/boost/boost/signals2/detail/
Dauto_buffer.hpp259 if( buffer_ ) // do we need this check? Yes, but only in auto_buffer_destroy()
267 pointer buffer = buffer_ + size_ - 1u; in destroy_back_n()
285 deallocate( buffer_, members_.capacity_ ); in auto_buffer_destroy()
290 deallocate( buffer_, members_.capacity_ ); in auto_buffer_destroy()
317 buffer_ = new_buffer; in reserve_impl()
374 buffer_ = temp.buffer_; in one_sided_swap()
377 temp.buffer_ = 0; in one_sided_swap()
462 if( buffer_ == 0 ) in is_valid()
471 if( buffer_ == members_.address() ) in is_valid()
483 buffer_( static_cast<T*>(members_.address()) ), in auto_buffer()
[all …]
/third_party/boost/boost/beast/core/impl/
Dbuffered_read_stream.hpp66 if(s_.buffer_.size() == 0) in operator ()()
78 s_.buffer_.prepare(read_size( in operator ()()
79 s_.buffer_, s_.capacity_)), in operator ()()
93 s_.buffer_.commit(bytes_transferred); in operator ()()
98 net::buffer_copy(b_, s_.buffer_.data()); in operator ()()
99 s_.buffer_.consume(bytes_transferred); in operator ()()
194 if(buffer_.size() == 0) in read_some()
198 buffer_.commit(next_layer_.read_some( in read_some()
199 buffer_.prepare(read_size(buffer_, in read_some()
209 net::buffer_copy(buffers, buffer_.data()); in read_some()
[all …]
/third_party/boost/libs/beast/include/boost/beast/core/impl/
Dbuffered_read_stream.hpp66 if(s_.buffer_.size() == 0) in operator ()()
78 s_.buffer_.prepare(read_size( in operator ()()
79 s_.buffer_, s_.capacity_)), in operator ()()
93 s_.buffer_.commit(bytes_transferred); in operator ()()
98 net::buffer_copy(b_, s_.buffer_.data()); in operator ()()
99 s_.buffer_.consume(bytes_transferred); in operator ()()
194 if(buffer_.size() == 0) in read_some()
198 buffer_.commit(next_layer_.read_some( in read_some()
199 buffer_.prepare(read_size(buffer_, in read_some()
209 net::buffer_copy(buffers, buffer_.data()); in read_some()
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Dlstm_fp16.cc53 ms_context_->allocator->Free(buffer_[packed_input_index]); in FreeRunBuffer()
54 ms_context_->allocator->Free(buffer_[input_gate_index]); in FreeRunBuffer()
56 ms_context_->allocator->Free(buffer_[packed_state_index]); in FreeRunBuffer()
58 ms_context_->allocator->Free(buffer_[state_gate_index]); in FreeRunBuffer()
60 ms_context_->allocator->Free(buffer_[cell_state_index]); in FreeRunBuffer()
63 ms_context_->allocator->Free(buffer_[hidden_state_index]); in FreeRunBuffer()
244 buffer_[i] = nullptr; in MallocRunBuffer()
246 buffer_[packed_input_index] = reinterpret_cast<float16_t *>( in MallocRunBuffer()
248 if (buffer_[packed_input_index] == nullptr) { in MallocRunBuffer()
253 buffer_[input_gate_index] = reinterpret_cast<float16_t *>(ms_context_->allocator->Malloc( in MallocRunBuffer()
[all …]
/third_party/gstreamer/gstplugins_good/ext/qt/
Dgstqsgtexture.cc51 this->buffer_ = NULL; in GstQSGTexture()
60 gst_buffer_replace (&this->buffer_, NULL); in ~GstQSGTexture()
84 if (!gst_buffer_replace (&this->buffer_, buffer)) in setBuffer()
100 if (this->buffer_) in getBuffer()
101 buffer = gst_buffer_ref (this->buffer_); in getBuffer()
123 if (!this->buffer_) in bind()
128 this->mem_ = gst_buffer_peek_memory (this->buffer_, 0); in bind()
135 if (!gst_video_frame_map (&this->v_frame, &this->v_info, this->buffer_, in bind()
141 mem = gst_buffer_peek_memory (this->buffer_, 0); in bind()
208 if (this->buffer_) { in textureId()
[all …]

1234567891011