76 references to RemainingBytes
Microsoft.CodeAnalysis (36)
Emit\EditAndContinueMethodDebugInformation.cs (2)
105while (blobReader.RemainingBytes > 0) 237while (blobReader.RemainingBytes > 0)
MetadataReader\MetadataDecoder.cs (9)
874if (signatureReader.RemainingBytes > 0) 890int n = (i < localCount - 1) ? (offsets[i + 1] - start) : signatureReader.RemainingBytes; 1018else if (sigReader.RemainingBytes == 0) 1035if (isEnumTypeCode && sigReader.RemainingBytes > 0) 1050if (sigReader.RemainingBytes > 0) 1112if (sigReader.RemainingBytes == 1) 1122if (sigReader.RemainingBytes % 2 != 0) 1127return ConstantValue.Create(sigReader.ReadUTF16(sigReader.RemainingBytes)); 1804if (shouldProcessAllBytes && signatureReader.RemainingBytes > 0)
MetadataReader\PEModule.cs (24)
1287if (sig.RemainingBytes <= 0 || !CrackStringInAttributeValue(out string? diagnosticId, ref sig)) 1302if (sig.RemainingBytes <= 0) 1357if (sigReader.RemainingBytes >= 2) 1410if (sigReader.RemainingBytes > 0) 1515if (sigReader.RemainingBytes >= 2) 1765if (sig.RemainingBytes > 0 && CrackStringInAttributeValue(out message, ref sig)) 1773if (sig.RemainingBytes > 0 && CrackStringInAttributeValue(out message, ref sig) && 1774sig.RemainingBytes > 0 && CrackBooleanInAttributeValue(out isError, ref sig)) 1784(string? diagnosticId, string? urlFormat) = sig.RemainingBytes > 0 ? CrackObsoleteProperties(ref sig, decoder) : default; 2225if (sig.TryReadCompressedInteger(out strLen) && sig.RemainingBytes >= strLen) 2239return sig.RemainingBytes >= 1 && sig.ReadByte() == 0xFF; 2250if (sig.RemainingBytes >= 4) 2333if (sig.RemainingBytes >= 1) 2345if (sig.RemainingBytes >= 1) 2357if (sig.RemainingBytes >= 2) 2369if (sig.RemainingBytes >= 4) 2381if (sig.RemainingBytes >= 8) 2416if (sig.RemainingBytes >= 4) 2426if (sig.RemainingBytes >= arrayLen) 2445if (sig.RemainingBytes >= 4) 2455if (sig.RemainingBytes >= arrayLen) 2932if (sig.RemainingBytes >= 3 && 2940if (sig.RemainingBytes == 0) 3012if (sig.RemainingBytes == 0 && j == targetSignature.Length)
PEWriter\MetadataWriter.PortablePdb.cs (1)
882builder.WriteBytes(reader.ReadBytes(reader.RemainingBytes));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\TypeDefinitionDocumentTests.cs (1)
495while (reader.RemainingBytes > 0)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
PDB\MethodDebugInfo.Portable.cs (3)
453while (reader.RemainingBytes > 0) 469while (reader.RemainingBytes > 0) 489while (reader.RemainingBytes > 0);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
166while (reader.RemainingBytes > 0)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
356while (blobReader.RemainingBytes > 0)
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\DynamicAnalysisDataReader.cs (2)
214while (reader.RemainingBytes > 0) 313while (blobReader.RemainingBytes > 0)
PDB\DeterministicBuildCompilationTestHelpers.cs (2)
80while (metadataReferenceReader.RemainingBytes > 0) 183Assert.Equal(0, blobReader.RemainingBytes);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\TypeDefinitionDocumentTests.vb (1)
377While reader.RemainingBytes > 0
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
644blobReader.CurrentPointer, blobReader.RemainingBytes));
System.Reflection.Metadata (15)
System\Reflection\Metadata\BlobReader.cs (2)
143if (bytesToSkip > RemainingBytes) 689return ReadUTF16(RemainingBytes);
System\Reflection\Metadata\Internal\BlobHeap.cs (2)
199while (blobReader.RemainingBytes > 0) 229while (blobReader.RemainingBytes > 0)
System\Reflection\Metadata\MetadataReader.cs (7)
125InitializeTableReaders(tableReader.GetMemoryBlockAt(0, tableReader.RemainingBytes), heapSizes, metadataTableRowCounts, externalTableRowCountsOpt); 180if (memReader.RemainingBytes < COR20Constants.MinimumSizeofMetadataHeader) 201if (memReader.RemainingBytes < versionStringSize) 244if (memReader.RemainingBytes < COR20Constants.MinimumSizeofStreamHeader) 254if (!aligned || memReader.RemainingBytes == 0) 434if (reader.RemainingBytes < MetadataStreamConstants.SizeOfMetadataTableHeader) 501if (memReader.RemainingBytes < sizeof(uint))
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (1)
50if (_reader.RemainingBytes == 0)
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (1)
55if (_reader.RemainingBytes == 0)
System\Reflection\PortableExecutable\PEReader.cs (1)
665byte[]? checksum = reader.ReadBytes(reader.RemainingBytes);
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
93var compressed = new ReadOnlyUnmanagedMemoryStream(headerReader.CurrentPointer, headerReader.RemainingBytes);
System.Reflection.MetadataLoadContext (13)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (13)
189if (br.RemainingBytes == 0) 195if (br.RemainingBytes == 0) 199if (br.RemainingBytes == 0) 205if (br.RemainingBytes == 0) 210if (br.RemainingBytes == 0) 214if (br.RemainingBytes == 0) 221if (br.RemainingBytes == 0) 225if (br.RemainingBytes == 0) 229if (br.RemainingBytes == 0) 235if (br.RemainingBytes == 0) 239if (br.RemainingBytes == 0) 243if (br.RemainingBytes == 0) 248if (br.RemainingBytes == 0)