public int createString(String s){
  byte[] utf8=s.getBytes(utf8charset);
  addByte((byte)0);
  startVector(1,utf8.length,1);
  bb.position(space-=utf8.length);
  bb.put(utf8,0,utf8.length);
  return endVector();
}

public int createString ( String s ) { byte [ ] utf8 = s . getBytes ( utf8charset ) ; addByte ( ( byte ) 0 ) ; startVector ( 1 , utf8 . length , 1 ) ; bb . position ( space -= utf8 . length ) ; bb . put ( utf8 , 0 , utf8 . length ) ; return endVector ( ) ; }
encode the string ` s ` in the buffer using utf - 8 .
