canRead(n){
    n = n || this.startIndex;
    return this.buffer.length - n + 1 > 0;
  }