MCPcopy Create free account
hub / github.com/comaps/comaps / WritePOD

Function WritePOD

libs/coding/read_write_utils.hpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template <class Sink, class T>
102void WritePOD(Sink & sink, T const & value)
103{
104 static_assert(std::is_trivially_copyable<T>::value, "");
105 sink.Write(&value, sizeof(T));
106}
107
108template <class Sink, class T>
109void ReadPOD(Sink & src, T & value)

Callers 2

SerializeMethod · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected