def _read_string(fid, n_bytes, decode=True):
 s0 = fid.read(n_bytes)
 s = s0.split('\x00')[0]
 return (s.decode('utf-8') if decode else s)

def _read_string ( fid , n_bytes , decode = True ) : s0 = fid . read ( n_bytes ) s = s0 . split ( '\x00' ) [ 0 ] return ( s . decode ( 'utf-8' ) if decode else s )
read string .