char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
377fbf9
main
1declare module"ext:core/ops" { 2export interface EncodeCounts { 3read :number ; 4written :number ; 5} 6export function op_encoding_decode_utf8 ( bytes :Uint8Array < ArrayBuffer >) :string ; 7export function op_encoding_close ( id :number ) :null ; 8export function op_encoding_label ( label :string ) :string | null ; 9export function op_encoding_encode ( source :string ) :Uint8Array < ArrayBuffer >; 10export function op_encoding_encode_into ( source :string , destination :Uint8Array < ArrayBuffer >) :EncodeCounts ; 11export function op_encoding_decode ( 12args :[ 13id :number | null , 14encoding :string , 15fatal :boolean , 16ignoreBOM :boolean , 17bytes :Uint8Array < ArrayBuffer >, 18stream :boolean , 19], 20) :[ text :string , invalid :boolean , id :number | null ]; 21}