(readContext, typeMeta)
| 126 | } |
| 127 | |
| 128 | function detectAnySerializer(readContext, typeMeta) { |
| 129 | const encoded = typeMeta.toBytes(); |
| 130 | const bytes = new Uint8Array(encoded.length + 2); |
| 131 | bytes[0] = TypeId.COMPATIBLE_STRUCT; |
| 132 | bytes[1] = 0; |
| 133 | bytes.set(encoded, 2); |
| 134 | readContext.reset(bytes); |
| 135 | return AnyHelper.detectSerializer(readContext); |
| 136 | } |
| 137 | |
| 138 | function localSerializer(typeInfo) { |
| 139 | const typeMeta = TypeMeta.fromTypeInfo(typeInfo); |
no test coverage detected