g2_bytes_remaining
return g2_bytes_remaining(chan->chan);
unsigned int bytes = g2_bytes_remaining(i);