public FastCharBuffer append(String string){
  int len=string.length();
  if (len == 0) {
    return this;
  }
  int end=offset + len;
  int newSize=size + len;
  int remaining=len;
  int start=0;
  if (currentBuffer != null) {
    int part=Math.min(remaining,currentBuffer.length - offset);
    string.getChars(0,part,currentBuffer,offset);
    remaining-=part;
    offset+=part;
    size+=part;
    start+=part;
  }
  if (remaining > 0) {
    needNewBuffer(newSize);
    int part=Math.min(remaining,currentBuffer.length - offset);
    string.getChars(start,start + part,currentBuffer,offset);
    offset+=part;
    size+=part;
  }
  return this;
}

public FastCharBuffer append ( String string ) { int len = string . length ( ) ; if ( len == 0 ) { return this ; } int end = offset + len ; int newSize = size + len ; int remaining = len ; int start = 0 ; if ( currentBuffer != null ) { int part = Math . min ( remaining , currentBuffer . length - offset ) ; string . getChars ( 0 , part , currentBuffer , offset ) ; remaining -= part ; offset += part ; size += part ; start += part ; } if ( remaining > 0 ) { needNewBuffer ( newSize ) ; int part = Math . min ( remaining , currentBuffer . length - offset ) ; string . getChars ( start , start + part , currentBuffer , offset ) ; offset += part ; size += part ; } return this ; }
appends string content to buffer .
