2 writes to _bytesBuilder
Roslyn.Test.PdbUtilities (2)
Reader\MethodDebugInfoBytes.cs (2)
45
_bytesBuilder
= ArrayBuilder<byte>.GetInstance();
127
_bytesBuilder
= null; // We'll blow up if any other methods are called.
23 references to _bytesBuilder
Roslyn.Test.PdbUtilities (23)
Reader\MethodDebugInfoBytes.cs (23)
66
_bytesBuilder
.Add(Version);
67
_bytesBuilder
.Add((byte)CustomDebugInfoKind.UsingGroups);
68
_bytesBuilder
.Add(Padding);
69
_bytesBuilder
.Add(Padding);
70
_bytesBuilder
.Add4(recordSize);
73
_bytesBuilder
.Add2((short)numGroupSizes);
76
_bytesBuilder
.Add2(groupSize);
79
if ((
_bytesBuilder
.Count % 4) != 0)
81
_bytesBuilder
.Add2(0);
84
Assert.Equal(0,
_bytesBuilder
.Count % 4);
102
_bytesBuilder
.Add(Version);
103
_bytesBuilder
.Add((byte)(isModuleLevel ? CustomDebugInfoKind.ForwardModuleInfo : CustomDebugInfoKind.ForwardMethodInfo));
104
_bytesBuilder
.Add(Padding);
105
_bytesBuilder
.Add(Padding);
106
_bytesBuilder
.Add4(12); // Record size, including header.
109
_bytesBuilder
.Add4(targetToken);
111
Assert.Equal(0,
_bytesBuilder
.Count % 4);
119
_bytesBuilder
.Insert(0, Version);
120
_bytesBuilder
.Insert(1, (byte)_recordCount);
121
_bytesBuilder
.Insert(2, Padding);
122
_bytesBuilder
.Insert(3, Padding);
124
Assert.Equal(0,
_bytesBuilder
.Count % 4);
126
var info = new MethodDebugInfoBytes(
_bytesBuilder
.ToImmutableAndFree(), _method);