fn apply_selective_access(
attribute: &AttributeDescriptor,
read: GetDataResult,
selection: Option<&AccessSelection>,
) -> GetDataResultExpand description
Applies GET selective access to a read result (IEC 62056-5-3 §7.4.1.6 / IEC 62056-6-2 §4.3.6.2). Only the ProfileGeneric buffer (class 7, attribute 2) is filtered:
- selector 2 (
entry_descriptor) — keeps the 1-based entry window[from_entry, to_entry]of the buffer array;to_entry= 0 keeps all remaining entries. - selector 1 (
range_descriptor) — value-range filtering needs the sort column; like the reference implementation the buffer is returned unfiltered.
Any other selector on the buffer, or a malformed descriptor, yields
other-reason; selective access on other attributes is ignored.