class IPC::Message
- IPC::Message
- Reference
- Object
Defined in:
ipc/message.crConstructors
- .new(fd : Int32, mtype, utype : UInt8, payload : Bytes)
- .new(fd, mtype, utype, payload : String)
- .new(message : Pointer(LibIPC::Message))
- .new(message : LibIPC::Message)
Class Method Summary
- .from_cbor(m : Bytes) : IPC::Message
- .from_json(str : String) : IPC::Message
- .to_packet(user_type : Int, message : String)
Instance Method Summary
- #copy_to_message_pointer(pm : Pointer(LibIPC::Message))
- #fd : Int32
- #fd=(fd : Int32)
- #mtype : UInt8
- #mtype=(mtype : UInt8)
- #payload : Bytes
- #payload=(payload : Bytes)
- #to_cbor : Bytes
- #to_json : String
- #to_packet
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #utype : UInt8
- #utype=(utype : UInt8)
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.