fn sliceCast(self: Self, comptime NewInt: type) PackedIntSliceEndian(NewInt, endian)

Create a PackedIntSlice of the sclice using NewInt as the integer type. NewInt‘s bit width must fit evenly within the slice’s Int’s total bits.

Parameters

self: Self,
NewInt: type,