def remaining(self):
        """Determines how many bytes are remaining in the current context."""
        if self.depth == 0:
            return _STREAM_REMAINING
        return self.limit - self.queue.position
Determines how many bytes are remaining in the current context.