mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std.io.Writer: remove some unimplemented functions
YAGNI
This commit is contained in:
parent
aa1bdb43e0
commit
10d6db5d7d
@ -181,20 +181,6 @@ pub fn writeSplat(w: *Writer, data: []const []const u8, splat: usize) Error!usiz
|
||||
return count;
|
||||
}
|
||||
|
||||
/// Equivalent to `writeSplat` but writes at most `limit` bytes.
|
||||
pub fn writeSplatLimit(
|
||||
w: *Writer,
|
||||
data: []const []const u8,
|
||||
splat: usize,
|
||||
limit: Limit,
|
||||
) Error!usize {
|
||||
_ = w;
|
||||
_ = data;
|
||||
_ = splat;
|
||||
_ = limit;
|
||||
@panic("TODO");
|
||||
}
|
||||
|
||||
/// Returns how many bytes were consumed from `header` and `data`.
|
||||
pub fn writeSplatHeader(
|
||||
w: *Writer,
|
||||
@ -242,22 +228,6 @@ test "writeSplatHeader splatting avoids buffer aliasing temptation" {
|
||||
);
|
||||
}
|
||||
|
||||
/// Equivalent to `writeSplatHeader` but writes at most `limit` bytes.
|
||||
pub fn writeSplatHeaderLimit(
|
||||
w: *Writer,
|
||||
header: []const u8,
|
||||
data: []const []const u8,
|
||||
splat: usize,
|
||||
limit: Limit,
|
||||
) Error!usize {
|
||||
_ = w;
|
||||
_ = header;
|
||||
_ = data;
|
||||
_ = splat;
|
||||
_ = limit;
|
||||
@panic("TODO");
|
||||
}
|
||||
|
||||
/// Drains all remaining buffered data.
|
||||
pub fn flush(w: *Writer) Error!void {
|
||||
return w.vtable.flush(w);
|
||||
@ -827,14 +797,6 @@ pub inline fn writeSliceEndian(
|
||||
}
|
||||
}
|
||||
|
||||
/// Asserts that the buffer storage capacity is at least enough to store `@sizeOf(Elem)`
|
||||
pub fn writeSliceSwap(w: *Writer, Elem: type, slice: []const Elem) Error!void {
|
||||
// copy to storage first, then swap in place
|
||||
_ = w;
|
||||
_ = slice;
|
||||
@panic("TODO");
|
||||
}
|
||||
|
||||
/// Unlike `writeSplat` and `writeVec`, this function will call into `VTable`
|
||||
/// even if there is enough buffer capacity for the file contents.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user