tools/android/elf_compression/elf_headers.py
def _ReadByteOrder(self, data):
    """Reads and returns the file's byte order."""
    ei_data = data[self._EI_DATA_OFFSET]
    if ei_data == ElfHeader.EiData.ELFDATALSB:
      return 'little'
    elif ei_data == ElfHeader.EiData.ELFDATAMSB:
      return 'big'
    raise RuntimeError('Failed to parse ei_data')
Reads and returns the file's byte order.
Reads and returns the file's byte order.
Reads and returns the file ' s byte order .
def _ReadByteOrder(self, data):
    ei_data = data[self._EI_DATA_OFFSET]
    if ei_data == ElfHeader.EiData.ELFDATALSB:
      return 'little'
    elif ei_data == ElfHeader.EiData.ELFDATAMSB:
      return 'big'
    raise RuntimeError('Failed to parse ei_data')
def _ReadByteOrder ( self , data ) : ei_data = data [ self . _EI_DATA_OFFSET ] if ei_data == ElfHeader . EiData . ELFDATALSB : return 'little' elif ei_data == ElfHeader . EiData . ELFDATAMSB : return 'big' raise RuntimeError ( 'Failed to parse ei_data' )
Reads and returns the file's byte order.
Reads and returns the file ' s byte order .
"""Reads and returns the file's byte order."""
self
data