struct Circed::Network::FastMessageParser::ParsedMessage

Overview

Optimized message structure with minimal allocations

Defined in:

circed/network/fast_message_parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prefix : String | Nil, command : String, params : Array(String), raw_line : String) #

[View source]

Instance Method Detail

def command : String #

[View source]
def params : Array(String) #

[View source]
def prefix : String | Nil #

[View source]
def raw_line : String #

[View source]
def server_message? : Bool #

Check if this is a server-to-server message


[View source]
def source_host : String | Nil #

[View source]
def source_nick : String | Nil #

Fast hostmask parsing for server messages


[View source]
def source_user : String | Nil #

[View source]
def trailing_param : String | Nil #

Get trailing parameter (after ':')


[View source]