code: def get_data(self, ptr, unbuffered=False):
          
          result = _decode(self.get_raw_data(ptr, unbuffered),
                           self._reading_format[self.ws_type])
          return result
docs: Get decoded data from circular buffer.
  
          If unbuffered is false then a cached value that was obtained
          earlier may be returned.