class ReadUntil::ChannelBuffer

Defined in:

read_until/read_buffer.cr

Constructors

Instance Method Summary

Instance methods inherited from class ReadUntil::ReadBuffer

clear : Nil clear, missed_reads : UInt64 missed_reads, pop(max : Int32 = 1, order : PopOrder = PopOrder::Newest) : Array(Read) pop, push(read : Read) : Nil push, replaced_chunks : UInt64 replaced_chunks, size : Int32 size

Constructor Detail

def self.new(capacity : Int32 = 512) #

[View source]

Instance Method Detail

def capacity : Int32 #

[View source]
def clear : Nil #

[View source]
def missed_reads : UInt64 #

[View source]
def pop(max : Int32 = 1, order : PopOrder = PopOrder::Newest) : Array(Read) #

[View source]
def push(read : Read) : Nil #

[View source]
def replaced_chunks : UInt64 #

[View source]
def size : Int32 #

[View source]
def wait_for_read(timeout : Time::Span | Nil = nil, stop_signal : Channel(Nil) | Nil = nil) : Bool #

[View source]