Files
bun.sh/src/ptr.zig
2025-04-10 14:16:30 -07:00

17 lines
688 B
Zig

//! The `ptr` module contains smart pointer types that are used throughout Bun.
pub const Cow = @import("ptr/Cow.zig").Cow;
pub const CowSlice = @import("ptr/CowSlice.zig").CowSlice;
pub const CowSliceZ = @import("ptr/CowSlice.zig").CowSliceZ;
pub const CowString = CowSlice(u8);
const ref_count = @import("ptr/ref_count.zig");
pub const RefCount = ref_count.RefCount;
pub const ThreadSafeRefCount = ref_count.ThreadSafeRefCount;
pub const RefPtr = ref_count.RefPtr;
pub const TaggedPointer = @import("ptr/tagged_pointer.zig").TaggedPointer;
pub const TaggedPointerUnion = @import("ptr/tagged_pointer.zig").TaggedPointerUnion;
pub const WeakPtr = @import("ptr/weak_ptr.zig").WeakPtr;