tools/android/elf_compression/elf_headers.py
def GetName(self, data, string_index):
    """Returns the name located on string_index table's offset.

    Args:
      data: bytearray. The file's data.
      string_index: int. Offset from the beginning of the string table to the
        required name.
    """
    begin = self.sh_offset + string_index
    end = data.find(0, begin)
    if end == -1:
      raise RuntimeError('Failed to find null terminator for StringTable entry')
    return data[begin:end].decode('ascii')
Returns the name located on string_index table's offset.

    Args:
      data: bytearray. The file's data.
      string_index: int. Offset from the beginning of the string table to the
        required name.
    
Returns the name located on string_index table's offset.
Returns the name located on string_index table ' s offset .
def GetName(self, data, string_index):
    begin = self.sh_offset + string_index
    end = data.find(0, begin)
    if end == -1:
      raise RuntimeError('Failed to find null terminator for StringTable entry')
    return data[begin:end].decode('ascii')
def GetName ( self , data , string_index ) : begin = self . sh_offset + string_index end = data . find ( 0 , begin ) if end == - 1 : raise RuntimeError ( 'Failed to find null terminator for StringTable entry' ) return data [ begin : end ] . decode ( 'ascii' )
Returns the name located on string_index table's offset.
Returns the name located on string_index table ' s offset .
"""Returns the name located on string_index table's offset.

    Args:
      data: bytearray. The file's data.
      string_index: int. Offset from the beginning of the string table to the
        required name.
    """
self
data
bytearray. The file's data.
bytearray . The file ' s data .
string_index
int. Offset from the beginning of the string table to the
required name.
int . Offset from the beginning of the string table to the required name .