From 11c8b134d7de3d7b2249d74b26a87bc9d6acc27d Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 22 Apr 2024 00:34:20 +0100 Subject: rle --- packet_reader/packet_reader.ha | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packet_reader/packet_reader.ha') diff --git a/packet_reader/packet_reader.ha b/packet_reader/packet_reader.ha index 6d8c315..a1b5b8f 100644 --- a/packet_reader/packet_reader.ha +++ b/packet_reader/packet_reader.ha @@ -4,21 +4,25 @@ use endian; use drawing; use drawing::{pos,CHUNKSIZE}; -export def VERSION: u8 = 1; +export def VERSION: u8 = 2; export type error = !str; export type packet_reader = struct { buf: []u8, good: []u8, + wbuf: []u8, + wgood: []u8, }; export fn new() packet_reader = { let pr = packet_reader { buf = alloc([0...],512*512*4*2), // ehhh + wbuf = alloc([0...], 512*512*4*2), // ehhhh ... }; pr.good = pr.buf[0..0]; + pr.wgood = pr.wbuf[0..0]; return pr; }; -- cgit v1.2.3