authorgravatar for yujiri@disroot.orgEvin Yulo <yujiri@disroot.org> 2023-06-17 00:59:31-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-06-17 06:35:30-07:00
log6f766fbf008160150a6a164c2dae5a6ee2a5543c
tree545d4c7c7664bf50d08c5949e188954a4be64017
parentf043071cdfb956ff16b1441c9d01ce43eea9fb7b

privatize std.mem.writePackedInt{Big, Little}

These are unnecessary since writePackedInt accepts an endian parameter.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/mem.zig+2-2
......@@ -1638,7 +1638,7 @@ pub fn writeInt(comptime T: type, buffer: *[@divExact(@typeInfo(T).Int.bits, 8)]
16381638 }
16391639}
16401640
1641pub fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void {
1641fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void {
16421642 const uN = std.meta.Int(.unsigned, @bitSizeOf(T));
16431643 const Log2N = std.math.Log2Int(T);
16441644
......@@ -1671,7 +1671,7 @@ pub fn writePackedIntLittle(comptime T: type, bytes: []u8, bit_offset: usize, va
16711671 writeIntLittle(StoreInt, write_bytes[0..store_size], write_value);
16721672}
16731673
1674pub fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void {
1674fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) void {
16751675 const uN = std.meta.Int(.unsigned, @bitSizeOf(T));
16761676 const Log2N = std.math.Log2Int(T);
16771677