struct Slice(T)

Superclass hierarchy

Object
Value
Struct
Slice(T)

Included Modules

Enumerable(T), Iterable

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(length : Int32, &block)

def self.new(length : Int32)

def self.new(length : Int32, value : T)

def self.new(pointer : Pointer(T), length : Int32)

Instance Method Detail

def +(offset : Int)

def [](index : Int)

def [](start, count)

def []=(index : Int, value : T)

def at(index : Int, &block)

def at(index : Int)

def copy_from(source : Pointer(T), count)

def copy_to(target : Pointer(T), count)

def each

def each(&block)

def empty?

def hexstring(buffer)

def hexstring

def inspect(io)

def length

def pointer(length)

def rindex(&block)

def rindex(value)

def to_a

def to_s(io)

def to_slice

def to_unsafe