Function init [src]

Prototype

pub fn init(gpa: Allocator, properties: Properties) !Decode

Parameters

gpa: Allocatorproperties: Properties

Source

pub fn init(gpa: Allocator, properties: Properties) !Decode { return .{ .properties = properties, .literal_probs = try Vec2d.init(gpa, 0x400, @as(usize, 1) << (properties.lc + properties.lp), 0x300), .pos_slot_decoder = @splat(.{}), .align_decoder = .{}, .pos_decoders = @splat(0x400), .is_match = @splat(0x400), .is_rep = @splat(0x400), .is_rep_g0 = @splat(0x400), .is_rep_g1 = @splat(0x400), .is_rep_g2 = @splat(0x400), .is_rep_0long = @splat(0x400), .state = 0, .rep = @splat(0), .len_decoder = .{}, .rep_len_decoder = .{}, }; }