Function int [src]

Serialize an integer.

Prototype

pub fn int(self: *Serializer, val: anytype) Error!void

Parameters

self: *Serializer

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn int(self: *Serializer, val: anytype) Error!void { try self.writer.printInt(val, 10, .lower, .{}); }