I m trying to do an equivalent zig program from c.
In the c program i have this…
len = (buf << 8) | buf;
In the zig version i read the first byte to left: u8 and second byte to right: u8
and trying this
./src/main.zig:14:33: error: integer value 8 cannot be coerced to type ‘u3’
const length = (left << 8) | right;