code: def write_int8(self, value, little_endian=True):
          
          if little_endian:
              endian = "<"
          else:
              endian = ">"
          return self.pack('%sb' % endian, value)
docs: Pack the value as a signed byte and write 1 byte to the stream.
  
          Args:
              value:
              little_endian (bool): specify the endianness. (Default) Little endian.
  
          Returns:
              int: the number of bytes written.