An implementation of reference-counted buffers with efficient slicing and copy-on-write.
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| Buffer.zig | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
| test.zig | ||
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"));