length = encoder => {
  let len = encoder.cpos;

  for (let i = 0; i < encoder.bufs.length; i++) {
    len += encoder.bufs[i].length;
  }

  return len;
}
The current length of the encoded data.

@function
@param {Encoder} encoder
@return {number}