parameters: (self, suffix, start=None, end=None)
return_statement: return self._slice(start, end) == suffix
docstring: Return whether the current bitstring ends with suffix.
  
          suffix -- The bitstring to search for.
          start -- The bit position to start from. Defaults to 0.
          end -- The bit position to end at. Defaults to self.len.
docstring_summary: Return whether the current bitstring ends with suffix.
docstring_tokens: Return whether the current bitstring ends with suffix .
function: def endswith(self, suffix, start=None, end=None):
          """Return whether the current bitstring ends with suffix.
  
          suffix -- The bitstring to search for.
          start -- The bit position to start from. Defaults to 0.
          end -- The bit position to end at. Defaults to self.len.
  
          """
          suffix = Bits(suffix)
          start, end = self._validate_slice(start, end)
          if start + suffix.len > end:
              return False
          start = end - suffix.len
          return self._slice(start, end) == suffix
function_tokens: def endswith ( self , suffix , start = None , end = None ) : suffix = Bits ( suffix ) start , end = self . _validate_slice ( start , end ) if start + suffix . len > end : return False start = end - suffix . len return self . _slice ( start , end ) == suffix