question: public int createString ( ByteBuffer s ) { int length = s . remaining ( ) ; addByte ( ( byte ) 0 ) ; startVector ( 1 , length , 1 ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return endVector ( ) ; }
target:  Create a string in the buffer from an already encoded UTF-8 string in a ByteBuffer.