writeByte
Function parameters
Parameters
Type definitions in this namespace
Types
Functions in this namespace
Functions
- adaptToNewApi
- Helper for bridging to the new `Writer` API while upgrading.
Source
Implementation
pub fn writeByte(self: Self, byte: u8) anyerror!void {
const array = [1]u8{byte};
return self.writeAll(&array);
}