Functions
fn init(ints: [int_count]Int) Self
Initialize a packed array using an unpacked array or, more likely, an array lit…
Initialize a packed array using an unpacked array or, more likely, an array literal.
fn slice(self: *Self, start: usize, end: usize) PackedIntSliceEndian(Int, endian)
Create a PackedIntSlice of the array from
start
toend
.fn sliceCast(self: *Self, comptime NewInt: type) PackedIntSlice(NewInt)
Create a PackedIntSlice of the array using
NewInt
as the integer type. `NewIn…Create a PackedIntSlice of the array using
NewInt
as the integer type.NewInt
‘s bit width must fit evenly within the array’sInt
’s total bits.fn sliceCastEndian(self: *Self, comptime NewInt: type, comptime new_endian: Endian) PackedIntSliceEndian(NewInt, new_endian)
Create a PackedIntSliceEndian of the array using
NewInt
as the integer type a…Create a PackedIntSliceEndian of the array using
NewInt
as the integer type andnew_endian
as the new endianness.NewInt
‘s bit width must fit evenly within the array’sInt
’s total bits.