pub fn add_int(writer: anytype, number: u32) !void { try writer.writeIntBig(u32, number); } pub fn add_short(writer: anytype, number: u16) !void { try writer.writeIntBig(u16, number); } pub fn add_byte(writer: anytype, byte: u8) !void { try writer.writeByte(byte); } pub fn add_string(writer: anytype, str: []const u8) !void { try writer.writeAll(str); try writer.writeByte('\x00'); }