0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/heap.zig

1073 lines
43 KiB

breaking API changes to all readInt/writeInt functions & more * add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-12 20:19:46 -05:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-27 00:48:56 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-27 00:48:56 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 13:17:34 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 23:35:26 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 13:17:34 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 13:17:34 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 13:17:34 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 13:17:34 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-25 13:07:44 -04:00
2019-05-26 19:56:37 -04:00
2019-05-25 13:07:44 -04:00
2019-12-06 16:03:15 -06:00
2019-12-05 17:59:43 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 17:59:43 -06:00
2019-11-27 18:46:42 -06:00
2019-12-05 18:28:32 -06:00
2019-12-04 21:41:01 -06:00
2019-11-27 21:19:08 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 18:28:32 -06:00
2019-12-04 21:41:01 -06:00
2019-11-27 21:19:08 -06:00
2019-12-05 18:28:32 -06:00
2019-12-04 21:41:01 -06:00
2019-12-03 17:41:05 -06:00
2019-12-03 17:41:05 -06:00
2019-12-04 18:12:25 -06:00
2019-12-04 21:21:54 -06:00
2019-12-04 18:12:25 -06:00
2019-12-05 18:28:32 -06:00
2019-12-03 23:49:56 -06:00
2019-12-05 18:28:32 -06:00
2019-12-03 17:24:50 -06:00
2019-11-27 22:02:54 -06:00
2019-12-03 17:24:50 -06:00
2019-12-03 23:49:56 -06:00
2019-12-05 17:59:43 -06:00
2019-12-03 23:49:56 -06:00
2019-12-05 17:59:43 -06:00
2019-12-04 18:12:25 -06:00
2019-12-02 12:26:14 -06:00
2019-11-27 22:02:54 -06:00
2019-12-03 23:49:56 -06:00
2019-11-27 22:02:54 -06:00
2019-12-04 18:12:25 -06:00
2019-11-27 21:19:08 -06:00
2019-12-05 18:28:32 -06:00
2019-12-05 17:59:43 -06:00
2019-11-27 22:02:54 -06:00
2019-11-27 18:46:42 -06:00
2019-11-27 21:19:08 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 18:28:32 -06:00
2019-11-27 18:46:42 -06:00
2019-12-04 18:12:25 -06:00
2019-11-27 18:46:42 -06:00
2019-12-04 18:12:25 -06:00
2019-12-04 18:12:25 -06:00
2019-12-02 12:26:14 -06:00
2019-12-04 18:12:25 -06:00
2019-12-04 18:12:25 -06:00
2019-11-27 18:46:42 -06:00
2019-12-02 12:26:14 -06:00
2019-12-04 00:10:37 -06:00
2019-11-27 18:46:42 -06:00
2019-12-04 18:12:25 -06:00
2019-11-27 18:46:42 -06:00
2019-12-04 18:12:25 -06:00
2019-11-27 18:46:42 -06:00
2019-12-05 18:28:32 -06:00
2019-11-27 21:19:08 -06:00
2019-12-04 18:12:25 -06:00
2019-12-04 22:43:02 -06:00
2019-12-05 21:54:57 -06:00
2019-12-02 12:26:14 -06:00
2019-12-04 21:41:01 -06:00
2019-11-27 21:19:08 -06:00
2019-12-04 21:41:01 -06:00
2019-12-05 18:28:32 -06:00
2019-12-04 21:41:01 -06:00
2019-12-05 21:54:57 -06:00
2019-11-27 21:19:08 -06:00
2019-12-04 22:43:02 -06:00
2019-11-27 18:46:42 -06:00
2019-11-27 21:19:08 -06:00
2019-05-27 01:35:58 -04:00
2019-05-27 01:35:58 -04:00
2019-05-27 01:35:58 -04:00
2019-05-27 01:35:58 -04:00
2019-05-27 01:35:58 -04:00
2019-05-27 01:35:58 -04:00
2019-06-22 01:13:10 -04:00
2019-06-22 01:13:10 -04:00
2019-05-26 13:17:34 -04:00
2018-04-28 17:53:06 -04:00
2019-09-16 01:35:01 +00:00
2019-09-21 15:42:26 +00:00
2019-09-16 01:35:01 +00:00
2018-04-28 17:53:06 -04:00
2018-04-28 17:53:06 -04:00
2017-11-05 11:27:56 -06:00
2017-11-05 11:27:56 -06:00
2017-11-05 11:27:56 -06:00
2019-12-05 21:54:57 -06:00
2019-12-06 16:03:15 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 21:54:57 -06:00
2019-12-05 21:54:57 -06:00
2019-06-22 01:13:10 -04:00
2019-06-22 01:13:10 -04:00
2019-09-16 01:35:01 +00:00
2019-09-16 01:35:01 +00:00
2018-04-28 17:53:06 -04:00
2018-04-28 17:53:06 -04:00
2018-04-28 17:53:06 -04:00
2019-05-26 13:17:34 -04:00
2019-05-26 13:17:34 -04:00
2019-05-26 13:17:34 -04:00
2019-05-26 13:17:34 -04:00