struct HTS::Bam::Aux::ArrayView

Overview

Borrowed view of a BAM B-array payload.

EXPERIMENTAL

Defined in:

hts/bam/auxi.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(payload : Pointer(UInt8), size : Int32, subtype : UInt8) #

[View source]

Instance Method Detail

def [](index : Int) : Int64 | Float64 #

[View source]
def as_slice(type : T.class) : Slice(T) | Nil forall T #

The slice is available only for a matching native type and is borrowed.


[View source]
def each_float(& : Float64 -> ) : Nil #

[View source]
def each_int(& : Int64 -> ) : Nil #

[View source]
def float? : Bool #

[View source]
def float_at(index : Int) : Float64 #

[View source]
def int_at(index : Int) : Int64 #

[View source]
def integer? : Bool #

[View source]
def size : Int32 #

[View source]
def subtype : Char #

[View source]