Function printInt [src]

Asserts the rendered integer value fits in buffer. Returns the end index within buffer.

Prototype

pub fn printInt(buffer: []u8, value: anytype, base: u8, case: Case, options: Options) usize

Parameters

buffer: []u8base: u8case: Caseoptions: Options

Source

pub fn printInt(buffer: []u8, value: anytype, base: u8, case: Case, options: Options) usize { var w: Writer = .fixed(buffer); w.printInt(value, base, case, options) catch unreachable; return w.end; }