Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Serialization

Xero Essential edited this page Sep 25, 2018 · 1 revision

Users could customize serialization in any purposed way.

Bridge calls the macro serialize_from_IO and serialize_to_IO in Host to serialize and deserialize. The two macros are predefined using MessagePack by default.

macro serialize_from_IO(type, io)
  {{type}}.from_msgpack {{io}}
end

macro serialize_to_IO(object, io)
  {{object}}.to_msgpack {{io}}
end

You can redefine those two macros to customize serialization process.

Clone this wiki locally