/third_party/flatbuffers/rust/flatbuffers/src/ |
D | endian_scalar.rs | 30 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()
|
D | array.rs | 19 use crate::EndianScalar; 91 pub fn emplace_scalar_array<T: EndianScalar, const N: usize>( in emplace_scalar_array() argument
|
D | lib.rs | 47 byte_swap_f32, byte_swap_f64, emplace_scalar, read_scalar, read_scalar_at, EndianScalar,
|
D | vector.rs | 26 use crate::endian_scalar::EndianScalar; 166 impl<'a, T: EndianScalar> Follow<'a> for &'a [T] {
|
/third_party/flatbuffers/tests/ |
D | native_type_test_generated.h | 43 : 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 …]
|
D | arrays_test_generated.h | 90 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 …]
|
D | arrays_test_generated.rs | 9 use self::flatbuffers::{EndianScalar, Follow}; 18 use self::flatbuffers::{EndianScalar, Follow}; 26 use self::flatbuffers::{EndianScalar, Follow}; 94 impl flatbuffers::EndianScalar for TestEnum {
|
D | monster_test_generated.h | 608 : 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 …]
|
D | more_defaults_generated.rs | 9 use self::flatbuffers::{EndianScalar, Follow}; 77 impl flatbuffers::EndianScalar for ABC {
|
D | optional_scalars_generated.rs | 9 use self::flatbuffers::{EndianScalar, Follow}; 18 use self::flatbuffers::{EndianScalar, Follow}; 86 impl flatbuffers::EndianScalar for OptionalByte {
|
D | monster_test_generated.rs | 11 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/ |
D | base.h | 390 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()
|
D | flatbuffers.h | 110 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/ |
D | include_test2_generated.rs | 10 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/ |
D | namespace_test1_generated.rs | 9 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 {
|
D | namespace_test1_generated.h | 181 : a_(flatbuffers::EndianScalar(_a)), 182 b_(flatbuffers::EndianScalar(_b)) { 185 return flatbuffers::EndianScalar(a_); 191 return flatbuffers::EndianScalar(b_);
|
D | namespace_test2_generated.rs | 9 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/ |
D | evolution_v1_generated.h | 115 : a_(flatbuffers::EndianScalar(_a)), 117 b_(flatbuffers::EndianScalar(_b)) { 121 return flatbuffers::EndianScalar(a_); 124 return flatbuffers::EndianScalar(b_);
|
D | evolution_v2_generated.h | 131 : a_(flatbuffers::EndianScalar(_a)), 133 b_(flatbuffers::EndianScalar(_b)) { 137 return flatbuffers::EndianScalar(a_); 140 return flatbuffers::EndianScalar(b_);
|
/third_party/flatbuffers/samples/ |
D | monster_generated.h | 188 : 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_);
|
D | monster_generated.rs | 9 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/ |
D | Internals.md | 196 …: 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/ |
D | include_test1_generated.rs | 10 use self::flatbuffers::{EndianScalar, Follow};
|
/third_party/flatbuffers/tests/union_vector/ |
D | union_vector_generated.h | 212 : 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/ |
D | monster_test_generated.h | 492 : 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 …]
|