| ... | @@ -2006,11 +2006,13 @@ fn readPackedIntBig(comptime T: type, bytes: []const u8, bit_offset: usize) T { | ... | @@ -2006,11 +2006,13 @@ fn readPackedIntBig(comptime T: type, bytes: []const u8, bit_offset: usize) T { |
| 2006 | } else return @as(T, @bitCast(val)); | 2006 | } else return @as(T, @bitCast(val)); |
| 2007 | } | 2007 | } |
| 2008 | | 2008 | |
| | 2009 | /// Deprecated: use readPackedInt(T, bytes, bit_offset, value, .native) |
| 2009 | pub const readPackedIntNative = switch (native_endian) { | 2010 | pub const readPackedIntNative = switch (native_endian) { |
| 2010 | .little => readPackedIntLittle, | 2011 | .little => readPackedIntLittle, |
| 2011 | .big => readPackedIntBig, | 2012 | .big => readPackedIntBig, |
| 2012 | }; | 2013 | }; |
| 2013 | | 2014 | |
| | 2015 | /// Deprecated: use readPackedInt(T, bytes, bit_offset, value, .foreign) |
| 2014 | pub const readPackedIntForeign = switch (native_endian) { | 2016 | pub const readPackedIntForeign = switch (native_endian) { |
| 2015 | .little => readPackedIntBig, | 2017 | .little => readPackedIntBig, |
| 2016 | .big => readPackedIntLittle, | 2018 | .big => readPackedIntLittle, |
| ... | @@ -2159,11 +2161,13 @@ fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) | ... | @@ -2159,11 +2161,13 @@ fn writePackedIntBig(comptime T: type, bytes: []u8, bit_offset: usize, value: T) |
| 2159 | writeInt(StoreInt, write_bytes[(byte_count - store_size)..][0..store_size], write_value, .big); | 2161 | writeInt(StoreInt, write_bytes[(byte_count - store_size)..][0..store_size], write_value, .big); |
| 2160 | } | 2162 | } |
| 2161 | | 2163 | |
| | 2164 | /// Deprecated: use writePackedInt(T, bytes, bit_offset, value, .native) |
| 2162 | pub const writePackedIntNative = switch (native_endian) { | 2165 | pub const writePackedIntNative = switch (native_endian) { |
| 2163 | .little => writePackedIntLittle, | 2166 | .little => writePackedIntLittle, |
| 2164 | .big => writePackedIntBig, | 2167 | .big => writePackedIntBig, |
| 2165 | }; | 2168 | }; |
| 2166 | | 2169 | |
| | 2170 | /// Deprecated: use writePackedInt(T, bytes, bit_offset, value, .foreign) |
| 2167 | pub const writePackedIntForeign = switch (native_endian) { | 2171 | pub const writePackedIntForeign = switch (native_endian) { |
| 2168 | .little => writePackedIntBig, | 2172 | .little => writePackedIntBig, |
| 2169 | .big => writePackedIntLittle, | 2173 | .big => writePackedIntLittle, |