code: def read_byte(self, do_ord=True) -> int:
          
          try:
              if do_ord:
                  return ord(self.stream.read(1))
              else:
                  return self.stream.read(1)
          except Exception as e:
              raise SDKException(ErrorCode.read_byte_error(e.args[0]))
docs: Read a single byte.
          Args:
              do_ord (bool): (default True) convert the byte to an ordinal first.
          Returns:
              bytes: a single byte if successful. 0 (int) if an exception occurred.