Function initOptions [src]

Takes ownership of buffer which may be resized with gpa. LZMA was explicitly designed to take advantage of large heap memory being available, with a dictionary size anywhere from 4K to 4G. Thus, this API dynamically allocates the dictionary as-needed.

Prototype

pub fn initOptions( input: *Reader, gpa: Allocator, buffer: []u8, options: Decode.Options, mem_limit: usize, ) !Decompress

Parameters

input: *Readergpa: Allocatorbuffer: []u8options: Decode.Optionsmem_limit: usize

Source

pub fn initOptions( input: *Reader, gpa: Allocator, buffer: []u8, options: Decode.Options, mem_limit: usize, ) !Decompress { const params = try Decode.Params.readHeader(input, options); return initParams(input, gpa, buffer, params, mem_limit); }