wfblk method
Implementation
int wfblk(List out, int pos, List dat) {
// no need to write 00 as type: TypedArray defaults to 0
int s = dat.length;
int o = shft(pos + 2);
out[o] = s & 255;
out[o + 1] = s >> 8;
out[o + 2] = out[o] ^ 255;
out[o + 3] = out[o + 1] ^ 255;
for (int i = 0; i < s; ++i){
out[o + i + 4] = dat[i];
}
return (o + 4 + s) * 8;
}