Home
last modified time | relevance | path

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

12

/third_party/flatbuffers/rust/flatbuffers/src/
Dendian_scalar.rs30 pub trait EndianScalar: Sized + PartialEq + Copy + Clone { interface
39 impl EndianScalar for $ty { impl
58 impl EndianScalar for $ty { impl
82 impl EndianScalar for f32 {
109 impl EndianScalar for f64 {
156 pub unsafe fn emplace_scalar<T: EndianScalar>(s: &mut [u8], x: T) { in emplace_scalar()
170 pub unsafe fn read_scalar_at<T: EndianScalar>(s: &[u8], loc: usize) -> T { in read_scalar_at()
179 pub unsafe fn read_scalar<T: EndianScalar>(s: &[u8]) -> T { in read_scalar()
Darray.rs19 use crate::EndianScalar;
91 pub fn emplace_scalar_array<T: EndianScalar, const N: usize>( in emplace_scalar_array() argument
Dlib.rs47 byte_swap_f32, byte_swap_f64, emplace_scalar, read_scalar, read_scalar_at, EndianScalar,
Dvector.rs26 use crate::endian_scalar::EndianScalar;
166 impl<'a, T: EndianScalar> Follow<'a> for &'a [T] {
/third_party/flatbuffers/tests/
Dnative_type_test_generated.h43 : x_(flatbuffers::EndianScalar(_x)), in Vector3D()
44 y_(flatbuffers::EndianScalar(_y)), in Vector3D()
45 z_(flatbuffers::EndianScalar(_z)) { in Vector3D()
48 return flatbuffers::EndianScalar(x_); in x()
54 return flatbuffers::EndianScalar(y_); in y()
60 return flatbuffers::EndianScalar(z_); in z()
84 : a_(flatbuffers::EndianScalar(_a)), in Vector3DAlt()
85 b_(flatbuffers::EndianScalar(_b)), in Vector3DAlt()
86 c_(flatbuffers::EndianScalar(_c)) { in Vector3DAlt()
89 return flatbuffers::EndianScalar(a_); in a()
[all …]
Darrays_test_generated.h90 b_(flatbuffers::EndianScalar(static_cast<int8_t>(_b))), in NestedStruct()
99 : b_(flatbuffers::EndianScalar(static_cast<int8_t>(_b))), in NestedStruct()
115 return static_cast<MyGame::Example::TestEnum>(flatbuffers::EndianScalar(b_)); in b()
180 : a_(flatbuffers::EndianScalar(_a)), in ArrayStruct()
182 c_(flatbuffers::EndianScalar(_c)), in ArrayStruct()
187 e_(flatbuffers::EndianScalar(_e)), in ArrayStruct()
196 : a_(flatbuffers::EndianScalar(_a)), in ArrayStruct()
197 c_(flatbuffers::EndianScalar(_c)), in ArrayStruct()
201 e_(flatbuffers::EndianScalar(_e)), in ArrayStruct()
212 return flatbuffers::EndianScalar(a_); in a()
[all …]
Darrays_test_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
18 use self::flatbuffers::{EndianScalar, Follow};
26 use self::flatbuffers::{EndianScalar, Follow};
94 impl flatbuffers::EndianScalar for TestEnum {
Dmonster_test_generated.h608 : a_(flatbuffers::EndianScalar(_a)),
609 b_(flatbuffers::EndianScalar(_b)),
614 return flatbuffers::EndianScalar(a_);
620 return flatbuffers::EndianScalar(b_);
670 : x_(flatbuffers::EndianScalar(_x)),
671 y_(flatbuffers::EndianScalar(_y)),
672 z_(flatbuffers::EndianScalar(_z)),
674 test1_(flatbuffers::EndianScalar(_test1)),
675 test2_(flatbuffers::EndianScalar(static_cast<uint8_t>(_test2))),
684 return flatbuffers::EndianScalar(x_);
[all …]
Dmore_defaults_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
77 impl flatbuffers::EndianScalar for ABC {
Doptional_scalars_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
18 use self::flatbuffers::{EndianScalar, Follow};
86 impl flatbuffers::EndianScalar for OptionalByte {
Dmonster_test_generated.rs11 use self::flatbuffers::{EndianScalar, Follow};
22 use self::flatbuffers::{EndianScalar, Follow};
136 use self::flatbuffers::{EndianScalar, Follow};
252 use self::flatbuffers::{EndianScalar, Follow};
290 impl flatbuffers::EndianScalar for Color {
385 impl flatbuffers::EndianScalar for Race {
480 impl flatbuffers::EndianScalar for Any {
671 impl flatbuffers::EndianScalar for AnyUniqueAliases {
862 impl flatbuffers::EndianScalar for AnyAmbiguousAliases {
/third_party/flatbuffers/include/flatbuffers/
Dbase.h390 template<typename T> T EndianScalar(T t) { in EndianScalar() function
402 return EndianScalar(*reinterpret_cast<const T *>(p)); in ReadScalar()
416 *reinterpret_cast<T *>(p) = EndianScalar(t); in WriteScalar()
421 *reinterpret_cast<uoffset_t *>(p) = EndianScalar(t.o); in WriteScalar()
Dflatbuffers.h110 return EndianScalar((reinterpret_cast<const T *>(p))[i]); in Read()
262 uoffset_t size() const { return EndianScalar(length_); }
401 uoffset_t size() const { return EndianScalar(length_); }
1359 T litle_endian_element = EndianScalar(element);
2222 EndianScalar(*reinterpret_cast<uoffset_t *>(buf)));
/third_party/flatbuffers/tests/include_test/sub/
Dinclude_test2_generated.rs10 use self::flatbuffers::{EndianScalar, Follow};
20 use self::flatbuffers::{EndianScalar, Follow};
29 use self::flatbuffers::{EndianScalar, Follow};
89 impl flatbuffers::EndianScalar for FromInclude {
/third_party/flatbuffers/tests/namespace_test/
Dnamespace_test1_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
18 use self::flatbuffers::{EndianScalar, Follow};
26 use self::flatbuffers::{EndianScalar, Follow};
90 impl flatbuffers::EndianScalar for UnionInNestedNS {
229 impl flatbuffers::EndianScalar for EnumInNestedNS {
Dnamespace_test1_generated.h181 : a_(flatbuffers::EndianScalar(_a)),
182 b_(flatbuffers::EndianScalar(_b)) {
185 return flatbuffers::EndianScalar(a_);
191 return flatbuffers::EndianScalar(b_);
Dnamespace_test2_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
18 use self::flatbuffers::{EndianScalar, Follow};
26 use self::flatbuffers::{EndianScalar, Follow};
90 impl flatbuffers::EndianScalar for UnionInNestedNS {
229 impl flatbuffers::EndianScalar for EnumInNestedNS {
907 use self::flatbuffers::{EndianScalar, Follow};
/third_party/flatbuffers/tests/evolution_test/
Devolution_v1_generated.h115 : a_(flatbuffers::EndianScalar(_a)),
117 b_(flatbuffers::EndianScalar(_b)) {
121 return flatbuffers::EndianScalar(a_);
124 return flatbuffers::EndianScalar(b_);
Devolution_v2_generated.h131 : a_(flatbuffers::EndianScalar(_a)),
133 b_(flatbuffers::EndianScalar(_b)) {
137 return flatbuffers::EndianScalar(a_);
140 return flatbuffers::EndianScalar(b_);
/third_party/flatbuffers/samples/
Dmonster_generated.h188 : x_(flatbuffers::EndianScalar(_x)),
189 y_(flatbuffers::EndianScalar(_y)),
190 z_(flatbuffers::EndianScalar(_z)) {
193 return flatbuffers::EndianScalar(x_);
199 return flatbuffers::EndianScalar(y_);
205 return flatbuffers::EndianScalar(z_);
Dmonster_generated.rs9 use self::flatbuffers::{EndianScalar, Follow};
18 use self::flatbuffers::{EndianScalar, Follow};
26 use self::flatbuffers::{EndianScalar, Follow};
94 impl flatbuffers::EndianScalar for Color {
181 impl flatbuffers::EndianScalar for Equipment {
/third_party/flatbuffers/docs/source/
DInternals.md196 …: x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)), z_(flatbuffers::EndianScalar
198 float x() const { return flatbuffers::EndianScalar(x_); }
199 float y() const { return flatbuffers::EndianScalar(y_); }
200 float z() const { return flatbuffers::EndianScalar(z_); }
210 `EndianScalar` then converts back and forth, which is a no-op on all current
/third_party/flatbuffers/tests/include_test/
Dinclude_test1_generated.rs10 use self::flatbuffers::{EndianScalar, Follow};
/third_party/flatbuffers/tests/union_vector/
Dunion_vector_generated.h212 : hair_length_(flatbuffers::EndianScalar(_hair_length)) { in Rapunzel()
215 return flatbuffers::EndianScalar(hair_length_); in hair_length()
248 : books_read_(flatbuffers::EndianScalar(_books_read)) { in BookReader()
251 return flatbuffers::EndianScalar(books_read_); in books_read()
/third_party/flatbuffers/tests/cpp17/generated_cpp17/
Dmonster_test_generated.h492 : a_(flatbuffers::EndianScalar(_a)),
493 b_(flatbuffers::EndianScalar(_b)),
498 return flatbuffers::EndianScalar(a_);
504 return flatbuffers::EndianScalar(b_);
563 : x_(flatbuffers::EndianScalar(_x)),
564 y_(flatbuffers::EndianScalar(_y)),
565 z_(flatbuffers::EndianScalar(_z)),
567 test1_(flatbuffers::EndianScalar(_test1)),
568 test2_(flatbuffers::EndianScalar(static_cast<uint8_t>(_test2))),
577 return flatbuffers::EndianScalar(x_);
[all …]

12