Home
last modified time | relevance | path

Searched refs:Elem (Results 1 – 25 of 133) sorted by relevance

123456

/external/golang-protobuf/proto/
Dpointer_reflect.go85 u.Elem().Set(v)
87 u = u.Elem()
100 return pointer{v: p.v.Elem().FieldByIndex(f).Addr()}
115 s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem())))
147 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
149 return p.v.Elem().Interface().(*int32)
152 return p.v.Elem().Convert(int32PtrType).Interface().(*int32)
159 p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem()))
165 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
167 return p.v.Elem().Interface().([]int32)
[all …]
Dclone.go50 out := reflect.New(in.Type().Elem())
98 mergeStruct(out.Elem(), in.Elem())
160 if out.IsNil() || out.Elem().Type() != in.Elem().Type() {
161 out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T)
163 mergeAny(out.Elem(), in.Elem(), false, nil)
172 elemKind := in.Type().Elem().Kind()
177 val = reflect.New(in.Type().Elem().Elem())
192 out.Set(reflect.New(in.Elem().Type()))
194 mergeAny(out.Elem(), in.Elem(), true, nil)
199 if in.Type().Elem().Kind() == reflect.Uint8 {
[all …]
Ddiscard.go72 di = getDiscardInfo(reflect.TypeOf(m).Elem())
160 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
162 tf = tf.Elem()
166 tf = tf.Elem()
201 if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T)
203 sm := src.asPointerTo(tf).Elem()
224 su := src.asPointerTo(tf).Elem()
226 sv := su.Elem().Elem().Field(0)
259 v = v.Elem()
275 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
[all …]
Dextensions.go175 return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8
402 value := reflect.New(t).Elem()
403 value.Set(reflect.New(value.Type().Elem()))
408 value.Elem().SetInt(int64(sf.value.(int32)))
410 value.Elem().Set(reflect.ValueOf(sf.value))
422 value := reflect.New(t).Elem()
542 st := reflect.TypeOf(desc.ExtendedType).Elem()
558 return extensionMaps[reflect.TypeOf(pb).Elem()]
568 rv2.Elem().Set(rv)
572 switch rv.Type().Elem().Kind() {
[all …]
Dtable_merge.go47 mi = getMergeInfo(reflect.TypeOf(dst).Elem())
143 out := dst.asPointerTo(mi.typ).Elem()
144 in := src.asPointerTo(mi.typ).Elem()
203 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
205 tf = tf.Elem()
209 tf = tf.Elem()
501 case tf.Elem().Kind() != reflect.Uint8:
575 sm := src.asPointerTo(tf).Elem()
579 dm := dst.asPointerTo(tf).Elem()
584 switch tf.Elem().Kind() {
[all …]
Dequal.go87 v1, v2 = v1.Elem(), v2.Elem()
112 f1, f2 = f1.Elem(), f2.Elem()
164 e1, e2 := v1.Elem(), v2.Elem()
192 return equalAny(v1.Elem(), v2.Elem(), prop)
194 if v1.Type().Elem().Kind() == reflect.Uint8 {
Dtext_parser.go412 if typ.Elem().Kind() == reflect.String {
417 if typ.Elem().Kind() != reflect.Ptr {
492 v := reflect.New(mt.Elem())
493 if pe := p.readStruct(v.Elem(), terminator); pe != nil {
540 ext = reflect.New(typ).Elem()
542 ext = reflect.New(typ.Elem()).Elem()
579 nv := reflect.New(oop.Type.Elem())
580 dst = nv.Elem().Field(0)
601 key := reflect.New(dst.Type().Key()).Elem()
602 val := reflect.New(dst.Type().Elem()).Elem()
[all …]
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dpointer_reflect.go85 u.Elem().Set(v)
97 return pointer{v: p.v.Elem().FieldByIndex(f).Addr()}
112 s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem())))
144 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
146 return p.v.Elem().Interface().(*int32)
149 return p.v.Elem().Convert(int32PtrType).Interface().(*int32)
156 p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem()))
162 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
164 return p.v.Elem().Interface().([]int32)
169 slice := p.v.Elem()
[all …]
Dclone.go50 out := reflect.New(in.Type().Elem())
98 mergeStruct(out.Elem(), in.Elem())
160 if out.IsNil() || out.Elem().Type() != in.Elem().Type() {
161 out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T)
163 mergeAny(out.Elem(), in.Elem(), false, nil)
172 elemKind := in.Type().Elem().Kind()
177 val = reflect.New(in.Type().Elem().Elem())
192 out.Set(reflect.New(in.Elem().Type()))
194 mergeAny(out.Elem(), in.Elem(), true, nil)
199 if in.Type().Elem().Kind() == reflect.Uint8 {
[all …]
Ddiscard.go72 di = getDiscardInfo(reflect.TypeOf(m).Elem())
160 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
162 tf = tf.Elem()
166 tf = tf.Elem()
201 if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T)
203 sm := src.asPointerTo(tf).Elem()
224 su := src.asPointerTo(tf).Elem()
226 sv := su.Elem().Elem().Field(0)
259 v = v.Elem()
275 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
[all …]
Dtable_merge.go47 mi = getMergeInfo(reflect.TypeOf(dst).Elem())
143 out := dst.asPointerTo(mi.typ).Elem()
144 in := src.asPointerTo(mi.typ).Elem()
203 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
205 tf = tf.Elem()
209 tf = tf.Elem()
501 case tf.Elem().Kind() != reflect.Uint8:
575 sm := src.asPointerTo(tf).Elem()
579 dm := dst.asPointerTo(tf).Elem()
584 switch tf.Elem().Kind() {
[all …]
Dequal.go87 v1, v2 = v1.Elem(), v2.Elem()
112 f1, f2 = f1.Elem(), f2.Elem()
164 e1, e2 := v1.Elem(), v2.Elem()
192 return equalAny(v1.Elem(), v2.Elem(), prop)
194 if v1.Type().Elem().Kind() == reflect.Uint8 {
Dtext_parser.go412 if typ.Elem().Kind() == reflect.String {
417 if typ.Elem().Kind() != reflect.Ptr {
492 v := reflect.New(mt.Elem())
493 if pe := p.readStruct(v.Elem(), terminator); pe != nil {
540 ext = reflect.New(typ).Elem()
542 ext = reflect.New(typ.Elem()).Elem()
579 nv := reflect.New(oop.Type.Elem())
580 dst = nv.Elem().Field(0)
601 key := reflect.New(dst.Type().Key()).Elem()
602 val := reflect.New(dst.Type().Elem()).Elem()
[all …]
/external/deqp/framework/delibs/decpp/
DdeArrayUtil.hpp33 template <int LastElementIndex, int Size, typename Elem>
34 const Elem& getSizedArrayElement (const Elem (&array)[Size], typename de::meta::EnableIf<int, LastE… in getSizedArrayElement()
41 template <int Size, typename Elem>
42 const Elem& getArrayElement (const Elem (&array)[Size], int offset) in getArrayElement()
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dbuffer_sequence_adapter.hpp229 template <typename Buffer, typename Elem>
230 class buffer_sequence_adapter<Buffer, boost::array<Elem, 2> >
235 const boost::array<Elem, 2>& buffer_sequence) in buffer_sequence_adapter() argument
258 static bool all_empty(const boost::array<Elem, 2>& buffer_sequence) in all_empty() argument
264 static void validate(const boost::array<Elem, 2>& buffer_sequence) in validate() argument
270 static Buffer first(const boost::array<Elem, 2>& buffer_sequence) in first() argument
282 template <typename Buffer, typename Elem>
283 class buffer_sequence_adapter<Buffer, std::array<Elem, 2> >
288 const std::array<Elem, 2>& buffer_sequence) in buffer_sequence_adapter() argument
311 static bool all_empty(const std::array<Elem, 2>& buffer_sequence) in all_empty() argument
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dmove.pass.cpp51 template <class Elem>
53 using Tup = std::tuple<Elem>; in test_sfinae()
65 static_assert(std::is_constructible<Tup, Elem&&>::value, ""); in test_sfinae()
66 static_assert(!std::is_constructible<Tup, Elem const&>::value, ""); in test_sfinae()
67 static_assert(!std::is_constructible<Tup, Elem&>::value, ""); in test_sfinae()
78 static_assert(std::is_constructible<Tup, Tag, Alloc, Elem&&>::value, ""); in test_sfinae()
79 static_assert(!std::is_constructible<Tup, Tag, Alloc, Elem const&>::value, ""); in test_sfinae()
80 static_assert(!std::is_constructible<Tup, Tag, Alloc, Elem &>::value, ""); in test_sfinae()
/external/golang-protobuf/jsonpb/
Djsonpb.go102 return reflect.New(mt.Elem()).Interface().(proto.Message), nil
194 s := reflect.ValueOf(v).Elem()
258 x := kind.Elem().Elem().Field(0)
325 sv := value.Elem().Elem() // interface -> *T -> T
397 v := reflect.ValueOf(any).Elem()
493 if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 {
537 valStr = strconv.Itoa(int(v.Elem().Int()))
669 if err := u.unmarshalValue(reflect.ValueOf(pb).Elem(), inputValue, nil); err != nil {
717 target.Set(reflect.New(targetType.Elem()))
719 return u.unmarshalValue(target.Elem(), inputValue, prop)
[all …]
/external/skia/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() function
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp58 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
68 Elem** elem = fElems.push(); in doStart()
69 *elem = new Elem(name, length); in doStart()
73 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
74 Elem* elem; in getEnd()
216 Elem* elem = fElems.top(); in onAddText()
229 Elem* elem = getEnd(); in onEndElement()
285 Elem* elem = this->getEnd(); in onEndElement()
/external/skqp/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() argument
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp58 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
68 Elem** elem = fElems.push(); in doStart()
69 *elem = new Elem(name, length); in doStart()
73 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
74 Elem* elem; in getEnd()
216 Elem* elem = fElems.top(); in onAddText()
229 Elem* elem = getEnd(); in onEndElement()
285 Elem* elem = this->getEnd(); in onEndElement()
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DRunQueue.h56 Elem* e = &array_[front & kMask]; in PushFront()
71 Elem* e = &array_[(front - 1) & kMask]; in PopFront()
88 Elem* e = &array_[(back - 1) & kMask]; in PushBack()
107 Elem* e = &array_[back & kMask]; in PopBack()
131 Elem* e = &array_[mid & kMask]; in PopBackHalf()
183 struct Elem { struct
202 Elem array_[kSize]; argument
/external/syzkaller/vendor/github.com/google/go-cmp/cmp/
Dcompare.go242 s.curPath.push(&indirect{pathStep{t.Elem()}})
244 s.compareAny(vx.Elem(), vy.Elem())
251 if vx.Elem().Type() != vy.Elem().Type() {
252 s.report(false, vx.Elem(), vy.Elem())
255 s.curPath.push(&typeAssertion{pathStep{vx.Elem().Type()}})
257 s.compareAny(vx.Elem(), vy.Elem())
376 step := &sliceIndex{pathStep{t.Elem()}, 0, 0}
427 step := &mapIndex{pathStep: pathStep{t.Elem()}}
526 vc := reflect.New(v.Type()).Elem()
/external/llvm/lib/IR/
DLLVMContextImpl.cpp110 FoldingSetIterator<AttributeImpl> Elem = I++; in ~LLVMContextImpl() local
111 delete &*Elem; in ~LLVMContextImpl()
117 FoldingSetIterator<AttributeSetImpl> Elem = I++; in ~LLVMContextImpl() local
118 delete &*Elem; in ~LLVMContextImpl()
124 FoldingSetIterator<AttributeSetNode> Elem = I++; in ~LLVMContextImpl() local
125 delete &*Elem; in ~LLVMContextImpl()
/external/syzkaller/pkg/serializer/
Dserializer.go41 w.do(v.Elem(), false)
74 if v.Elem().Kind() != reflect.Struct {
78 w.do(v.Elem(), sliceElem)
87 sub := v.Type().Elem().Kind()
135 w.typ(t.Elem())
138 w.typ(t.Elem())

123456