Parameters

Int: type,
int_count: usize,

Functions

fn get(self: Self, index: usize) Int

Return the integer stored at index.

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 initAllTo(int: Int) Self

Initialize all entries of a packed array to the same value.

fn set(self: *Self, index: usize, int: Int) void

Copy the value of int into the array at index.

fn setAll(self: *Self, int: Int) void

Set all entries of a packed array to the value of int.

fn slice(self: *Self, start: usize, end: usize) PackedIntSliceEndian(Int, endian)

Create a PackedIntSlice of the array from start to end.

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’s Int’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 and new_endian as the new endianness. NewInt‘s bit width must fit evenly within the array’s Int’s total bits.