class ReadUntil::Read

Overview

Live read chunk with signal data and metadata. Signal access is guarded by format validation to ensure consistency. Note: Read number tracking is reserved for future implementation; actions currently require explicit read id.

Defined in:

read_until/read.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(channel : Int32, id : String, start_sample : UInt64 | Nil = nil, chunk_start_sample : UInt64 = 0_u64, chunk_length : UInt64 = 0_u64, classification_ids : Array(Int32) = [] of Int32, raw_bytes : Bytes = Bytes.empty, median_before : Float32 = 0.0_f32, median : Float32 = 0.0_f32, registry : ClassificationRegistry = ClassificationRegistry.default, signal_format : SignalFormat = SignalFormat.new, raw_data_kind : RawDataKind = RawDataKind::Calibrated) #

[View source]

Instance Method Detail

def adapter? : Bool #

[View source]
def calibrated_signal : Slice(Float32) #

[View source]
def channel : Int32 #

[View source]
def chunk_classifications : Array(Int32) #

[View source]
def chunk_length : UInt64 #

[View source]
def chunk_start_sample : UInt64 #

[View source]
def classification_ids : Array(Int32) #

[View source]
def classification_names : Array(Symbol) #

[View source]
def classifications : Array(ReadClass) #

[View source]
def classified_as?(klass : ReadClass) : Bool #

[View source]
def classified_as?(klass : Symbol) : Bool #

[View source]
def id : String #

[View source]
def median : Float32 #

[View source]
def median_before : Float32 #

[View source]
def raw_bytes : Bytes #

[View source]
def raw_data : Bytes #

[View source]
def raw_data_kind : RawDataKind #

[View source]
def ref : ReadRef #

[View source]
def signal(type : Int16.class) : Slice(Int16) #

[View source]
def signal(type : Float32.class) : Slice(Float32) #

[View source]
def signal_format : SignalFormat #

[View source]
def start_sample : UInt64 | Nil #

[View source]
def strand? : Bool #

[View source]
def uncalibrated_signal : Slice(Int16) #

[View source]