5 #ifndef MP_PROXY_TYPE_CHAR_H 6 #define MP_PROXY_TYPE_CHAR_H 11 template <
typename Output,
size_t size>
15 const unsigned char (&value)[size],
18 auto result = output.init(size);
22 template <
size_t size,
typename Input,
typename ReadDest>
29 return read_dest.update([&](
auto& value) {
30 auto data = input.get();
36 #endif // MP_PROXY_TYPE_CHAR_H Function parameter type for prioritizing overloaded function calls that would otherwise be ambiguous...
memcpy(result.begin(), stream.data(), stream.size())
Generic utility functions used by capnp code.
Functions to serialize / deserialize common bitcoin types.
decltype(auto) CustomReadField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest) requires Unserializable< LocalType
Overload multiprocess library's CustomReadField hook to allow any object with an Unserialize method t...
void CustomBuildField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output) requires Serializable< LocalType
Overload multiprocess library's CustomBuildField hook to allow any serializable object to be stored i...