Skip to documentation
SLOP

tiny.reducer.InterestingFn

Reference tiny.reducer InterestingFn

Defined in bytes.model.

Type of the caller's oracle function pointer.

No direct callersNo direct callsbytes.modelInterestingFn
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/reducer/src/bytes/model.zig:107

zig
/// Type of the caller's oracle function pointer.////// ## Calling Convention and Contract////// - **Candidate slice:** on attempt 1 the callback receives the caller's own///   `initial` slice, before any copy. On every later attempt it receives a///   slice into the scratch lane, and the next iteration overwrites those///   bytes, so the callback retains no slice into a candidate buffer past its///   return./// - **Context pointer:** the caller keeps the context alive for the whole///   synchronous call of `reduce()`, and the cast `@ptrCast(@alignCast(ctx))`///   matches the real type and alignment of what the pointer points at./// - **Answers and errors:** the callback answers interesting for the specific///   failure or symptom under investigation and uninteresting for everything///   else, which covers a candidate that fails to parse, holds invalid UTF-8,///   or hits an unrelated error. Returning a Zig error ends the run at once./// - **Side effects and determinism:** a side effect such as logging or the///   callback's own scratch allocation is allowed as long as the answer for a///   given candidate stays the same. The minimality claims rest on an oracle///   that is deterministic and decides from the candidate's content alone,///   which is an assumption about the caller's code.pub const InterestingFn = *const fn ([]const u8, *anyopaque) anyerror!Interesting;

Source: lib/reducer/src/root.zig:335

zig
/// Type of the caller's oracle function pointer.pub const InterestingFn = bytes.InterestingFn;

Also reachable as

bytes.InterestingFn.

Audit

Definitions1
Public names3
Members0
Version26.7.0
Revisiondaab053ee433