5#ifndef MP_PROXY_TYPE_STRING_H
6#define MP_PROXY_TYPE_STRING_H
11template <
typename Value,
typename Output>
18 auto result = output.init(value.size());
19 memcpy(result.begin(), value.data(), value.size());
22template <
typename Input,
typename ReadDest>
29 auto data = input.get();
Functions to serialize / deserialize common bitcoin types.
decltype(auto) CustomReadField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)
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)
Overload multiprocess library's CustomBuildField hook to allow any serializable object to be stored i...
Function parameter type for prioritizing overloaded function calls that would otherwise be ambiguous.
Generic utility functions used by capnp code.