MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / WriteScalar

Function WriteScalar

Libs/flatbuffers/base.h:420–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418// UBSAN: C++ aliasing type rules, see std::bit_cast<> for details.
419__supress_ubsan__("alignment")
420void WriteScalar(void *p, T t) {
421 *reinterpret_cast<T *>(p) = EndianScalar(t);
422}
423
424template<typename T> struct Offset;
425template<typename T> __supress_ubsan__("alignment") void WriteScalar(void *p, Offset<T> t) {

Callers 7

ResizeVectorFunction · 0.85
MutateMethod · 0.85
MutateOffsetMethod · 0.85
MutateImplMethod · 0.85
EndTableFunction · 0.85
SetFieldMethod · 0.85
SetPointerMethod · 0.85

Calls 1

EndianScalarFunction · 0.85

Tested by

no test coverage detected