DEENESPTFRRUARHIKOZHNL

结构体 apext::tsync::FVContainer

[SWS_TS_14194] Upstream: RS_TS_20072 原文尚未导入

struct FVContainer {...};

A freshness value container to hold the length of freshness value in bits and the freshness value itself as vector.

Header-Datei#include "apext/tsync/fvm.h"
Forwarding-Header#include "apext/tsync/tsync_fwd.h"
Scopenamespace apext::tsync

用户指南人工智能生成

将新鲜度值封装为字节向量及其精确的位长度,用于 Freshness Value Management。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c7cff93a9b82 来源 未决问题(3)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

将新鲜度值封装为字节向量及其精确的位长度,用于 Freshness Value Management。

结构体 apext::tsync::FVContainer 在模块 tsync 中用作数据容器,用于在应用程序与 Freshness Value Management 之间传递和返回新鲜度值。它在 value 中将实际的新鲜度值封装为字节向量(根据方向包含完整值或截断值 [SWS_TS_14196]),并在属性 length 中封装其精确的位长度 [SWS_TS_14195]。并发访问需要调用方进行外部协调。

上下文

结构体 apext::tsync::FVContainer 在 AUTOSAR Adaptive Platform 的功能集群 tsync 内充当新鲜度值(Freshness Values)的专用数据容器。通过头文件 apext/tsync/fvm.h 引入,它在与 Freshness Value Management(FVM)的交互中充当标准化接口。其主要职责是提供实际的加密新鲜度值及其精确长度。为此,容器在数据元素 length 中封装了位长度 [SWS_TS_14195],并在字节向量 value 中封装了实际的有效数据 [SWS_TS_14196]。因此,该结构体在调用应用程序或协议层与 FVM 计算例程之间充当桥梁。

生命周期

作为轻量级数据结构(struct),apext::tsync::FVContainer 遵循 C++ 的常规值语义。其创建通常在调用方的栈上本地执行,或在更高级别的报文构建过程中动态执行。随着实例化,该结构体接管了所包含类型为 ara::core::Vector<std::uint8_t> 的向量 value 的生命周期责任 [SWS_TS_14196]。如果该结构体在传递给接口时按值或引用传递,则向量的 RAII 原则可确保在容器销毁时确定性地释放所分配的内存。 问题 Q-416ceca84f9cfdaf (未决)由于 apext::tsync::FVContainer 未提供内部同步机制,因此在并发读写访问时的线程安全协调完全由调用软件组件负责。

使用路径

在实际使用中,apext::tsync::FVContainer 在接口通信内经历两个核心方向:

  • 输入参数:在验证或处理传入报文时,容器由应用程序填充并传递给 FVM 的方法。根据上下文,字段 value 可以接收完整的新鲜度值或截断值(Truncated Values)[SWS_TS_14196]。与此同时,字段 length 指定所包含值的精确位数 [SWS_TS_14195]。当新鲜度值的有效性不在整数字节边界处结束时,这一点尤为重要。
  • 返回值:当 FVM 生成新鲜值时,相应的方法会返回 apext::tsync::FVContainer 的实例。调用上下文随后通过 length [SWS_TS_14195] 读取由 FVM 确定的以位为单位的有效长度,并从 value [SWS_TS_14196] 中提取相应的字节,以便将它们嵌入到后续的安全协议中。

Interpretation:存放在 length 中的位数大概率始终与向量 value 向上取整后的字节大小相对应,从而可以通过长度规范精确界定向量最后一个字节中未完全使用的剩余位。 问题 Q-e8feae8a93c14191 (未决)

本指南由 AI 系统基于 AUTOSAR Release R25-11 的规范要求生成。

UML 类图

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

G napext__tsync__FVContainer955 «struct» FVContainer + length + value

常量

length 变量

Length in bits of the freshness value passed in apext::tsync::FVContainer.

value 变量

Vector of bytes containing the freshness value. Depending on whether the container is used as an input or returning value by the method it will contain either the full freshness or truncated values.

常量 / 变量文档

变量 length [SWS_TS_14195] Upstream: RS_TS_20072 原文尚未导入

std::uint64_t length;

Length in bits of the freshness value passed in apext::tsync::FVContainer.

Header-Datei#include "apext/tsync/fvm.h"
Scopestruct apext::tsync::FVContainer
Symbollength
Typstd::uint64_t

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

Record
AUTOSAR/AP/record/SWS_TS_14195
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_14195@rel:R25-11#a215fafc
Content hash
a215fafc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_14195
Status: valid/unmigrated Version: rel:R25-11#1a60b5d0 Versionshistorie & Revisions (1 transition, 3 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_TS_14195@rel:R25-11#1a60b5d0
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#241ca1b42026-09-30
  • R24-11rel:R24-11#c95748132026-10-14
  • R25-11rel:R25-11#1a60b5d02026-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

变量 value [SWS_TS_14196] Upstream: RS_TS_20072 原文尚未导入

ara::core::Vector<std::uint8_t> value;

Vector of bytes containing the freshness value. Depending on whether the container is used as an input or returning value by the method it will contain either the full freshness or truncated values.

Header-Datei#include "apext/tsync/fvm.h"
Scopestruct apext::tsync::FVContainer
Symbolvalue
Typara::core::Vector< std::uint8_t >

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

Record
AUTOSAR/AP/record/SWS_TS_14196
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_14196@rel:R25-11#b205dbb9
Content hash
b205dbb9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_14196
Status: valid/unmigrated Version: rel:R25-11#10d15c84 Versionshistorie & Revisions (1 transition, 3 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_TS_14196@rel:R25-11#10d15c84
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4559dfb42026-09-30
  • R24-11rel:R24-11#10d15c842026-10-14
  • R25-11rel:R25-11#10d15c842026-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