फ़ंक्शन 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.
इंटरफ़ेस ara::crypto::Formatter का विशुद्ध वर्चुअल सदस्य फ़ंक्शन (pure virtual member function) Convert फ़ॉर्मेटर ऑब्जेक्ट के पूर्व-निर्धारित कॉन्फ़िगरेशन के अनुसार डेटा का सिंक्रोनस रूपांतरण निष्पादित करता है [SWS_CRYPT_50198]। घोषणा हेडर #include "ara/crypto/common/formatter.h" के माध्यम से उपलब्ध है [SWS_CRYPT_50198]। कॉल के लिए, कॉलर प्रकार ReadOnlyMemRegion के बफ़र input के माध्यम से मूल स्वरूप में इनपुट डेटा और साथ ही प्रकार ReadWriteMemRegion का एक लिखने योग्य बफ़र out पास करता है, जिसमें रूपांतरित डेटा को लक्ष्य स्वरूप में लिखा जाता है [SWS_CRYPT_50198]।
रिटर्न मान को ara::core::Result<void> के रूप में परिभाषित किया गया है और यह सफलता या हुई किसी त्रुटि का संकेत देता है [SWS_CRYPT_50198]। यदि रूपांतरण के दौरान कोई समस्या आती है, तो निम्नलिखित विशिष्ट त्रुटि कोड के साथ रोलबैक सिमेंटिक्स प्रभावी होता है [SWS_CRYPT_50198]:
ara::crypto::CryptoErrc::kInvalidArgument: लौटाया जाता है यदि सीरियलाइज़ किया गया इनपुट डेटा निर्दिष्ट स्वरूप के अनुरूप नहीं है [SWS_CRYPT_50198]।ara::crypto::CryptoErrc::kInsufficientCapacity: तब होता है जब पास किए गए आउटपुट बफ़रoutकी क्षमता परिणाम डेटा को समायोजित करने के लिए बहुत कम होती है [SWS_CRYPT_50198]।
समवर्तीता और त्रुटि सहनशीलता के संबंध में, विधि को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50198]। चूंकि सिग्नेचर विनिर्देशक const और noexcept के साथ प्रदान किया गया है, इसलिए ऑपरेशन कोई C++ अपवाद नहीं फेंकता है और फ़ॉर्मेटर इंस्टेंस की स्थिति को नहीं बदलता है [SWS_CRYPT_50198]।
यह उपयोग नोट विनिर्देश के आधार पर AI द्वारा स्वचालित रूप से तैयार किया गया था।
| 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#7bffa1a8- Content hash
7bffa1a8- 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 · जर्मन मूल