mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
### What does this PR do? - Instead of storing `len` in `BoundedArray` as a `usize`, store it as either a `u8` or ` u16` depending on the `buffer_capacity` - Copy-paste `BoundedArray` from the standard library into Bun's codebase as it was removed in https://github.com/ziglang/zig/pull/24699/files#diff-cbd8cbbc17583cb9ea5cc0f711ce0ad447b446e62ea5ddbe29274696dce89e4f and we will probably continue using it ### How did you verify your code works? Ran `bun run zig:check` --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: taylor.fish <contact@taylor.fish>
7 lines
445 B
Zig
7 lines
445 B
Zig
pub const MultiArrayList = @import("./collections/multi_array_list.zig").MultiArrayList;
|
|
pub const BabyList = @import("./collections/baby_list.zig").BabyList;
|
|
pub const OffsetList = @import("./collections/baby_list.zig").OffsetList;
|
|
pub const bit_set = @import("./collections/bit_set.zig");
|
|
pub const HiveArray = @import("./collections/hive_array.zig").HiveArray;
|
|
pub const BoundedArray = @import("./collections/BoundedArray.zig").BoundedArray;
|