MCPcopy Create free account
hub / github.com/apple/foundationdb / save

Method save

flow/include/flow/flat_buffers.h:1139–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1137
1138 template <class U, class Writer, typename = std::enable_if_t<is_scalar<U>>>
1139 auto save(const U& message, Writer& writer, const VTableSet*) {
1140 constexpr auto size = scalar_traits<U>::size;
1141 std::array<uint8_t, size> result = {};
1142 if constexpr (size > 0) {
1143 scalar_traits<U>::save(&result[0], message, this->context());
1144 }
1145 return result;
1146 }
1147
1148 template <class U, class Writer>
1149 auto save(const U& message,

Callers 3

operator()Method · 0.45
save_helperFunction · 0.45
saveMethod · 0.45

Calls 13

struct_sizeFunction · 0.85
pack_sizeFunction · 0.85
save_helperFunction · 0.85
memcpyFunction · 0.85
serializeFunction · 0.85
beginFunction · 0.85
RightAlignFunction · 0.85
saveFunction · 0.70
visitDynamicSizeMethod · 0.45
serializeMethod · 0.45
getMessageWriterMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected