DEENESPTFRRUARHIKOZHNL

क्लास ara::per::ReadAccessor

[SWS_PER_00342] Upstream: RS_PER_00004, RS_AP_00122, RS_AP_00146

class ReadAccessor :            public virtual FileAccessor {...};

ReadAccessor is used to read file data. It provides binary and text mode methods for checking or getting the current byte/character (PeekByte/PeekChar, GetByte/GetChar) methods for reading a section of a binary/text file (Read Binary/ReadText), a method to read a line of text (ReadLine).

Header-Datei#include "ara/per/read_accessor.h"
Forwarding-Header#include "ara/per/per_fwd.h"
Scopenamespace ara::per
Basisklasse(n)FileAccessor

उपयोगकर्ता गाइडएआई जनित

पर्सिस्टेड फ़ाइल और बाइनरी डेटा के ब्लॉक-वार, लाइन-वार या कैरेक्टर-आधारित पठन को सक्षम बनाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 811820211677 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

पर्सिस्टेड फ़ाइल और बाइनरी डेटा के ब्लॉक-वार, लाइन-वार या कैरेक्टर-आधारित पठन को सक्षम बनाता है।

क्लास ara::per::ReadAccessor बाइनरी और टेक्स्ट मोड में फ़ाइलों के अनुक्रमिक और लाइन-आधारित पठन के लिए सिंक्रोनस विधियां प्रदान करती है [SWS_PER_00421], [SWS_PER_00119]। उपभोगकारी पठन के अलावा, यह निम्नलिखित बाइट्स या वर्णों के पॉइंटर-तटस्थ पूर्वावलोकन की अनुमति देती है। चूंकि इंस्टेंस थ्रेड-सुरक्षित नहीं हैं, इसलिए समानांतर एक्सेस को बाह्य रूप से समन्वित किया जाना चाहिए, जबकि त्रुटि की स्थिति में रोलबैक गारंटी रीड पॉइंटर स्थिति की सुरक्षा करती है [SWS_PER_00419]।

संदर्भ और कार्य क्षेत्र

क्लास ara::per::ReadAccessor पर्सिस्टेंस प्रबंधन (मॉड्यूल per) के भीतर फ़ाइल सामग्री के सिंक्रोनस पठन के लिए एक इंटरफ़ेस प्रदान करती है और वस्तुतः FileAccessor से व्युत्पन्न होती है। यह पर्सिस्टेड डेटा स्टोरेज के लिए रीड एक्सेस को एब्स्ट्रैक्ट करती है और बाइनरी तथा टेक्स्ट दोनों एक्सेस विधियां प्रदान करती है। एप्लिकेशन विशिष्ट फ़ंक्शंस के माध्यम से अलग-अलग बाइट्स या वर्णों की जांच और पुनर्प्राप्ति कर सकते हैं, साथ ही सन्निहित ब्लॉकों या पूर्ण पंक्तियों को पढ़ सकते हैं।

जीवन चक्र और समवर्तीता

ReadAccessor का डिफ़ॉल्ट कन्स्ट्रक्टर हटा दिया गया है [SWS_PER_00461]; इसलिए इंस्टेंसिएशन आमतौर पर पर्सिस्टेंस मॉड्यूल के उच्च-स्तरीय ओपनिंग और एक्सेस मैकेनिज्म के माध्यम से होता है। इंटरफ़ेस और बाउंड एक्सेस संसाधनों की रिलीज़ वर्चुअल डिस्ट्रक्टर ~ReadAccessor() [SWS_PER_00417] के माध्यम से होती है। ReadAccessor के इंस्टेंस में एक आंतरिक रीड पॉइंटर होता है जो फ़ाइल में वर्तमान स्थिति का प्रबंधन करता है। क्लास के सभी मेथड्स को स्पष्ट रूप से गैर-थ्रेड-सुरक्षित (not thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_PER_00419], इसलिए कॉलर द्वारा एक ही इंस्टेंस पर समवर्ती रीड ऑपरेशनों को बाह्य रूप से सिंक्रोनाइज़ किया जाना चाहिए।

बाइनरी और टेक्स्ट डेटा के लिए उपयोग पथ

बाइनरी फ़ाइल ऑपरेशनों के लिए, क्लास पूर्वावलोकन योग्य या अनुक्रमिक पठन के लिए फ़ंक्शन प्रदान करती है। PeekByte() के साथ, वर्तमान पठन स्थिति पर बाइट का निरीक्षण रीड पॉइंटर को बदले बिना किया जा सकता है [SWS_PER_00418]। इसके विपरीत, GetByte() ठीक एक बाइट पढ़ता है और स्थिति को आगे बढ़ाता है [SWS_PER_00419]। बड़े डेटा ब्लॉक को ReadBinary(n) के माध्यम से एक ara::core::Vector<ara::core::Byte> में पढ़ा जा सकता है, जिससे स्थिति तदनुसार समायोजित हो जाती है; यदि फ़ाइल का अंत समय से पहले पहुँच जाता है, तो वेक्टर में अनुरोधित से कम बाइट्स होते हैं [SWS_PER_00422]। ReadBinary() के माध्यम से फ़ाइल के अंत तक शेष सभी बाइट्स को एक चरण में प्राप्त किया जा सकता है [SWS_PER_00421]।

Sequenzielles Lesen von Dateiinhaltenएप्लिकेशनReadAccessorPeekByte()Result<Byte> (स्थिति अपरिवर्तित)ReadBinary(n)Result<Vector<Byte>> (स्थिति आगे बढ़ती है)ReadBinary()Result<Vector<Byte>> (Restinhalt bis Dateiende)

अनुक्रम आरेख: प्रारंभिक जांच और खंड-दर-खंड डेटा प्रोसेसिंग के साथ अनुक्रमिक रीड एक्सेस का सामान्य प्रवाह। स्रोत: [SWS_PER_00418], [SWS_PER_00422], [SWS_PER_00421]।

टेक्स्ट मोड में, PeekChar() एक कैरेक्टर-आधारित पूर्वावलोकन प्रदान करता है [SWS_PER_00167], जबकि GetChar() अगले कैरेक्टर का उपभोग करता है [SWS_PER_00168]। लाइन-वार पठन ReadLine() के माध्यम से होता है, जो एक विभाजक (डिफ़ॉल्ट: '\n', ASCII 0x0a) तक पढ़ता है; विभाजक को परिणाम स्ट्रिंग में शामिल नहीं किया जाता है [SWS_PER_00119]। n वर्णों के अनुभागों या संपूर्ण शेष सामग्री को ReadText() के ओवरलोड्स के माध्यम से पढ़ा जा सकता है [SWS_PER_00165], [SWS_PER_00420]। यदि रीड पॉइंटर मल्टी-बाइट कैरेक्टर के बीच में है, तो परिणामी स्ट्रिंग्स में अपूर्ण यूनिकोड कोडपॉइंट हो सकते हैं [SWS_PER_00119], [SWS_PER_00165]।

त्रुटि परिदृश्य और त्रुटि प्रबंधन

ReadAccessor के सभी रीड ऑपरेशन अपने मानों को एक ara::core::Result में एनकैप्सुलेट करके लौटाते हैं और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट हैं [SWS_PER_00419]। यदि किसी एक्सेस के दौरान कोई त्रुटि होती है, तो एक सख्त रोलबैक सिमेंटिक्स लागू होता है: त्रुटि की स्थिति में रीड पॉइंटर की वर्तमान स्थिति हमेशा अपरिवर्तित रहती है [SWS_PER_00421], [SWS_PER_00422]। विशिष्ट प्रलेखित त्रुटि स्थितियों में शामिल हैं:

  • भौतिक स्टोरेज माध्यम की त्रुटियों के मामले में PerErrc::kPhysicalStorageFailure [SWS_PER_00419], [SWS_PER_00420],
  • PerErrc::kEof, यदि रीड पॉइंटर फ़ाइल के अंत में है या फ़ाइल खाली है [SWS_PER_00419], [SWS_PER_00168],
  • PerErrc::kValidationFailed, जब डेटा की वैधता सत्यापित नहीं की जा सकती [SWS_PER_00418], [SWS_PER_00119],
  • विफल डिक्रिप्शन के मामले में PerErrc::kEncryptionFailed [SWS_PER_00419], [SWS_PER_00422] और
  • PerErrc::kAuthenticationFailed, यदि संग्रहीत डेटा का MAC सत्यापन विफल हो जाता है [SWS_PER_00167], [SWS_PER_00421]।

यह मार्गदर्शिका AUTOSAR Adaptive R25-11 विनिर्देश पर आधारित है और स्वचालित रूप से बनाई गई थी।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

2

क्लास आरेख

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__per__ReadAccessor956 ReadAccessor + ReadAccessor() + ~ReadAccessor() + GetByte() + GetChar() + PeekByte() + PeekChar() + ReadBinary() + ReadLine() + ReadText() nara__per__FileAccessor932 FileAccessor nara__per__ReadAccessor956->nara__per__FileAccessor932 nara__per__ReadWriteAccessor483 ReadWriteAccessor nara__per__ReadWriteAccessor483->nara__per__ReadAccessor956

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

ReadAccessor फ़ंक्शन

The default constructor for ReadAccessor shall not be used.

ReadAccessor ()=delete;
~ReadAccessor फ़ंक्शन

Destructor for ReadAccessor.

~ReadAccessor () override noexcept;

मेथड

GetByte फ़ंक्शन

Returns the byte at the current position of the file, advancing the current position. In case of an error, the current position is not changed.

ara::core::Result< ara::core::Byte > GetByte () noexcept;
GetChar फ़ंक्शन

Returns the character at the current position of the file, advancing the current position. In case of an error, the current position is not changed.

ara::core::Result< char > GetChar () noexcept;
PeekByte फ़ंक्शन

Returns the byte at the current position of the file. The current position is not changed.

ara::core::Result< ara::core::Byte > PeekByte () const noexcept;
PeekChar फ़ंक्शन

Returns the character at the current position of the file. The current position is not changed.

ara::core::Result< char > PeekChar () const noexcept;
ReadBinary फ़ंक्शन 2

Reads all remaining bytes into a Vector of Byte, starting from the current position. The current position is set to the end of the file. In case of an error, the current position is not changed.

ओवरलोड ReadBinary 2
ReadLine फ़ंक्शन

Reads a complete line of characters into a String, advancing the current position accordingly. The end of the line is demarcated by the delimiter, or by "\\n" (ASCII 0x0a) if that parameter is omitted. The delimiter itself is not included in the returned String. Only Unicode code points with one character (code unit) can be used as delimiters. The returned string may start with an incomplete Unicode code point in case the current read position is in the middle of a code point. If the end of the file is reached, the remaining characters are returned and the current position is set to the end of the file. In case of an error, the current position is not changed.

ara::core::Result< ara::core::String > ReadLine (char delimiter=’\n’) noexcept;
ReadText फ़ंक्शन 2

Reads a number of characters into a String, starting from the current position. The returned string may start and/or end with incomplete Unicode code points in case the current read position and/or the last read character (code unit) is in the middle of a code point. The current position is advanced accordingly. If the end of the file is reached, the number of returned characters can be less than the requested number, and the current position is set to the end of the file. In case of an error, the current position is not changed.

ओवरलोड ReadText 2

मेथड का प्रलेखन

फ़ंक्शन GetByte [SWS_PER_00419] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::Byte > GetByte () noexcept;

Returns the byte at the current position of the file, advancing the current position. In case of an error, the current position is not changed.

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Byte >A Result containing a byte. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00419
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00419@rel:R25-11#6cfb2e19
Content hash
6cfb2e19
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00419
Status: valid/unmigrated Version: rel:R25-11#0912989a Versionshistorie & Revisions (1 transition, 7 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_PER_00419@rel:R25-11#0912989a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0364504c2026-09-30
  • R20-11rel:R20-11#5413fe932026-10-14
  • R21-11rel:R21-11#942b773e2026-10-14
  • R22-11rel:R22-11#bd9006822026-10-14
  • R23-11rel:R23-11#a95950da2026-10-14
  • R24-11rel:R24-11#0912989a2026-10-14
  • R25-11rel:R25-11#0912989a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन GetChar [SWS_PER_00168] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< char > GetChar () noexcept;

Returns the character at the current position of the file, advancing the current position. In case of an error, the current position is not changed.

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result< char >A Result containing a character. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00168@rel:R25-11#463036cd
Content hash
463036cd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00168
Status: valid/unmigrated Version: rel:R25-11#0c481b90 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_PER_00168@rel:R25-11#0c481b90
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#3ca1a1292026-09-30
  • R19-11rel:R19-11#730eeb9f2026-10-14
  • R20-11rel:R20-11#8515a7212026-10-14
  • R21-11rel:R21-11#9651569a2026-10-14
  • R22-11rel:R22-11#cece1f3e2026-10-14
  • R23-11rel:R23-11#af3b07a02026-10-14
  • R24-11rel:R24-11#cbb2020f2026-10-14
  • R25-11rel:R25-11#0c481b902026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन PeekByte [SWS_PER_00418] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::Byte > PeekByte () const noexcept;

Returns the byte at the current position of the file. The current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: eb387be6a3cf उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

ara::per::ReadAccessor क्लास का सिंक्रोनस सदस्य फ़ंक्शन PeekByte फ़ाइल स्थिति को बदले बिना फ़ाइल की वर्तमान स्थिति पर एक एकल बाइट पढ़ता है [SWS_PER_00418]। फ़ंक्शन के लिए हेडर ara/per/read_accessor.h को शामिल करने की आवश्यकता होती है, यह कोई पैरामीटर नहीं लेता है और पढ़े गए मान को एक ara::core::Result<ara::core::Byte> में लौटाता है [SWS_PER_00418]।

यदि एक्सेस के दौरान कोई त्रुटि होती है, तो रिटर्न ऑब्जेक्ट में या तो एक निर्माता-विशिष्ट त्रुटि कोड या PerErrc से परिभाषित त्रुटियों में से एक शामिल होता है [SWS_PER_00418]:

  • PerErrc::kEof: वर्तमान स्थिति फ़ाइल के अंत में है या फ़ाइल खाली है।
  • PerErrc::kPhysicalStorageFailure: भौतिक स्टोरेज तक पहुँच विफल हो गई है।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता की गारंटी नहीं दी जा सकती।
  • PerErrc::kEncryptionFailed: संग्रहीत डेटा का डिक्रिप्शन विफल रहा।
  • PerErrc::kAuthenticationFailed: MAC (Message Authentication Code) का सत्यापन विफल रहा।

निष्पादन सुरक्षा के संबंध में, मेथड को noexcept और exception safe के रूप में घोषित किया गया है [SWS_PER_00418]। हालाँकि, चूँकि विनिर्देश PeekByte को not thread-safe के रूप में वर्गीकृत करता है, इसलिए ara::per::ReadAccessor के समान इंस्टेंस पर समानांतर कॉलों के लिए संभवतः एप्लिकेशन-साइड सिंक्रोनाइज़ेशन की आवश्यकता होगी [SWS_PER_00418]। प्रश्न Q-14b3334052f6c810 (खुला)

यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा उत्पन्न किया गया था।

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Byte >A Result containing a byte. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00418
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00418@rel:R25-11#a665092e
Content hash
a665092e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00418
Status: valid/unmigrated Version: rel:R25-11#728d6d2e Versionshistorie & Revisions (1 transition, 7 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_PER_00418@rel:R25-11#728d6d2e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#e281f9292026-09-30
  • R20-11rel:R20-11#4a5022882026-10-14
  • R21-11rel:R21-11#265813ae2026-10-14
  • R22-11rel:R22-11#7f25e6502026-10-14
  • R23-11rel:R23-11#413441c32026-10-14
  • R24-11rel:R24-11#3c1c4a1c2026-10-14
  • R25-11rel:R25-11#728d6d2e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन PeekChar [SWS_PER_00167] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< char > PeekChar () const noexcept;

Returns the character at the current position of the file. The current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: b4d92aee30b2 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

ara::per::ReadAccessor क्लास (हेडर #include "ara/per/read_accessor.h") का मेथड PeekChar रीड पॉइंटर को बदले बिना किसी फ़ाइल की वर्तमान स्थिति पर मौजूद वर्ण को पढ़ता है [SWS_PER_00167]।

उपयोग

फ़ंक्शन का सिग्नेचर ara::core::Result<char> PeekChar() const noexcept; है। यह सिंक्रोनस रूप से कार्य करता है, const के रूप में घोषित है और अपवाद सुरक्षा (exception safe) की गारंटी देता है [SWS_PER_00167]। रिटर्न मान के रूप में एक ara::core::Result<char> कार्य करता है, जो सफलता की स्थिति में पढ़े गए वर्ण को समाहित करता है [SWS_PER_00167]।

त्रुटि प्रबंधन

यदि कोई त्रुटि उत्पन्न होती है, तो ara::core::Result निर्माता-विशिष्ट त्रुटियाँ या PerErrc से निम्न त्रुटि कोडों में से एक प्रदान करता है [SWS_PER_00167]:

  • PerErrc::kEof: वर्तमान पढ़ने की स्थिति फ़ाइल के अंत तक पहुँच गई है या फ़ाइल खाली है [SWS_PER_00167]।
  • PerErrc::kPhysicalStorageFailure: भौतिक भंडारण माध्यम तक पहुँच विफल रही [SWS_PER_00167]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता सुनिश्चित नहीं की जा सकती [SWS_PER_00167]।
  • PerErrc::kEncryptionFailed: संग्रहीत डेटा का डिक्रिप्शन विफल रहा [SWS_PER_00167]।
  • PerErrc::kAuthenticationFailed: डेटा के Message Authentication Code (MAC) का सत्यापन विफल रहा [SWS_PER_00167]।

समवर्तीता और प्रतिबंध

ऑपरेशन थ्रेड-सुरक्षित नहीं है (not thread-safe) [SWS_PER_00167]। इसलिए, एक ही ReadAccessor-इंस्टेंस पर समानांतर एक्सेस को कॉलर द्वारा सिंक्रोनाइज़ किया जाना चाहिए।

यह उपयोग नोट AUTOSAR Adaptive रिलीज़ R25-11 के विनिर्देश पर आधारित है।

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result< char >A Result containing a character. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00167@rel:R25-11#774ec30a
Content hash
774ec30a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00167
Status: valid/unmigrated Version: rel:R25-11#0012349e 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_PER_00167@rel:R25-11#0012349e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4e561ee32026-09-30
  • R19-11rel:R19-11#a681f46f2026-10-14
  • R20-11rel:R20-11#484d8e7f2026-10-14
  • R21-11rel:R21-11#9ba26bcc2026-10-14
  • R22-11rel:R22-11#adc94cd82026-10-14
  • R23-11rel:R23-11#5efe621b2026-10-14
  • R24-11rel:R24-11#0012349e2026-10-14
  • R25-11rel:R25-11#0012349e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadAccessor [SWS_PER_00461] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00146

ReadAccessor ()=delete;

The default constructor for ReadAccessor shall not be used.

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00461
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00461@rel:R25-11#c9ba77f3
Content hash
c9ba77f3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00461
Status: valid/unmigrated Version: rel:R25-11#036da8e2 Versionshistorie & Revisions (1 transition, 6 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_PER_00461@rel:R25-11#036da8e2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#030094252026-09-30
  • R21-11rel:R21-11#ebfad02e2026-10-14
  • R22-11rel:R22-11#2e0765fe2026-10-14
  • R23-11rel:R23-11#ab252e082026-10-14
  • R24-11rel:R24-11#036da8e22026-10-14
  • R25-11rel:R25-11#036da8e22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadBinary [SWS_PER_00421] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::Vector< ara::core::Byte > > ReadBinary () noexcept;

Reads all remaining bytes into a Vector of Byte, starting from the current position. The current position is set to the end of the file. In case of an error, the current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 325f0e841208 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास ara::per::ReadAccessor का पैरामीटर-रहित मेथड ReadBinary वर्तमान फ़ाइल स्थिति से फ़ाइल के अंत तक सभी शेष बाइट्स को समकालिक रूप से एक ara::core::Vector<ara::core::Byte> में पढ़ता है [SWS_PER_00421]। सफल पठन प्रक्रिया के बाद, वर्तमान फ़ाइल स्थिति को फ़ाइल के अंत पर सेट किया जाता है [SWS_PER_00421]। रिटर्न मान ara::core::Result के रूप में एनकैप्सुलेटेड है और noexcept के रूप में घोषित है; व्याख्या: चूँकि कोई एसिंक्रोनस रिटर्न प्रकार उपलब्ध नहीं है, इसलिए मेथड संभवतः कॉलर को ब्लॉक करता है। प्रश्न Q-8e6054123cea57ac (खुला)

यदि पढ़ते समय कोई त्रुटि होती है, तो मूल फ़ाइल स्थिति अपरिवर्तित बनी रहती है [SWS_PER_00421]। इस स्थिति में लौटाया गया ara::core::Result या तो निर्माता-विशिष्ट त्रुटियाँ या PerErrc से विशिष्ट त्रुटि कोडों में से एक शामिल करता है [SWS_PER_00421]:

  • PerErrc::kPhysicalStorageFailure: भौतिक मेमोरी एक्सेस विफल रहता है [SWS_PER_00421]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता सुनिश्चित नहीं की जा सकती [SWS_PER_00421]।
  • PerErrc::kEncryptionFailed: डेटा का डिक्रिप्शन विफल रहता है [SWS_PER_00421]।
  • PerErrc::kAuthenticationFailed: MAC का सत्यापन विफल रहता है [SWS_PER_00421]।
  • PerErrc::kEof: फ़ाइल खाली है या पठन स्थिति पहले से ही फ़ाइल के अंत में है [SWS_PER_00421]।

फ़ंक्शन को अपवाद-सुरक्षित (exception safe), लेकिन स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में परिभाषित किया गया है [SWS_PER_00421]। इसलिए उसी ReadAccessor पर समवर्ती कॉल्स को कॉलर द्वारा समन्वित किया जाना चाहिए। जब तक कि संपूर्ण शेष फ़ाइल सामग्री को एक साथ पढ़ने के बजाय केवल बाइट्स के सबसेट को पढ़ना न हो, तब इसके बजाय ओवरलोडेड वेरिएंट ReadBinary(std::uint64_t n) का उपयोग किया जाना चाहिए [SWS_PER_00422]।

यह पाठ एक AI द्वारा तैयार किया गया था। सभी विवरण AUTOSAR विनिर्देश की आवश्यकताओं पर आधारित हैं।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<ara::core::Byte > >A Result containing a Vector of Byte. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00421
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00421@rel:R25-11#dcdfe34d
Content hash
dcdfe34d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00421
Status: valid/unmigrated Version: rel:R25-11#196469d1 Versionshistorie & Revisions (1 transition, 7 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_PER_00421@rel:R25-11#196469d1
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#eeeb41ef2026-09-30
  • R20-11rel:R20-11#8500f2512026-10-14
  • R21-11rel:R21-11#bdd2c0352026-10-14
  • R22-11rel:R22-11#573348522026-10-14
  • R23-11rel:R23-11#1941de772026-10-14
  • R24-11rel:R24-11#8e7d483b2026-10-14
  • R25-11rel:R25-11#196469d12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadBinary [SWS_PER_00422] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::Vector< ara::core::Byte > > ReadBinary (std::uint64_t n) noexcept;

Reads a number of bytes into a Vector of Byte, starting from the current position. The current position is advanced accordingly. If the end of the file is reached, the number of returned bytes can be less than the requested number, and the current position is set to the end of the file. In case of an error, the current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 4e14906b2550 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास ara::per::ReadAccessor का फ़ंक्शन ReadBinary वर्तमान फ़ाइल स्थिति से शुरू करके अधिकतम n बाइट्स को समकालिक रूप से एक ara::core::Vector<ara::core::Byte> में पढ़ता है [SWS_PER_00422]। सफल पठन प्रक्रिया पर, वर्तमान फ़ाइल स्थिति को पढ़े गए बाइट्स की संख्या से आगे बढ़ाया जाता है; यदि इस दौरान फ़ाइल का अंत आ जाता है, तो लौटाए गए वेक्टर में n से कम बाइट्स हो सकते हैं, और फ़ाइल स्थिति फ़ाइल के अंत पर बनी रहती है [SWS_PER_00422]।

यदि पठन प्रक्रिया के दौरान कोई त्रुटि होती है, तो फ़ाइल स्थिति में कोई परिवर्तन नहीं किया जाता है [SWS_PER_00422]। त्रुटि प्रबंधन लौटाए गए ara::core::Result के माध्यम से किया जाता है, जिसमें PerErrc से विशिष्ट त्रुटि कोड या निर्माता-विशिष्ट त्रुटियाँ हो सकती हैं [SWS_PER_00422]:

  • PerErrc::kPhysicalStorageFailure: भौतिक मेमोरी तक पहुँच विफल रहती है [SWS_PER_00422]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा का सत्यापन सुनिश्चित नहीं किया जा सकता [SWS_PER_00422]।
  • PerErrc::kEncryptionFailed: संग्रहीत डेटा का डिक्रिप्शन विफल रहता है [SWS_PER_00422]।
  • PerErrc::kEof: वर्तमान स्थिति पहले से ही फ़ाइल के अंत में है या फ़ाइल खाली है [SWS_PER_00422]।
  • PerErrc::kAuthenticationFailed: डेटा के MAC (Message Authentication Code) की जाँच विफल रहती है [SWS_PER_00422]।

concurrency के संबंध में, मेथड को not thread-safe के रूप में निर्दिष्ट किया गया है, जिसके कारण समान एक्सेसॉर पर समानांतर एक्सेस को एप्लिकेशन स्तर पर सिंक्रनाइज़ किया जाना चाहिए; हालाँकि इसे exception safe घोषित किया गया है और noexcept के साथ एनोटेट किया गया है [SWS_PER_00422]। पैरामीटर-रहित ओवरलोड [SWS_PER_00421] के विपरीत, जो हमेशा फ़ाइल के अंत तक सभी शेष बाइट्स को पढ़ता है, यह वेरिएंट परिभाषित ब्लॉक आकारों के खंडवार पठन की अनुमति देता है।

यह पाठ एक AI द्वारा उत्पन्न किया गया था और यह क्यूरेशन सहायता के रूप में कार्य करता है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
nNumber of bytes to read.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<ara::core::Byte > >A Result containing a Vector of Byte. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00422
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00422@rel:R25-11#5469d3a5
Content hash
5469d3a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00422
Status: valid/unmigrated Version: rel:R25-11#6130fc46 Versionshistorie & Revisions (1 transition, 7 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_PER_00422@rel:R25-11#6130fc46
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0c9042422026-09-30
  • R20-11rel:R20-11#fc873a932026-10-14
  • R21-11rel:R21-11#77fe785f2026-10-14
  • R22-11rel:R22-11#979493562026-10-14
  • R23-11rel:R23-11#1177696c2026-10-14
  • R24-11rel:R24-11#1d2549ee2026-10-14
  • R25-11rel:R25-11#6130fc462026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadLine [SWS_PER_00119] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00129, RS_AP_00135, RS_AP_00136, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::String > ReadLine (char delimiter=’\n’) noexcept;

Reads a complete line of characters into a String, advancing the current position accordingly. The end of the line is demarcated by the delimiter, or by "\\n" (ASCII 0x0a) if that parameter is omitted. The delimiter itself is not included in the returned String. Only Unicode code points with one character (code unit) can be used as delimiters. The returned string may start with an incomplete Unicode code point in case the current read position is in the middle of a code point. If the end of the file is reached, the remaining characters are returned and the current position is set to the end of the file. In case of an error, the current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 30f46bde066b उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

क्लास ara::per::ReadAccessor की सिंक्रोनस विधि ReadLine एक निर्धारित विभाजक तक की पूरी लाइन को एक ara::core::String में पढ़ती है और पढ़ने की स्थिति को तदनुसार आगे बढ़ाती है [SWS_PER_00119]। डिफ़ॉल्ट रूप से, \n (ASCII 0x0a) एक सीमांकक के रूप में कार्य करता है; delimiter के रूप में केवल वही यूनिकोड कोड बिंदु स्वीकार्य हैं जिनमें एक एकल कोड इकाई होती है [SWS_PER_00119]। विभाजक स्वयं परिणामी स्ट्रिंग में शामिल नहीं होता है। यदि पढ़ने की प्रक्रिया फ़ाइल के अंत तक पहुँचती है, तो उस समय तक शेष सभी वर्ण वापस कर दिए जाते हैं और स्थिति फ़ाइल के अंत पर सेट कर दी जाती है [SWS_PER_00119]।

त्रुटि प्रबंधन

यह फ़ंक्शन एक ara::core::Result<ara::core::String> लौटाता है [SWS_PER_00119]। यदि कोई त्रुटि उत्पन्न होती है, तो वर्तमान स्थिति को बदला नहीं जाता है [SWS_PER_00119]। निर्दिष्ट त्रुटियों में शामिल हैं:

  • PerErrc::kEof: वर्तमान पढ़ने की स्थिति फ़ाइल के अंत में है या फ़ाइल खाली है [SWS_PER_00119]।
  • StorageFailure: भौतिक स्टोरेज तक पहुँच विफल हो जाती है [SWS_PER_00119]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता सुनिश्चित नहीं की जा सकती [SWS_PER_00119]।
  • PerErrc::kEncryptionFailed: डेटा का डिक्रिप्शन विफल रहता है [SWS_PER_00119]।
  • PerErrc::kAuthenticationFailed: Message Authentication Code (MAC) का सत्यापन विफल हो जाता है [SWS_PER_00119]।

समवर्तीता और सीमांत शर्तें

यह मेथड noexcept के रूप में घोषित है और अपवाद-सुरक्षित (“exception safe”) है, लेकिन स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (“not thread-safe”) है [SWS_PER_00119]। व्याख्या: एक ही ReadAccessor-इंस्टेंस पर समवर्ती कॉलों के मामले में संभवतः बाहरी सिंक्रोनाइज़ेशन की आवश्यकता होगी। प्रश्न Q-307b6e250938c76b (खुला) यदि वर्तमान पढ़ने की स्थिति किसी बहु-भागीय Unicode कोडपॉइंट के बीच में है, तो लौटाई गई स्ट्रिंग अपूर्ण कोडपॉइंट के साथ शुरू हो सकती है [SWS_PER_00119]।

यह टेक्स्ट एक AI द्वारा तैयार किया गया था और AUTOSAR विनिर्देश पर आधारित है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
delimiterThe character that is used as delimiter.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::String >A Result containing a String. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00119
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00119@rel:R25-11#48d01b82
Content hash
48d01b82
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00119
Status: valid/unmigrated Version: rel:R25-11#65a53978 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_PER_00119@rel:R25-11#65a53978
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#07ef27932026-09-30
  • R19-11rel:R19-11#d9c1707c2026-10-14
  • R20-11rel:R20-11#869afee72026-10-14
  • R21-11rel:R21-11#4e378ab62026-10-14
  • R22-11rel:R22-11#b00875a42026-10-14
  • R23-11rel:R23-11#50b708c12026-10-14
  • R24-11rel:R24-11#156cbc312026-10-14
  • R25-11rel:R25-11#65a539782026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadText [SWS_PER_00165] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00135, RS_AP_00136, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::String > ReadText (std::uint64_t n) noexcept;

Reads a number of characters into a String, starting from the current position. The returned string may start and/or end with incomplete Unicode code points in case the current read position and/or the last read character (code unit) is in the middle of a code point. The current position is advanced accordingly. If the end of the file is reached, the number of returned characters can be less than the requested number, and the current position is set to the end of the file. In case of an error, the current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 042205956a20 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

वर्ग ara::per::ReadAccessor का तुल्यकालिक सदस्य फ़ंक्शन ReadText वर्तमान फ़ाइल स्थिति से एक ara::core::String में n वर्णों तक पढ़ता है [SWS_PER_00165]। इसे हेडर #include "ara/per/read_accessor.h" [SWS_PER_00165] के माध्यम से शामिल किया जाता है।

उपयोग और सिमेंटिक्स

मेथड को पैरामीटर std::uint64_t n के साथ कॉल किया जाता है और यह एक ara::core::Result<ara::core::String> लौटाता है [SWS_PER_00165]। सफल पठन प्रक्रिया (read operation) पर, वर्तमान पठन स्थिति (read position) को पढ़े गए वर्णों की संख्या के अनुसार आगे बढ़ाया जाता है [SWS_PER_00165]। यदि पठन प्रक्रिया फ़ाइल के अंत तक पहुँचती है, तो लौटाए गए वर्णों की संख्या अनुरोधित n से कम हो सकती है; इस दौरान फ़ाइल स्थिति को फ़ाइल के अंत पर सेट किया जाता है [SWS_PER_00165]। यदि वर्तमान पठन स्थिति या अंतिम पढ़ा गया वर्ण (code unit) किसी Unicode कोडपॉइंट के मध्य में है, तो लौटाया गया स्ट्रिंग अपूर्ण कोडपॉइंट्स के साथ शुरू या समाप्त हो सकता है [SWS_PER_00165]।

त्रुटि प्रबंधन और सीमा शर्तें

त्रुटि की स्थिति में फ़ाइल स्थिति अपरिवर्तित रहती है [SWS_PER_00165]। लौटाया गया ara::core::Result निर्माता-विशिष्ट त्रुटियाँ या निम्नलिखित त्रुटि कोड शामिल कर सकता है [SWS_PER_00165]:

  • PerErrc::kPhysicalStorageFailure: भौतिक मेमोरी एक्सेस विफल रहा [SWS_PER_00165]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता की गारंटी नहीं दी जा सकती [SWS_PER_00165]।
  • PerErrc::kEncryptionFailed: संग्रहीत डेटा का डिक्रिप्शन विफल रहा [SWS_PER_00165]।
  • PerErrc::kEof: वर्तमान स्थिति पहले से ही फ़ाइल के अंत में है या फ़ाइल खाली है [SWS_PER_00165]।
  • PerErrc::kAuthenticationFailed: डेटा की MAC जाँच विफल रही [SWS_PER_00165]।

concurrency के संबंध में, फ़ंक्शन को अपवाद-सुरक्षित (exception safe), लेकिन स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में घोषित किया गया है [SWS_PER_00165]। परिणामस्वरूप, समान इंस्टेंस पर समानांतर कॉल्स को सिंक्रनाइज़ किया जाना चाहिए।

इंटरैक्शन

लंबाई सीमा वाले ओवरलोड के अलावा, एक पैरामीटर-रहित वेरिएंट ReadText() [SWS_PER_00420] मौजूद है, जो वर्तमान स्थिति से फ़ाइल के अंत तक सभी शेष वर्णों को पढ़ता है।

यह पाठ एक AI द्वारा तैयार और क्यूरेट किया गया था। सभी विवरण AUTOSAR रिलीज़ R25-11 के विनिर्देश पर आधारित हैं।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
nNumber of characters to read.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::String >A Result containing a String. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00165@rel:R25-11#09df08a6
Content hash
09df08a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00165
Status: valid/unmigrated Version: rel:R25-11#2aa15da4 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_PER_00165@rel:R25-11#2aa15da4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cc14eec62026-09-30
  • R19-11rel:R19-11#6ae823952026-10-14
  • R20-11rel:R20-11#45ea0c7d2026-10-14
  • R21-11rel:R21-11#659479ab2026-10-14
  • R22-11rel:R22-11#231d4b352026-10-14
  • R23-11rel:R23-11#7498db7f2026-10-14
  • R24-11rel:R24-11#9c84dfee2026-10-14
  • R25-11rel:R25-11#2aa15da42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ReadText [SWS_PER_00420] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00135, RS_AP_00136, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::String > ReadText () noexcept;

Reads all remaining characters into a String, starting from the current position. The returned string may start with an incomplete Unicode code point in case the current read position is in the middle of a code point. The current position is set to the end of the file. In case of an error, the current position is not changed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: d5efea9a0341 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास ara::per::ReadAccessor का सिंक्रोनस मेथड ReadText वर्तमान फ़ाइल स्थिति से शेष सभी वर्णों को एक ara::core::String में पढ़ता है [SWS_PER_00420]। यह फ़ंक्शन किसी पैरामीटर की अपेक्षा नहीं करता है और सफल पठन के बाद वर्तमान स्थिति को फ़ाइल के अंत पर सेट करता है [SWS_PER_00420]। यदि पठन स्थिति किसी Unicode कोडपॉइंट के मध्य में है, तो लौटाया गया स्ट्रिंग किसी अपूर्ण कोडपॉइंट से शुरू हो सकता है [SWS_PER_00420]।

रिटर्न मान एक ara::core::Result<ara::core::String> है [SWS_PER_00420]। यदि कोई त्रुटि होती है, तो फ़ाइल स्थिति अपरिवर्तित रहती है (रोलबैक सिमेंटिक्स) और परिणाम में या तो एक निर्माता-विशिष्ट त्रुटि या PerErrc से एक त्रुटि कोड होता है [SWS_PER_00420]:

  • PerErrc::kEof: वर्तमान स्थिति पहले से ही फ़ाइल के अंत में है या फ़ाइल खाली है [SWS_PER_00420]।
  • PerErrc::kPhysicalStorageFailure: भौतिक मेमोरी का एक्सेस विफल रहता है [SWS_PER_00420]।
  • PerErrc::kValidationFailed: संग्रहीत डेटा की वैधता की गारंटी नहीं दी जा सकती [SWS_PER_00420]।
  • PerErrc::kEncryptionFailed: संग्रहीत डेटा का डिक्रिप्शन विफल रहता है [SWS_PER_00420]।
  • PerErrc::kAuthenticationFailed: Message Authentication Code (MAC) की जाँच विफल रहती है [SWS_PER_00420]।

concurrency के संबंध में, ReadText को अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है और noexcept के साथ घोषित किया गया है, लेकिन स्पष्ट रूप से थ्रेड-सुरक्षित नहीं के रूप में वर्गीकृत किया गया है [SWS_PER_00420]।

संबंधित ओवरलोड ReadText(std::uint64_t n) के साथ परस्पर क्रिया में, जो अधिकतम n वर्ण पढ़ता है और स्थिति को तदनुसार आगे बढ़ाता है [SWS_PER_00165], पैरामीटर-रहित वेरिएंट फ़ाइल के अंत तक संपूर्ण शेष सामग्री को पूर्ण रूप से पढ़ने का कार्य करता है [SWS_PER_00420]।

यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर स्वचालित रूप से तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::String >A Result containing a String. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
PerErrc::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kEofrollback_semantics Returned if the current position is at the end of the file or if the file is empty.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00420
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00420@rel:R25-11#4c34c9c6
Content hash
4c34c9c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00420
Status: valid/unmigrated Version: rel:R25-11#61b98c9e Versionshistorie & Revisions (1 transition, 7 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_PER_00420@rel:R25-11#61b98c9e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#eae1d52e2026-09-30
  • R20-11rel:R20-11#964160082026-10-14
  • R21-11rel:R21-11#87d5efdd2026-10-14
  • R22-11rel:R22-11#cb3fbb062026-10-14
  • R23-11rel:R23-11#0a34e0562026-10-14
  • R24-11rel:R24-11#6089d3262026-10-14
  • R25-11rel:R25-11#61b98c9e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ~ReadAccessor [SWS_PER_00417] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00134, RS_AP_00145, RS_AP_00159

~ReadAccessor () override noexcept;

Destructor for ReadAccessor.

Header-Datei#include "ara/per/read_accessor.h"
Scopeclass ara::per::ReadAccessor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00417
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00417@rel:R25-11#262133b6
Content hash
262133b6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00417
Status: valid/unmigrated Version: rel:R25-11#bb549d8d Versionshistorie & Revisions (1 transition, 7 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_PER_00417@rel:R25-11#bb549d8d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#bf28177b2026-09-30
  • R20-11rel:R20-11#ef16863c2026-10-14
  • R21-11rel:R21-11#d902da112026-10-14
  • R22-11rel:R22-11#303367742026-10-14
  • R23-11rel:R23-11#1f8e44f12026-10-14
  • R24-11rel:R24-11#2707c6492026-10-14
  • R25-11rel:R25-11#bb549d8d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill