fn Writer(comptime Context: type, comptime WriteError: type, comptime writeFn: fn (Context, []const u8) WriteError!usize) type

Parameters

Context: type,
WriteError: type,
writeFn: fn (Context, []const u8) WriteError!usize,

Fields

context: Context,

Functions

fn print(self: Self, comptime format: []const u8, args: anytype) Error!void

No documentation provided.

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

No documentation provided.

fn writeAll(self: Self, bytes: []const u8) Error!void

No documentation provided.

fn writeByte(self: Self, byte: u8) Error!void

No documentation provided.

fn writeByteNTimes(self: Self, byte: u8, n: usize) Error!void

No documentation provided.

fn writeInt(self: Self, comptime T: type, value: T, endian: std.builtin.Endian) Error!void

No documentation provided.

fn writeIntBig(self: Self, comptime T: type, value: T) Error!void

No documentation provided.

fn writeIntForeign(self: Self, comptime T: type, value: T) Error!void

Write a foreign-endian integer.

fn writeIntLittle(self: Self, comptime T: type, value: T) Error!void

No documentation provided.

fn writeIntNative(self: Self, comptime T: type, value: T) Error!void

Write a native-endian integer.

fn writeStruct(self: Self, value: anytype) Error!void

No documentation provided.

Values

Error
undefined