| ... | @@ -173,7 +173,7 @@ pub fn PackedIntIo(comptime Int: type) type | ... | @@ -173,7 +173,7 @@ pub fn PackedIntIo(comptime Int: type) type |
| 173 | | 173 | |
| 174 | ///Creates a bit-packed array of int_count integers of type Int. Bits | 174 | ///Creates a bit-packed array of int_count integers of type Int. Bits |
| 175 | /// are packed using native endianess and without storing any meta | 175 | /// are packed using native endianess and without storing any meta |
| 176 | /// data. PackedArray(i3, 8) will occupy exactly 3 bytes of memory. | 176 | /// data. PackedIntArray(i3, 8) will occupy exactly 3 bytes of memory. |
| 177 | pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type | 177 | pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type |
| 178 | { | 178 | { |
| 179 | const int_bits = comptime std.meta.bitCount(Int); | 179 | const int_bits = comptime std.meta.bitCount(Int); |
| ... | @@ -234,7 +234,9 @@ pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type | ... | @@ -234,7 +234,9 @@ pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type |
| 234 | }; | 234 | }; |
| 235 | } | 235 | } |
| 236 | | 236 | |
| 237 | //@TODO: Add Slice Casting | 237 | ///Uses a slice as a bit-packed block of int_count integers of type Int. |
| | 238 | /// Bits are packed using native endianess and without storing any meta |
| | 239 | /// data. |
| 238 | pub fn PackedIntSlice(comptime Int: type) type | 240 | pub fn PackedIntSlice(comptime Int: type) type |
| 239 | { | 241 | { |
| 240 | const int_bits = comptime std.meta.bitCount(Int); | 242 | const int_bits = comptime std.meta.bitCount(Int); |