mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
ZLIB: If output size is known, reserve that much.
This commit is contained in:
@@ -45,7 +45,7 @@ main :: proc() {
|
||||
|
||||
if len(args) < 2 {
|
||||
stderr("No input file specified.\n");
|
||||
err := load(TEST, &buf);
|
||||
err := load(slice=TEST, buf=&buf, known_gzip_size=len(TEST));
|
||||
if err == nil {
|
||||
stdout("Displaying test vector: ");
|
||||
stdout(bytes.buffer_to_string(&buf));
|
||||
|
||||
Reference in New Issue
Block a user