std.io: deprecated Reader/Writer; introduce new API

This commit is contained in:
Andrew Kelley
2025-06-27 19:33:03 -07:00
parent fc2c1883b3
commit 9f27d770a1
56 changed files with 4272 additions and 474 deletions

View File

@@ -38,7 +38,7 @@ pub const StringifyOptions = struct {
emit_nonportable_numbers_as_strings: bool = false,
};
/// Writes the given value to the `std.io.Writer` stream.
/// Writes the given value to the `std.io.GenericWriter` stream.
/// See `WriteStream` for how the given value is serialized into JSON.
/// The maximum nesting depth of the output JSON document is 256.
/// See also `stringifyMaxDepth` and `stringifyArbitraryDepth`.
@@ -81,7 +81,7 @@ pub fn stringifyArbitraryDepth(
}
/// Calls `stringifyArbitraryDepth` and stores the result in dynamically allocated memory
/// instead of taking a `std.io.Writer`.
/// instead of taking a `std.io.GenericWriter`.
///
/// Caller owns returned memory.
pub fn stringifyAlloc(