Fixed some comments

master
tgschultz 2019-05-04 02:38:16 +00:00
parent e2fd37e75b
commit 3e3bdd577c
1 changed files with 4 additions and 2 deletions

View File

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