función 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.
La función miembro virtual pura Convert de la interfaz ara::crypto::Formatter realiza una conversión síncrona de datos de acuerdo con la configuración previamente establecida del objeto formateador [SWS_CRYPT_50198]. La declaración está disponible a través de la cabecera #include "ara/crypto/common/formatter.h" [SWS_CRYPT_50198]. Para la llamada, la entidad emisora de la llamada transfiere los datos de entrada en el formato original a través del búfer input del tipo ReadOnlyMemRegion, así como un búfer modificable out del tipo ReadWriteMemRegion, en el cual se escriben los datos convertidos en el formato de destino [SWS_CRYPT_50198].
El valor de retorno está definido como ara::core::Result<void> y señala el éxito o un error ocurrido [SWS_CRYPT_50198]. Si surge un problema durante la conversión, se aplica una semántica de reversión con los siguientes códigos de error específicos [SWS_CRYPT_50198]:
ara::crypto::CryptoErrc::kInvalidArgument: Se devuelve si los datos de entrada serializados no corresponden al formato especificado [SWS_CRYPT_50198].ara::crypto::CryptoErrc::kInsufficientCapacity: Se produce cuando la capacidad del búfer de salida suministradooutes demasiado reducida para albergar los datos de resultado [SWS_CRYPT_50198].
En cuanto a la concurrencia y la tolerancia a fallos, el método está especificado como seguro para subprocesos (thread-safe) y seguro frente a excepciones (exception safe) [SWS_CRYPT_50198]. Dado que la firma cuenta con los especificadores const y noexcept, la operación no lanza excepciones de C++ ni modifica el estado de la instancia de Formatter [SWS_CRYPT_50198].
Esta nota de uso ha sido generada automáticamente por una IA sobre la base de la especificación.
| 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#3f6e3716- Content hash
3f6e3716- 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 en alemán