def _detect_xerial_stream(payload):
 if (len(payload) > 16):
  header = struct.unpack(('!' + _XERIAL_V1_FORMAT), bytes(payload)[:16])
  return (header == _XERIAL_V1_HEADER)
 return False

def _detect_xerial_stream ( payload ) : if ( len ( payload ) > 16 ) : header = struct . unpack ( ( '!' + _XERIAL_V1_FORMAT ) , bytes ( payload ) [ : 16 ] ) return ( header == _XERIAL_V1_HEADER ) return False
detects if the data given might have been encoded with the blocking mode of the xerial snappy library .