Home
last modified time | relevance | path

Searched refs:contents_ (Results 1 – 25 of 35) sorted by relevance

12

/external/pigweed/pw_persistent_ram/public/pw_persistent_ram/
Dpersistent.h73 T* operator->() { return const_cast<T*>(&persistent_.contents_); }
79 T& value() { return persistent_.contents_; } in value()
80 T& operator*() { return *const_cast<T*>(&persistent_.contents_); }
96 new (const_cast<T*>(&contents_)) T(std::forward<Args>(args)...); in emplace()
98 return const_cast<T&>(contents_); in emplace()
104 contents_ = std::move(value);
112 std::memset(const_cast<T*>(&contents_), 0, sizeof(contents_)); in reset()
126 return const_cast<T&>(contents_); in value()
159 std::as_bytes(std::span(const_cast<const T*>(&contents_), 1))); in CalculateCrc()
167 volatile T contents_; member
/external/google-breakpad/src/common/
Dtest_assembler.cc223 back_insert_iterator<string>(contents_)); in Append()
239 references_.push_back(Reference(contents_.size(), endianness, size, label)); in Append()
240 contents_.append(size, 0); in Append()
251 back_insert_iterator<string>(contents_)); \
277 back_insert_iterator<string>(contents_)); \
294 size_t base = contents_.size(); in Append()
295 contents_.append(section.contents_); in Append()
305 contents_ += (value & 0x7f) | 0x80; in LEB128()
311 contents_ += value & 0x7f; in LEB128()
317 contents_ += (value & 0x7f) | 0x80; in ULEB128()
[all …]
Dtest_assembler.h292 contents_.append(reinterpret_cast<const char *>(data), size); in Append()
296 contents_.append(data); in Append()
303 contents_.append(size, (char) byte); in Append()
326 contents_ += '\0'; in AppendCString()
333 contents_.append(data, 0, size); in AppendCString()
355 Section &L8(uint8_t value) { contents_ += value; return *this; } in L8()
356 Section &B8(uint8_t value) { contents_ += value; return *this; } in B8()
357 Section &D8(uint8_t value) { contents_ += value; return *this; } in D8()
414 size_t Size() const { return contents_.size(); } in Size()
472 string contents_; variable
/external/tensorflow/tensorflow/core/lib/io/
Drecordio_test.cc56 explicit StringDest(string* contents) : contents_(contents) {} in StringDest()
62 contents_->append(slice.data(), slice.size()); in Append()
67 contents_->append(std::string(data)); in Append()
72 *pos = contents_->size(); in Tell()
77 string* contents_; member in tensorflow::io::__anon19d0634b0111::StringDest
83 : contents_(contents), force_error_(false) {} in StringSource()
92 if (offset >= contents_->size()) { in Read()
96 if (contents_->size() < offset + n) { in Read()
97 n = contents_->size() - offset; in Read()
99 *result = StringPiece(contents_->data() + offset, n); in Read()
[all …]
Dtable_test.cc96 const string& contents() const { return contents_; } in contents()
105 *pos = contents_.size(); in Tell()
110 contents_.append(data.data(), data.size()); in Append()
115 string contents_; member in tensorflow::table::StringSink
121 : contents_(contents.data(), contents.size()), bytes_read_(0) {} in StringSource()
125 uint64 Size() const { return contents_.size(); } in Size()
133 if (offset > contents_.size()) { in Read()
136 if (offset + n > contents_.size()) { in Read()
137 n = contents_.size() - offset; in Read()
139 memcpy(scratch, &contents_[offset], n); in Read()
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/
Dcord.h159 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
749 InlineRep contents_; variable
893 cord.contents_.set_tree(::absl::cord_internal::NewExternalRep( in MakeCordFromExternal()
1000 : contents_(strings_internal::StringConstant<T>::value.size() <= in Cord()
1011 contents_ = x.contents_;
1015 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
1018 contents_.Swap(&other.contents_); in swap()
1022 contents_ = std::move(x.contents_);
1031 return contents_.size(); in size()
1034 inline bool Cord::empty() const { return contents_.empty(); } in empty()
[all …]
Dcord.cc637 Cord::Cord(const Cord& src) : contents_(src.contents_) { in Cord()
638 Ref(contents_.tree()); // Does nothing if contents_ has embedded data in Cord()
644 contents_.set_data(src.data(), n, false); in Cord()
646 contents_.set_tree(NewTree(src.data(), n, 0)); in Cord()
659 contents_.set_data(src.data(), src.size(), false); in Cord()
661 contents_.set_tree(NewTree(src.data(), src.size(), 0)); in Cord()
675 contents_.set_tree(rep); in Cord()
684 Unref(VerifyTree(contents_.tree())); in DestroyCordSlow()
691 Unref(contents_.clear()); in Clear()
698 CordRep* tree = contents_.tree(); in operator =()
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dcord.cc563 : contents_(InlineData::kDefaultInit) { in Cord()
566 contents_.set_data(src.data(), n, true); in Cord()
569 contents_.EmplaceTree(rep, method); in Cord()
574 Cord::Cord(T&& src) : contents_(InlineData::kDefaultInit) { in Cord()
576 contents_.set_data(src.data(), src.size(), true); in Cord()
579 contents_.EmplaceTree(rep, CordzUpdateTracker::kConstructorString); in Cord()
588 assert(contents_.is_tree()); in DestroyCordSlow()
589 CordzInfo::MaybeUntrackCord(contents_.cordz_info()); in DestroyCordSlow()
590 CordRep::Unref(VerifyTree(contents_.as_tree())); in DestroyCordSlow()
597 if (CordRep* tree = contents_.clear()) { in Clear()
[all …]
Dcord.h167 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
843 InlineRep contents_; variable
993 cord.contents_.EmplaceTree(rep, in MakeCordFromExternal()
1143 : contents_(strings_internal::StringConstant<T>::value.size() <= in Cord()
1152 contents_ = x.contents_;
1165 inline Cord::Cord(const Cord& src) : contents_(src.contents_) {} in Cord()
1167 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
1170 contents_.Swap(&other.contents_); in swap()
1174 contents_ = std::move(x.contents_);
1182 return contents_.size(); in size()
[all …]
Dcordz_test_helpers.h38 if (!cord.contents_.is_tree()) return nullptr; in GetCordzInfoForTesting()
39 return cord.contents_.cordz_info(); in GetCordzInfoForTesting()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dcord.h158 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
732 InlineRep contents_; variable
876 cord.contents_.set_tree(::absl::cord_internal::NewExternalRep( in MakeCordFromExternal()
988 contents_ = x.contents_;
992 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
995 contents_.Swap(&other.contents_); in swap()
999 contents_ = std::move(x.contents_);
1008 return contents_.size(); in size()
1011 inline bool Cord::empty() const { return contents_.empty(); } in empty()
1015 if (const absl::cord_internal::CordRep* rep = contents_.tree()) { in EstimatedMemoryUsage()
[all …]
Dcord.cc640 Cord::Cord(const Cord& src) : contents_(src.contents_) { in Cord()
641 Ref(contents_.tree()); // Does nothing if contents_ has embedded data in Cord()
647 contents_.set_data(src.data(), n, false); in Cord()
649 contents_.set_tree(NewTree(src.data(), n, 0)); in Cord()
662 contents_.set_data(src.data(), src.size(), false); in Cord()
664 contents_.set_tree(NewTree(src.data(), src.size(), 0)); in Cord()
678 contents_.set_tree(rep); in Cord()
687 Unref(VerifyTree(contents_.tree())); in DestroyCordSlow()
694 Unref(contents_.clear()); in Clear()
701 CordRep* tree = contents_.tree(); in operator =()
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dcord.h158 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
732 InlineRep contents_; variable
876 cord.contents_.set_tree(::absl::cord_internal::NewExternalRep( in MakeCordFromExternal()
988 contents_ = x.contents_;
992 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
995 contents_.Swap(&other.contents_); in swap()
999 contents_ = std::move(x.contents_);
1008 return contents_.size(); in size()
1011 inline bool Cord::empty() const { return contents_.empty(); } in empty()
1015 if (const absl::cord_internal::CordRep* rep = contents_.tree()) { in EstimatedMemoryUsage()
[all …]
Dcord.cc640 Cord::Cord(const Cord& src) : contents_(src.contents_) { in Cord()
641 Ref(contents_.tree()); // Does nothing if contents_ has embedded data in Cord()
647 contents_.set_data(src.data(), n, false); in Cord()
649 contents_.set_tree(NewTree(src.data(), n, 0)); in Cord()
662 contents_.set_data(src.data(), src.size(), false); in Cord()
664 contents_.set_tree(NewTree(src.data(), src.size(), 0)); in Cord()
678 contents_.set_tree(rep); in Cord()
687 Unref(VerifyTree(contents_.tree())); in DestroyCordSlow()
694 Unref(contents_.clear()); in Clear()
701 CordRep* tree = contents_.tree(); in operator =()
[all …]
/external/abseil-cpp/absl/strings/
Dcord.h107 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
561 InlineRep contents_; variable
719 cord.contents_.set_tree(::absl::cord_internal::NewExternalRep( in MakeCordFromExternal()
831 contents_ = x.contents_;
835 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
838 contents_ = std::move(x.contents_);
850 return contents_.size(); in size()
853 inline bool Cord::empty() const { return contents_.empty(); } in empty()
857 if (const absl::cord_internal::CordRep* rep = contents_.tree()) { in EstimatedMemoryUsage()
864 absl::cord_internal::CordRep* rep = contents_.tree(); in Flatten()
[all …]
Dcord.cc728 Cord::Cord(const Cord& src) : contents_(src.contents_) { in Cord()
729 Ref(contents_.tree()); // Does nothing if contents_ has embedded data in Cord()
735 contents_.set_data(src.data(), n, false); in Cord()
737 contents_.set_tree(NewTree(src.data(), n, 0)); in Cord()
744 Unref(VerifyTree(contents_.tree())); in DestroyCordSlow()
751 Unref(contents_.clear()); in Clear()
758 CordRep* tree = contents_.tree(); in operator =()
761 contents_.set_data(data, length, true); in operator =()
773 contents_.set_tree(NewTree(data, length, 0)); in operator =()
838 return Ref(contents_.tree()); in TakeRep()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dcord.h107 if (contents_.is_tree()) DestroyCordSlow(); in ~Cord()
561 InlineRep contents_; variable
719 cord.contents_.set_tree(::absl::cord_internal::NewExternalRep( in MakeCordFromExternal()
831 contents_ = x.contents_;
835 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord()
838 contents_ = std::move(x.contents_);
850 return contents_.size(); in size()
853 inline bool Cord::empty() const { return contents_.empty(); } in empty()
857 if (const absl::cord_internal::CordRep* rep = contents_.tree()) { in EstimatedMemoryUsage()
864 absl::cord_internal::CordRep* rep = contents_.tree(); in Flatten()
[all …]
Dcord.cc728 Cord::Cord(const Cord& src) : contents_(src.contents_) { in Cord()
729 Ref(contents_.tree()); // Does nothing if contents_ has embedded data in Cord()
735 contents_.set_data(src.data(), n, false); in Cord()
737 contents_.set_tree(NewTree(src.data(), n, 0)); in Cord()
744 Unref(VerifyTree(contents_.tree())); in DestroyCordSlow()
751 Unref(contents_.clear()); in Clear()
758 CordRep* tree = contents_.tree(); in operator =()
761 contents_.set_data(data, length, true); in operator =()
773 contents_.set_tree(NewTree(data, length, 0)); in operator =()
838 return Ref(contents_.tree()); in TakeRep()
[all …]
/external/webrtc/pc/
Dsession_description.cc103 return FindContentInfoByName(contents_, name); in GetContentByName()
107 return FindContentInfoByName(&contents_, name); in GetContentByName()
112 const ContentInfo* cinfo = FindContentInfoByName(contents_, name); in GetContentDescriptionByName()
122 ContentInfo* cinfo = FindContentInfoByName(&contents_, name); in GetContentDescriptionByName()
132 return FindContentInfoByType(contents_, type); in FirstContentByType()
136 return (contents_.empty()) ? NULL : &(*contents_.begin()); in FirstContent()
181 contents_.push_back(std::move(content)); in AddContent()
185 for (ContentInfos::iterator content = contents_.begin(); in RemoveContentByName()
186 content != contents_.end(); ++content) { in RemoveContentByName()
188 contents_.erase(content); in RemoveContentByName()
Dsession_description.h504 const ContentInfos& contents() const { return contents_; } in contents()
505 ContentInfos& contents() { return contents_; } in contents()
579 for (auto& content : contents_) { in set_extmap_allow_mixed()
593 ContentInfos contents_; variable
/external/google-breakpad/src/processor/
Dstackwalker_unittest_utils.h62 contents_ = contents; in Init()
66 uint32_t GetSize() const { return contents_.size(); } in GetSize()
90 address - base_address_ + sizeof(ValueType) > contents_.size()) in GetMemoryLittleEndian()
96 v = (v << 8) | static_cast<unsigned char>(contents_[start + i]); in GetMemoryLittleEndian()
102 string contents_; variable
Dmicrodump.cc164 contents_ = contents; in Init()
169 uint32_t MicrodumpMemoryRegion::GetSize() const { return contents_.size(); } in GetSize()
195 address - base_address_ + sizeof(ValueType) > contents_.size()) in GetMemoryLittleEndian()
201 v = (v << 8) | static_cast<uint8_t>(contents_[start + i]); in GetMemoryLittleEndian()
/external/google-breakpad/src/common/mac/
Ddump_syms.h62 contents_(), in DumpSymbols()
177 scoped_array<uint8_t> contents_; variable
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderPassUtil.cpp280 VkSubpassContents contents_) in SubpassBeginInfo1() argument
281 : contents (contents_) in SubpassBeginInfo1()
289 VkSubpassContents contents_) in SubpassBeginInfo2() argument
293 contents = contents_; in SubpassBeginInfo2()
/external/google-breakpad/src/common/dwarf/
Delf_reader.cc188 contents_(NULL), in ElfSectionReader()
202 contents_ = reinterpret_cast<char *>(contents_aligned_) + in ElfSectionReader()
216 delete[] contents_; in ~ElfSectionReader()
224 return contents_ + bytes; in GetOffset()
227 const char *contents() const { return contents_; } in contents()
237 char *contents_; member in dwarf2reader::ElfSectionReader

12