commit 3e3bdd577c8cc0c4e2669a94c34d3fae6b7bd60f (tree)
parent e2fd37e75b0b309ee8e2bf6c3678da87d84b369d
Author: tgschultz <tgschultz@gmail.com>
Date: Sat, 4 May 2019 02:38:16 +0000
Fixed some comments
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/std/packed_int_array.zig b/std/packed_int_array.zig
@@ -173,7 +173,7 @@ pub fn PackedIntIo(comptime Int: type) type
///Creates a bit-packed array of int_count integers of type Int. Bits
/// 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
{
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
{
const int_bits = comptime std.meta.bitCount(Int);