fn write(self: *Self, bytes: []const u8) WriteError!usize

If the returned number of bytes written is less than requested, the buffer is full. Returns error.NoSpaceLeft when no bytes would be written. Note: error.NoSpaceLeft matches the corresponding error from std.fs.File.WriteError.

Parameters

self: *Self,
bytes: []const u8,