authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-02-12 10:57:30 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-02-12 10:57:30 -08:00
log5f7abef04e03f14aa6741d31a10cfa024c4424d0
tree7f826e293ef5f36fff3358c154e9ea32b969bd4d
parentb303caba8d260bb4d1a3fc7a29d983a6a56bb8ce

make BufIndexer take a multi-pointer instead


1 files changed, 2 insertions(+), 2 deletions(-)

src/lib.zig+2-2
...@@ -392,9 +392,9 @@ pub fn BufIndexer(comptime T: type, comptime endian: std.builtin.Endian) type {...@@ -392,9 +392,9 @@ pub fn BufIndexer(comptime T: type, comptime endian: std.builtin.Endian) type {
392392
393 const Self = @This();393 const Self = @This();
394394
395 pub fn init(bytes: []const u8, max_len: usize) Self {395 pub fn init(bytes: [*]const u8, max_len: usize) Self {
396 return .{396 return .{
397 .bytes = bytes.ptr,397 .bytes = bytes,
398 .max_len = max_len,398 .max_len = max_len,
399 };399 };
400 }400 }