Home
last modified time | relevance | path

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

/external/flatbuffers/rust/flatbuffers/src/
Dendian_scalar.rs29 pub trait EndianScalar: Sized + PartialEq + Copy + Clone { trait
38 impl EndianScalar for $ty { impl
57 impl EndianScalar for $ty { impl
81 impl EndianScalar for f32 {
108 impl EndianScalar for f64 {
152 pub fn emplace_scalar<T: EndianScalar>(s: &mut [u8], x: T) { in emplace_scalar()
164 pub fn read_scalar_at<T: EndianScalar>(s: &[u8], loc: usize) -> T { in read_scalar_at()
172 pub fn read_scalar<T: EndianScalar>(s: &[u8]) -> T { in read_scalar()
Dlib.rs43 byte_swap_f32, byte_swap_f64, emplace_scalar, read_scalar, read_scalar_at, EndianScalar,
Dvector.rs25 use endian_scalar::EndianScalar;
142 impl<'a, T: EndianScalar> Follow<'a> for &'a [T] {
/external/flatbuffers/tests/
Dnative_type_test_generated.h37 : x_(flatbuffers::EndianScalar(_x)), in Vector3D()
38 y_(flatbuffers::EndianScalar(_y)), in Vector3D()
39 z_(flatbuffers::EndianScalar(_z)) { in Vector3D()
42 return flatbuffers::EndianScalar(x_); in x()
48 return flatbuffers::EndianScalar(y_); in y()
54 return flatbuffers::EndianScalar(z_); in z()
Darrays_test_generated.h82 : b_(flatbuffers::EndianScalar(static_cast<int8_t>(_b))) { in NestedStruct()
95 return static_cast<MyGame::Example::TestEnum>(flatbuffers::EndianScalar(b_)); in b()
147 : a_(flatbuffers::EndianScalar(_a)), in ArrayStruct()
148 c_(flatbuffers::EndianScalar(_c)), in ArrayStruct()
152 e_(flatbuffers::EndianScalar(_e)), in ArrayStruct()
161 return flatbuffers::EndianScalar(a_); in a()
173 return flatbuffers::EndianScalar(c_); in c()
185 return flatbuffers::EndianScalar(e_); in e()
Dmonster_test_generated.h599 : a_(flatbuffers::EndianScalar(_a)),
600 b_(flatbuffers::EndianScalar(_b)),
605 return flatbuffers::EndianScalar(a_);
611 return flatbuffers::EndianScalar(b_);
650 : x_(flatbuffers::EndianScalar(_x)),
651 y_(flatbuffers::EndianScalar(_y)),
652 z_(flatbuffers::EndianScalar(_z)),
654 test1_(flatbuffers::EndianScalar(_test1)),
655 test2_(flatbuffers::EndianScalar(static_cast<uint8_t>(_test2))),
664 return flatbuffers::EndianScalar(x_);
[all …]
Dmonster_test_generated.rs11 use self::flatbuffers::EndianScalar;
22 use self::flatbuffers::EndianScalar;
100 use self::flatbuffers::EndianScalar;
180 use self::flatbuffers::EndianScalar;
207 impl flatbuffers::EndianScalar for Color {
276 impl flatbuffers::EndianScalar for Race {
342 impl flatbuffers::EndianScalar for Any {
409 impl flatbuffers::EndianScalar for AnyUniqueAliases {
476 impl flatbuffers::EndianScalar for AnyAmbiguousAliases {
/external/flatbuffers/tests/include_test/sub/
Dinclude_test2_generated.rs10 use self::flatbuffers::EndianScalar;
20 use self::flatbuffers::EndianScalar;
29 use self::flatbuffers::EndianScalar;
50 impl flatbuffers::EndianScalar for FromInclude {
/external/flatbuffers/tests/namespace_test/
Dnamespace_test1_generated.rs9 use self::flatbuffers::EndianScalar;
18 use self::flatbuffers::EndianScalar;
26 use self::flatbuffers::EndianScalar;
49 impl flatbuffers::EndianScalar for EnumInNestedNS {
Dnamespace_test1_generated.h73 : a_(flatbuffers::EndianScalar(_a)), in StructInNestedNS()
74 b_(flatbuffers::EndianScalar(_b)) { in StructInNestedNS()
77 return flatbuffers::EndianScalar(a_); in a()
83 return flatbuffers::EndianScalar(b_); in b()
Dnamespace_test2_generated.rs10 use self::flatbuffers::EndianScalar;
20 use self::flatbuffers::EndianScalar;
208 use self::flatbuffers::EndianScalar;
/external/flatbuffers/include/flatbuffers/
Dbase.h362 template<typename T> T EndianScalar(T t) { in EndianScalar() function
374 return EndianScalar(*reinterpret_cast<const T *>(p)); in ReadScalar()
381 *reinterpret_cast<T *>(p) = EndianScalar(t); in WriteScalar()
386 *reinterpret_cast<uoffset_t *>(p) = EndianScalar(t.o); in WriteScalar()
Dflatbuffers.h105 return EndianScalar((reinterpret_cast<const T *>(p))[i]); in Read()
247 uoffset_t size() const { return EndianScalar(length_); }
385 uoffset_t size() const { return EndianScalar(length_); }
1270 T litle_endian_element = EndianScalar(element);
2083 EndianScalar(*reinterpret_cast<uoffset_t *>(buf)));
Dflexbuffers.h162 return flatbuffers::EndianScalar(u); in ReadUInt64()
742 t = flatbuffers::EndianScalar(t); in Mutate()
1347 val = flatbuffers::EndianScalar(val); in Write()
/external/flatbuffers/tests/evolution_test/
Devolution_v1_generated.h109 : a_(flatbuffers::EndianScalar(_a)),
111 b_(flatbuffers::EndianScalar(_b)) {
115 return flatbuffers::EndianScalar(a_);
118 return flatbuffers::EndianScalar(b_);
Devolution_v2_generated.h124 : a_(flatbuffers::EndianScalar(_a)),
126 b_(flatbuffers::EndianScalar(_b)) {
130 return flatbuffers::EndianScalar(a_);
133 return flatbuffers::EndianScalar(b_);
/external/flatbuffers/samples/
Dmonster_generated.rs13 use self::flatbuffers::EndianScalar;
23 use self::flatbuffers::EndianScalar;
45 impl flatbuffers::EndianScalar for Color {
106 impl flatbuffers::EndianScalar for Equipment {
Dmonster_generated.h186 : x_(flatbuffers::EndianScalar(_x)),
187 y_(flatbuffers::EndianScalar(_y)),
188 z_(flatbuffers::EndianScalar(_z)) {
191 return flatbuffers::EndianScalar(x_);
197 return flatbuffers::EndianScalar(y_);
203 return flatbuffers::EndianScalar(z_);
/external/flatbuffers/tests/include_test/
Dinclude_test1_generated.rs10 use self::flatbuffers::EndianScalar;
/external/flatbuffers/docs/source/
DInternals.md186 …: x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)), z_(flatbuffers::EndianScalar
188 float x() const { return flatbuffers::EndianScalar(x_); }
189 float y() const { return flatbuffers::EndianScalar(y_); }
190 float z() const { return flatbuffers::EndianScalar(z_); }
200 `EndianScalar` then converts back and forth, which is a no-op on all current
/external/flatbuffers/tests/cpp17/generated_cpp17/
Dmonster_test_generated.h484 : a_(flatbuffers::EndianScalar(_a)),
485 b_(flatbuffers::EndianScalar(_b)),
490 return flatbuffers::EndianScalar(a_);
496 return flatbuffers::EndianScalar(b_);
524 : x_(flatbuffers::EndianScalar(_x)),
525 y_(flatbuffers::EndianScalar(_y)),
526 z_(flatbuffers::EndianScalar(_z)),
528 test1_(flatbuffers::EndianScalar(_test1)),
529 test2_(flatbuffers::EndianScalar(static_cast<uint8_t>(_test2))),
538 return flatbuffers::EndianScalar(x_);
[all …]
/external/flatbuffers/tests/union_vector/
Dunion_vector_generated.h209 : hair_length_(flatbuffers::EndianScalar(_hair_length)) { in Rapunzel()
212 return flatbuffers::EndianScalar(hair_length_); in hair_length()
242 : books_read_(flatbuffers::EndianScalar(_books_read)) { in BookReader()
245 return flatbuffers::EndianScalar(books_read_); in books_read()
/external/tensorflow/tensorflow/lite/tools/
Dverifier.cc56 return flatbuffers::EndianScalar(*reinterpret_cast<const uint32_t*>(ptr)); in GetIntPtr()
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs946 + flatbuffers::EndianScalar in prop()
1372 + flatbuffers::EndianScalar in prop()
1452 fn prop<T: PartialEq + ::std::fmt::Debug + Copy + flatbuffers::EndianScalar>(x: T) { in prop()
1827 use flatbuffers::EndianScalar;
/external/flatbuffers/src/
Didl_parser.cpp1391 a->o = EndianScalar(ReadScalar<uoffset_t>(a) - udiff); in ParseVector()
1392 b->o = EndianScalar(ReadScalar<uoffset_t>(b) + udiff); in ParseVector()