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 {
class dummy_application {
public:
static expected<std::vector<char>> serialize(actor_system& sys,
static expected<std::vector<byte>> serialize(actor_system& sys,
const type_erased_tuple& x) {
std::vector<char> result;
binary_serializer sink{sys, result};
std::vector<byte> result;
serializer_impl<std::vector<byte>> sink{sys, result};
if (auto err = message::save(sink, x))
return err;
return result;
......@@ -77,7 +77,7 @@ public:
}
template <class Parent>
void handle_data(Parent&, span<char>) {
void handle_data(Parent&, span<byte>) {
// nop
}
......@@ -99,7 +99,7 @@ public:
class dummy_application_factory {
public:
static expected<std::vector<char>> serialize(actor_system& sys,
static expected<std::vector<byte>> serialize(actor_system& sys,
const type_erased_tuple& 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