MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / WriteScalar

Function WriteScalar

3rdparty/flatbuffers/flatbuffers/base.h:441–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439// UBSAN: C++ aliasing type rules, see std::bit_cast<> for details.
440FLATBUFFERS_SUPPRESS_UBSAN("alignment")
441void WriteScalar(void *p, T t) {
442 *reinterpret_cast<T *>(p) = EndianScalar(t);
443}
444
445template<typename T> struct Offset;
446template<typename T> FLATBUFFERS_SUPPRESS_UBSAN("alignment") void WriteScalar(void *p, Offset<T> t) {

Callers 2

FileLogger2Method · 0.85
SerializeTransitionFunction · 0.85

Calls 1

EndianScalarFunction · 0.85

Tested by

no test coverage detected