mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Correct zlib usage in doc
This commit is contained in:
@@ -13,6 +13,7 @@ Example:
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "core:bytes"
|
import "core:bytes"
|
||||||
|
import "core:compress/zlib"
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
|
|
||||||
main :: proc() {
|
main :: proc() {
|
||||||
@@ -36,7 +37,7 @@ Example:
|
|||||||
buf: bytes.Buffer
|
buf: bytes.Buffer
|
||||||
|
|
||||||
// We can pass ", true" to inflate a raw DEFLATE stream instead of a ZLIB wrapped one.
|
// We can pass ", true" to inflate a raw DEFLATE stream instead of a ZLIB wrapped one.
|
||||||
err := inflate(input=ODIN_DEMO, buf=&buf, expected_output_size=OUTPUT_SIZE)
|
err := zlib.inflate(input=ODIN_DEMO, buf=&buf, expected_output_size=OUTPUT_SIZE)
|
||||||
defer bytes.buffer_destroy(&buf)
|
defer bytes.buffer_destroy(&buf)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user