question: writes string to buffer as c-style string null-terminated concode_field_sep int BUFFER_DEFAULT_LENGTH concode_elem_sep int actualSize concode_elem_sep byte[] buffer concode_elem_sep int position concode_field_sep void writeInt concode_elem_sep void writeLong concode_elem_sep int getPosition concode_elem_sep byte[] getResult concode_elem_sep int getActualSize concode_elem_sep void ensureLength concode_elem_sep void write concode_elem_sep void write concode_elem_sep void write concode_elem_sep void setPosition concode_elem_sep void writeIntAt concode_elem_sep void writeDouble
target: int function ( String arg0 ) { int loc0 = getPosition ( ) ; try { this . write ( arg0 . getBytes ( "srini_string" ) ) ; } catch ( UnsupportedEncodingException loc1 ) { throw new BSONException ( "srini_string" , loc1 ) ; } this . write ( ( byte ) 0x00 ) ; return getPosition ( ) - loc0 ; }