@@ -16,32 +16,32 @@ public final class OSCSerialization {
1616
1717 /// Internal:
1818 /// Registered tag identities repository.
19- var tagIdentities : [ ( identity: OSCValueTagIdentity , oscValueType : any OSCValueCodable . Type ) ] = [ ]
19+ var tagIdentities : [ ( identity: OSCValueTagIdentity , concreteType : any OSCValueCodable . Type ) ] = [ ]
2020
2121 /// Singleton init.
2222 private init ( ) {
2323 // register default types synchronously so they are available immediately
24- for oscValueType in Self . standardTypes {
24+ for concreteType in Self . standardTypes {
2525 tagIdentities. append (
26- ( oscValueType . oscTagIdentity, oscValueType : oscValueType . self)
26+ ( concreteType . oscTagIdentity, concreteType : concreteType . self)
2727 )
2828 }
2929 }
3030
3131 /// Register a concrete type that conforms to ``OSCValueCodable`` to make it available for OSC
32- /// encoding and decoding .
33- public func registerType( _ oscValueType : any OSCValueCodable . Type ) throws {
32+ /// encoding, decoding and value masking .
33+ public func registerType( _ concreteType : any OSCValueCodable . Type ) throws {
3434 // throw an error if user attempts to register an already existing type tag
35- try canRegisterType ( oscValueType )
35+ try canRegisterType ( concreteType )
3636
3737 // add type's tag identity
3838 tagIdentities. append (
39- ( oscValueType . oscTagIdentity, oscValueType . self)
39+ ( concreteType . oscTagIdentity, concreteType . self)
4040 )
4141 }
4242
43- private func canRegisterType( _ oscValueType : any OSCValueCodable . Type ) throws {
44- let staticTags = oscValueType
43+ private func canRegisterType( _ concreteType : any OSCValueCodable . Type ) throws {
44+ let staticTags = concreteType
4545 . oscTagIdentity
4646 . staticTags ( )
4747
@@ -80,8 +80,8 @@ extension OSCSerialization {
8080 ]
8181
8282 /// Internal:
83- /// Returns tag identities for a given OSC-type tag character.
84- func tagIdentities ( for character: Character ) -> [ any OSCValueCodable . Type ] {
83+ /// Returns concrete type(s) for a given OSC-type tag character.
84+ func concreteTypes ( for character: Character ) -> [ any OSCValueCodable . Type ] {
8585 tagIdentities
8686 . filter {
8787 switch $0. identity {
@@ -93,7 +93,7 @@ extension OSCSerialization {
9393 true
9494 }
9595 }
96- . map { $0. oscValueType }
96+ . map { $0. concreteType }
9797 }
9898
9999 /// Internal:
0 commit comments