tools/android/elf_compression/elf_headers.py
def ToBytes(self):
    """Returns byte representation of ELF entry."""
    bytearr = bytearray()
    for field_name, field_size in self._fields:
      field_bytes = getattr(self, field_name).to_bytes(
          field_size, byteorder=self.byte_order)
      bytearr.extend(field_bytes)
    return bytearr
Returns byte representation of ELF entry.
Returns byte representation of ELF entry.
Returns byte representation of ELF entry .
def ToBytes(self):
    bytearr = bytearray()
    for field_name, field_size in self._fields:
      field_bytes = getattr(self, field_name).to_bytes(
          field_size, byteorder=self.byte_order)
      bytearr.extend(field_bytes)
    return bytearr
def ToBytes ( self ) : bytearr = bytearray ( ) for field_name , field_size in self . _fields : field_bytes = getattr ( self , field_name ) . to_bytes ( field_size , byteorder = self . byte_order ) bytearr . extend ( field_bytes ) return bytearr
Returns byte representation of ELF entry.
Returns byte representation of ELF entry .
"""Returns byte representation of ELF entry."""
self