फ़ंक्शन ExportPublicly [SWS_CRYPT_10711] Upstream: RS_CRYPTO_02112
virtual ara::core::Result< std::size_t > ExportPublicly (ReadWriteMem Region out, FormatId format) const noexcept=0;
Serialize object using the provided format.
उपयोग
इंटरफ़ेस ara::crypto::Serializable का सिंक्रोनस सदस्य फ़ंक्शन ExportPublicly निर्दिष्ट आउटपुट प्रारूप [SWS_CRYPT_10711] में ऑब्जेक्ट को सीरियलाइज़ करता है। पैरामीटर के रूप में प्रारूप पहचानकर्ता format (प्रकार FormatId) और गंतव्य मेमोरी क्षेत्र out (प्रकार ReadWriteMem Region) पास किए जाते हैं। सफल निष्पादन पर, फ़ंक्शन ara::core::Result<std::size_t> में लिखे गए बाइट्स की वास्तविक संख्या लौटाता है [SWS_CRYPT_10711]।
संबंधित फ़ंक्शंस के साथ परस्पर क्रिया
यह फ़ंक्शन सीधे GetExportSize [SWS_CRYPT_50006] से संबंधित है, जिसका उपयोग किसी विशिष्ट प्रारूप के लिए आवश्यक बाइट आकार निर्धारित करने के लिए किया जा सकता है। पर्याप्त बफ़र क्षमता सुनिश्चित करने के लिए कॉलर्स आमतौर पर आउटपुट बफ़र out प्रदान करने से पहले GetExportSize से पूछताछ कर सकते हैं। प्रश्न Q-394ae08d9d7e6fa7 (खुला)
त्रुटि प्रबंधन
त्रुटि की स्थिति में, रोलबैक सेमांटिक्स लागू होते हैं और एक संगत त्रुटि कोड लौटाया जाता है [SWS_CRYPT_10711]:
ara::crypto::CryptoErrc::kInsufficientCapacity: पास किया गया आउटपुट बफ़रoutबहुत छोटा है [SWS_CRYPT_10711]।ara::crypto::CryptoErrc::kUnsupportedFormat: इस ऑब्जेक्ट प्रकार के लिए पास किया गया प्रारूप पहचानकर्ता समर्थित नहीं है [SWS_CRYPT_10711]।ara::crypto::CryptoErrc::kUnsupported: ऑब्जेक्ट का निर्यात सामान्यतः समर्थित नहीं है [SWS_CRYPT_10711]।ara::crypto::CryptoErrc::kUsageViolation: निर्यात की जाने वाली वस्तु एक कुंजी है जिसके उपयोग नियम किसी भी प्लेनटेक्स्ट निर्यात (kAllowPlaintextExport) की अनुमति नहीं देते हैं [SWS_CRYPT_10711]।
समवर्तीता और सीमांत शर्तें
विधि को const, noexcept, थ्रेड-सेफ़ ("thread-safe") और अपवाद-सुरक्षित ("exception safe") के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_10711]। नतीजतन, इसे समवर्ती रूप से निष्पादित किया जा सकता है और यह कोई C++ अपवाद नहीं फेंकता है।
यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा उत्पन्न किया गया था।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
| Header-Datei | #include "ara/crypto/common/serializable.h" |
|---|---|
| Scope | class ara::crypto::Serializable |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| format | identifier of the output format |
Parameter (out)
| Parameter | Beschreibung |
|---|---|
| out | an output buffer that the serialized object will be written to |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<std::size_t > | A result containing the size in bytes of the serialized object or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kInsufficientCapacity | rollback_semantics if the output buffer is too small |
| ara::crypto::CryptoErrc::kUnsupportedFormat | rollback_semantics if the specified format ID is not supported for this object type |
| ara::crypto::CryptoErrc::kUnsupported | rollback_semantics if exporting the object is not supported |
| ara::crypto::CryptoErrc::kUsageViolation | rollback_semantics if the object to be exported is a key and the allowed usage of the key does not include kAllowPlaintextExport |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_10711- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_10711@rel:R25-11#68146b76- Content hash
68146b76- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_10711
Status: valid/unmigrated
Version: rel:R25-11#c8dd72d0
Versionshistorie & Revisions (1 transition, 8 revision)
- 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_10711@rel:R25-11#c8dd72d0
Recorded Revisions (8):
- R25-11
rel:R25-11#6e8a805e2026-09-30 - R19-11
rel:R19-11#fe62960e2026-10-14 - R20-11
rel:R20-11#4cac78d62026-10-14 - R21-11
rel:R21-11#13d51a182026-10-14 - R22-11
rel:R22-11#3bb1942d2026-10-14 - R23-11
rel:R23-11#ee143e792026-10-14 - R24-11
rel:R24-11#761192782026-10-14 - R25-11
rel:R25-11#c8dd72d02026-10-14 active
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 · जर्मन मूल