Function writeAll [src]

Sends TLS-encrypted data to stream, which must conform to StreamInterface.

Prototype

pub fn writeAll(c: *Client, stream: anytype, bytes: []const u8) !void

Parameters

c: *Clientbytes: []const u8

Source

pub fn writeAll(c: *Client, stream: anytype, bytes: []const u8) !void { var index: usize = 0; while (index < bytes.len) { index += try c.write(stream, bytes[index..]); } }