| ... | @@ -3621,7 +3621,7 @@ pub const inotify_event = extern struct { | ... | @@ -3621,7 +3621,7 @@ pub const inotify_event = extern struct { |
| 3621 | // returns `null` if the directory/file is the one being watched | 3621 | // returns `null` if the directory/file is the one being watched |
| 3622 | pub fn getName(self: *const inotify_event) ?[:0]const u8 { | 3622 | pub fn getName(self: *const inotify_event) ?[:0]const u8 { |
| 3623 | if (self.len == 0) return null; | 3623 | if (self.len == 0) return null; |
| 3624 | return std.mem.sliceTo(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event), 0); | 3624 | return std.mem.span(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event)); |
| 3625 | } | 3625 | } |
| 3626 | }; | 3626 | }; |
| 3627 | | 3627 | |