question: protected String readStringUTF16Z ( int addr ) { if ( addr == 0 ) { return null ; } IMemoryReader memoryReader = MemoryReader . getMemoryReader ( addr , 2 ) ; StringBuilder s = new StringBuilder ( ) ; while ( true ) { int char16 = memoryReader . readNext ( ) ; if ( char16 == 0 ) { break ; } byte [ ] bytes = new byte [ 2 ] ; bytes [ 0 ] = ( byte ) char16 ; bytes [ 1 ] = ( byte ) ( char16 > > 8 ) ; s . append ( new String ( bytes , charset16 ) ) ; } return s . toString ( ) ; }
target:  Read a string in UTF16, until '\0\0'