(out int index, out TypeMeta typeMeta)
| 258 | } |
| 259 | |
| 260 | internal bool TryReadTypeMetaRef(out int index, out TypeMeta typeMeta) |
| 261 | { |
| 262 | uint indexMarker = Reader.ReadVarUInt32(); |
| 263 | bool isRef = (indexMarker & 1) == 1; |
| 264 | index = checked((int)(indexMarker >> 1)); |
| 265 | if (isRef) |
| 266 | { |
| 267 | TypeMeta? cached = GetTypeMetaRef(index); |
| 268 | if (cached is null) |
| 269 | { |
| 270 | throw new InvalidDataException($"unknown type meta ref index {index}"); |
| 271 | } |
| 272 | |
| 273 | typeMeta = cached; |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | typeMeta = null!; |
| 278 | return false; |
| 279 | } |
| 280 | |
| 281 | [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] |
| 282 | internal bool MatchesExactLocalTypeMeta(TypeMeta typeMeta, int start, int end) |
no test coverage detected