struct Rosegold::ChatManager::Acknowledgment

Overview

Acknowledgment snapshot for one outgoing ChatMessage, as vanilla's generateAndApplyUpdate builds it: offset, a 20-bit set over the window from oldest to newest (the newest message is bit 19), and a chained checksum.

Defined in:

rosegold/chat_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(offset : UInt32, bitset : Slice(UInt8), checksum : UInt8, version : UInt64, epoch : UInt64) #

[View source]

Instance Method Detail

def bitset : Bytes #

[View source]
def checksum : UInt8 #

[View source]
def current?(manager : ChatManager) : Bool #

[View source]
def epoch : UInt64 #

[View source]
def offset : UInt32 #

[View source]
def version : UInt64 #

[View source]