mirror of
https://git.robbyzambito.me/zaprus/
synced 2026-02-04 03:34:48 +00:00
Arrange bytes for relay
This commit is contained in:
@@ -22,6 +22,12 @@ pub const Message = union(PacketType) {
|
||||
|
||||
pub const Relay = message.Relay;
|
||||
pub const Connection = message.Connection;
|
||||
|
||||
pub fn toBytes(self: message.Message, buf: []u8) []u8 {
|
||||
return switch (self) {
|
||||
inline else => |m| m.toBytes(buf),
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
pub const relay_dest_len = 4;
|
||||
|
||||
Reference in New Issue
Block a user