ident: isolate non-system component of member

This enables more efficient representation in contexts inherently namespaced to the current system.

Signed-off-by: Yonah <contrib@gensokyo.uk>
This commit is contained in:
2026-03-22 17:28:52 +09:00
parent 87f59d0cf9
commit 22b8cc3884
3 changed files with 108 additions and 30 deletions

View File

@@ -117,15 +117,17 @@ func TestFM(t *testing.T) {
{"valid", ident.F[ident.M, *ident.M]{
I: &ident.M{
Serial: 0xfdfdfdfdfdfdfdfd,
PartM: ident.PartM{
Serial: 0xfdfdfdfdfdfdfdfd,
Time: uint64(time.Date(
0xfd, 7, 15,
23, 59, 59, 0xcab,
time.UTC,
).UnixNano()),
Time: uint64(time.Date(
0xfd, 7, 15,
23, 59, 59, 0xcab,
time.UTC,
).UnixNano()),
ID: 0x2e736e64,
ID: 0x2e736e64,
},
System: ident.S{
Site: ident.TrivialSite,