Files
rea/tests/conformance/native/keyed-archive.swift
T
morluto 4fbc501121 feat(native): add inspection primitives, dispatch traces and approved UI observation (#500)
* fix(hopper): normalize string-backed addresses and update verification

* feat(native): add inspection primitives, dispatch traces and approved UI observation

* test: prioritize real artifact E2E and captured golden regressions

* fix(process): queue observed output before reactive rendering actions

* test: prune redundant cases and strengthen boundary assertions

* fix(cli): route native value tracing through shared workflows

* test: replace synthetic success with real workflows and captured data

* fix(catalog): separate portable metadata from native host availability
2026-10-04 16:02:36 +08:00

17 lines
627 B
Swift

import Foundation
final class ReaArchiveRecord: NSObject, NSCoding {
var link: ReaArchiveRecord?
override init() { super.init() }
required init?(coder: NSCoder) { super.init() }
func encode(with coder: NSCoder) {
coder.encode(link, forKey: "cycle")
coder.encode(Data([0, 1, 2, 255]), forKey: "payload")
coder.encodeConditionalObject(nil, forKey: "conditional")
}
}
let record = ReaArchiveRecord()
record.link = record
let data = try NSKeyedArchiver.archivedData(withRootObject: [record, record] as NSArray, requiringSecureCoding: false)
try data.write(to: URL(fileURLWithPath: CommandLine.arguments[1]))