| ... | @@ -1638,7 +1638,7 @@ pub fn writeInt(comptime T: type, buffer: *[@divExact(@typeInfo(T).Int.bits, 8)] | ... | @@ -1638,7 +1638,7 @@ pub fn writeInt(comptime T: type, buffer: *[@divExact(@typeInfo(T).Int.bits, 8)] |
| 1638 | } | 1638 | } |
| 1639 | } | 1639 | } |
| 1640 | | 1640 | |
| 1641 | pub fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void { | 1641 | fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void { |
| 1642 | const uN = std.meta.Int(.unsigned, @bitSizeOf(T)); | 1642 | const uN = std.meta.Int(.unsigned, @bitSizeOf(T)); |
| 1643 | const Log2N = std.math.Log2Int(T); | 1643 | const Log2N = std.math.Log2Int(T); |
| 1644 | | 1644 | |
| ... | @@ -1671,7 +1671,7 @@ pub fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, va | ... | @@ -1671,7 +1671,7 @@ pub fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, va |
| 1671 | writeIntLittle(StoreInt, write_bytes[0..store_size], write_value); | 1671 | writeIntLittle(StoreInt, write_bytes[0..store_size], write_value); |
| 1672 | } | 1672 | } |
| 1673 | | 1673 | |
| 1674 | pub fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void { | 1674 | fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void { |
| 1675 | const uN = std.meta.Int(.unsigned, @bitSizeOf(T)); | 1675 | const uN = std.meta.Int(.unsigned, @bitSizeOf(T)); |
| 1676 | const Log2N = std.math.Log2Int(T); | 1676 | const Log2N = std.math.Log2Int(T); |
| 1677 | | 1677 | |