An implementation of reference-counted buffers with efficient slicing and copy-on-write.
cancername 70393e6129
All checks were successful
CI / build (push) Successful in 20s
move performance counter code back to get
2025-08-10 13:52:22 +02:00
.forgejo/workflows always use global cache dir 2025-07-27 00:33:55 +02:00
Buffer.zig move performance counter code back to get 2025-08-10 13:52:22 +02:00
build.zig replace Segments with better StreamView 2025-08-10 13:47:40 +02:00
build.zig.zon initial commit 2025-07-25 20:40:51 +02:00
README.md initial commit 2025-07-25 20:40:51 +02:00
test.zig replace Segments with better StreamView 2025-08-10 13:47:40 +02:00

Reference-counted buffers

A small implementation of reference-counted buffers with efficient slicing and copy-on-write.

Documentation is here.

Usage

$ zig fetch --save git+https://codeberg.org/cancername/rc_buffer

Add the import to your executable in build.zig:

exe.addImport("Buffer", b.dependency("rc_buffer", .{ .target = target, .optimize = optimize }).module("Buffer"));