função Convert [SWS_CRYPT_50198] Upstream: RS_CRYPTO_02112
virtual ara::core::Result< void > Convert (ReadOnlyMemRegion input, ReadWriteMemRegion out) const noexcept=0;
Converts the data according to the previous configuration of the Formatter.
A função-membro puramente virtual Convert da interface ara::crypto::Formatter executa uma conversão síncrona de dados de acordo com a configuração previamente definida do objeto formatador [SWS_CRYPT_50198]. A declaração está disponível por meio do cabeçalho #include "ara/crypto/common/formatter.h" [SWS_CRYPT_50198]. Para a chamada, o chamador passa os dados de entrada no formato original através do buffer input do tipo ReadOnlyMemRegion, bem como um buffer gravável out do tipo ReadWriteMemRegion, no qual os dados convertidos no formato de destino são gravados [SWS_CRYPT_50198].
O valor de retorno é definido como ara::core::Result<void> e sinaliza o sucesso ou um erro ocorrido [SWS_CRYPT_50198]. Se ocorrer um problema durante a conversão, aplica-se uma semântica de rollback com os seguintes códigos de erro específicos [SWS_CRYPT_50198]:
ara::crypto::CryptoErrc::kInvalidArgument: É retornado caso os dados de entrada serializados não correspondam ao formato especificado [SWS_CRYPT_50198].ara::crypto::CryptoErrc::kInsufficientCapacity: Ocorre quando a capacidade do buffer de saída passadooutfor insuficiente para acomodar os dados de resultado [SWS_CRYPT_50198].
Em termos de concorrência e tolerância a falhas, o método é especificado como seguro para threads (thread-safe) e seguro contra exceções (exception safe) [SWS_CRYPT_50198]. Como a assinatura é provida dos especificadores const e noexcept, a operação não lança exceções C++ e não altera o estado da instância do formatador [SWS_CRYPT_50198].
Esta nota de utilização foi gerada automaticamente por uma IA com base na especificação.
| Header-Datei | #include "ara/crypto/common/formatter.h" |
|---|---|
| Scope | class ara::crypto::Formatter |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| input | an input buffer containing the data in the input format |
Parameter (out)
| Parameter | Beschreibung |
|---|---|
| out | an output buffer that the data will be written to in the output format |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | An empty result or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kInvalidArgument | rollback_semantics if serialized does not conform to the specified format |
| ara::crypto::CryptoErrc::kInsufficientCapacity | rollback_semantics if the output buffer is too small |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_50198- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50198@rel:R25-11#8241dd07- Content hash
8241dd07- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50198
Status: valid/unmigrated
Version: rel:R25-11#19644f36
Versionshistorie & Revisions (1 transition)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_CRYPT_50198@rel:R25-11#19644f36
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · Original em alemão