Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 10 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
20 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
31 linhas
Copiar tudo
12 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
25 linhas
Copiar tudo
Copiar
Copiado
Copiar
Copiado
Interface per object
:
As opposed to
:
Copiar
Copiado
Copiar
Copiado
interface
Service
{
interface
GattRemoteServer
{
GetCharacteristic(CharacteristicId id
);
GetServices() => (array<ServiceInfo> services
);
GetCharacteristics
(
) =>
GetCharacteristics
ForService(ServiceId id
) =>
(array<CharacteristicInfo> characteristics);
(array<CharacteristicInfo> characteristics);
}
}
How Web Bluetooth would use it:
How Web Bluetooth would use it:
// BluetoothRemoteGATTService.cpp
// BluetoothRemoteGATTService.cpp
GetCharacteristic(String uuid) {
GetCharacteristic(String uuid) {
Copiar
Copiado
Copiar
Copiado
service
_->GetCharacteristics
(base::Bind(&OnGetCharacteristics, this,
uuid,
gatt
_->GetCharacteristics
ForService
(base::Bind(&OnGetCharacteristics, this,
...));
uuid,
...));
}
);
}
OnGetCharacteristics(uuid, characteristics, promise) {
OnGetCharacteristics(uuid, characteristics, promise) {
for (characteristic : characteristics) {
for (characteristic : characteristics) {
if (characteristic->uuid == uuid) {
if (characteristic->uuid == uuid) {
Copiar
Copiado
Copiar
Copiado
service_->GetCharacteristic(base::Bind(&OnGetCharacteristic, this, uuid,
promise.resolve(new BluetoothRemoteGATTCharacteristic(
characteristic
));
characteristic
->id, promise
));
return;
}
}
}
}
Copiar
Copiado
Copiar
Copiado
}
promise.
reject("Not Found Error"
);
OnGetCharacteristic(uuid, id, characteristic, promise) {
promise.
resolve(new BluetoothRemoteGATTCharacteristic(id, uuid)
);
}
}
Copiar
Copiado
Copiar
Copiado
Diferenças salvas
Texto original
Abrir arquivo
Interface per object: interface Service { GetCharacteristic(CharacteristicId id); GetCharacteristics() => (array<CharacteristicInfo> characteristics); } How Web Bluetooth would use it: // BluetoothRemoteGATTService.cpp GetCharacteristic(String uuid) { service_->GetCharacteristics(base::Bind(&OnGetCharacteristics, this, uuid, ...)); }); OnGetCharacteristics(uuid, characteristics, promise) { for (characteristic : characteristics) { if (characteristic->uuid == uuid) { service_->GetCharacteristic(base::Bind(&OnGetCharacteristic, this, uuid, characteristic->id, promise)); return; } } } OnGetCharacteristic(uuid, id, characteristic, promise) { promise.resolve(new BluetoothRemoteGATTCharacteristic(id, uuid)); }
Texto alterado
Abrir arquivo
As opposed to: interface GattRemoteServer { GetServices() => (array<ServiceInfo> services); GetCharacteristicsForService(ServiceId id) => (array<CharacteristicInfo> characteristics); } How Web Bluetooth would use it: // BluetoothRemoteGATTService.cpp GetCharacteristic(String uuid) { gatt_->GetCharacteristicsForService(base::Bind(&OnGetCharacteristics, this, uuid, ...)); } OnGetCharacteristics(uuid, characteristics, promise) { for (characteristic : characteristics) { if (characteristic->uuid == uuid) { promise.resolve(new BluetoothRemoteGATTCharacteristic(characteristic)); } } promise.reject("Not Found Error"); }
Encontrar Diferença