5#ifndef MP_PROXY_TYPE_CHAR_H
6#define MP_PROXY_TYPE_CHAR_H
11template <
typename Output,
size_t size>
15 const unsigned char (&value)[size],
18 auto result = output.init(size);
19 memcpy(result.begin(), value, size);
22template <
size_t size,
typename Input,
typename ReadDest>
29 return read_dest.update([&](
auto& value) {
30 auto data = input.get();
31 memcpy(value,
data.begin(), size);
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.