Skip to documentation
SLOP

tiny.preserves.string

Reference tiny.preserves string

Defined in tiny.preserves.

Makes a string value that points at the caller's bytes s.

No direct callersNo direct callstiny.preservesstring
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/preserves/src/any.zig:140

zig
/// Makes a string value that points at the caller's bytes `s`. Code that builds values by hand from/// bytes it keeps alive calls it. The call copies nothing, so `s` has to outlive the value./// `Value.deinit` frees string bytes, so a value over bytes the allocator does not own goes to/// `freeValue` or `freeValueDeep`. `Value.initString` makes a string value that owns a copy.pub const string = any_constructors.string;

Source: lib/preserves/src/root.zig:192

zig
pub const string = any.string;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433