This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hljs.registerLanguage("jai", function(e) { | |
return { | |
aliases: ["jai"], | |
keywords: { | |
keyword: "xx break case continue defer else enum enum_flags for if return struct type_of union using inline no_inline push_context remove ifx then interface operator", | |
literal: "true false null", | |
}, | |
illegal: "</", | |
contains: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bs; | |
import "core:mem" | |
// How many bytes the bitstream will initially allocate | |
BITSTREAM_INITIAL_SIZE: int: 128; | |
// By how much the buffer grows in each resize | |
BITSTREAM_GROWTH_RATE: f64: 2.0; |