Commit d133b571 authored by Joseph Noir's avatar Joseph Noir

Use byte buffers instead of char buffers

parent 4c1c979b
...@@ -56,10 +56,10 @@ struct fixture : test_coordinator_fixture<>, host_fixture { ...@@ -56,10 +56,10 @@ struct fixture : test_coordinator_fixture<>, host_fixture {
class dummy_application { class dummy_application {
public: public:
static expected<std::vector<char>> serialize(actor_system& sys, static expected<std::vector<byte>> serialize(actor_system& sys,
const type_erased_tuple& x) { const type_erased_tuple& x) {
std::vector<char> result; std::vector<byte> result;
binary_serializer sink{sys, result}; serializer_impl<std::vector<byte>> sink{sys, result};
if (auto err = message::save(sink, x)) if (auto err = message::save(sink, x))
return err; return err;
return result; return result;
...@@ -77,7 +77,7 @@ public: ...@@ -77,7 +77,7 @@ public:
} }
template <class Parent> template <class Parent>
void handle_data(Parent&, span<char>) { void handle_data(Parent&, span<byte>) {
// nop // nop
} }
...@@ -99,7 +99,7 @@ public: ...@@ -99,7 +99,7 @@ public:
class dummy_application_factory { class dummy_application_factory {
public: public:
static expected<std::vector<char>> serialize(actor_system& sys, static expected<std::vector<byte>> serialize(actor_system& sys,
const type_erased_tuple& x) { const type_erased_tuple& x) {
return dummy_application::serialize(sys, x); return dummy_application::serialize(sys, x);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment