class IPCMessage::TypedMessage

Overview

WARNING you can only have up to 256 types.

Defined in:

message.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class IPCMessage::UntypedMessage

payload : Bytes payload, payload=(payload : Bytes) payload=, serialize : Slice(UInt8) serialize

Constructor methods inherited from class IPCMessage::UntypedMessage

deserialize(payload : Bytes) : UntypedMessage deserialize, new(string : String)
new(payload : Slice(UInt8))
new

Constructor Detail

def self.new(type : UInt8 | Nil, string : String) #

[View source]
def self.new(type : UInt8 | Nil, payload) #

[View source]
def self.new(payload) #

[View source]

Class Method Detail

def self.deserialize(bytes : Bytes) : TypedMessage | Nil #

[View source]

Instance Method Detail

def serialize #

[View source]
def type : UInt8 | Nil #

[View source]
def type=(type : UInt8 | Nil) #

[View source]