FLAG_w
if (ISSET(O->flags, FLAG_w)) {
O->flags |= FLAG_w;
if (ISSET(O->flags, ~(FLAG_d | FLAG_w)))
FLAG_p | FLAG_r | FLAG_R | FLAG_w)))
const uint32_t window_size = (ISSET(O->flags, FLAG_w)? O->window_size :
if (ISSET(O->flags, FLAG_w) && (O->window_size < n_offsets)) {