writeBytesNTimes
Function parameters
Parameters
Type definitions in this namespace
Types
Functions in this namespace
Functions
- adaptToNewApi
- Helper for bridging to the new `Writer` API while upgrading.
Source
Implementation
pub fn writeBytesNTimes(self: Self, bytes: []const u8, n: usize) anyerror!void {
var i: usize = 0;
while (i < n) : (i += 1) {
try self.writeAll(bytes);
}
}