protected String getString ( byte [ ] data , int offset ) { if ( offset < 0 ) { return "" ; } int i = offset ; while ( data [ i ++ ] != 0x00 ) { ; } return getString ( data , offset , i - offset - 1 ) ; }
Returns a string value from a zero - terminated byte array at the specified offset .