3 writes to _buffer
Roslyn.Test.PdbUtilities (3)
Reader\Token2SourceLineExporter.cs (3)
62
_buffer
= new byte[capacity];
85
_buffer
= newBuffer;
102
_buffer
= new byte[capacity];
49 references to _buffer
Roslyn.Test.PdbUtilities (49)
Reader\Token2SourceLineExporter.cs (49)
67
get { return
_buffer
; }
74
stream.Read(
_buffer
, 0, capacity);
81
if (
_buffer
.Length < newCapacity)
84
Array.Copy(
_buffer
, newBuffer,
_buffer
.Length);
87
stream.Read(
_buffer
, _offset, count);
100
if (
_buffer
.Length < capacity)
119
value = (short)((
_buffer
[_offset + 0] & 0xFF) |
120
(
_buffer
[_offset + 1] << 8));
129
value = (sbyte)
_buffer
[_offset];
138
value = (int)((
_buffer
[_offset + 0] & 0xFF) |
139
(
_buffer
[_offset + 1] << 8) |
140
(
_buffer
[_offset + 2] << 16) |
141
(
_buffer
[_offset + 3] << 24));
150
value = (long)(((ulong)
_buffer
[_offset + 0] & 0xFF) |
151
((ulong)
_buffer
[_offset + 1] << 8) |
152
((ulong)
_buffer
[_offset + 2] << 16) |
153
((ulong)
_buffer
[_offset + 3] << 24) |
154
((ulong)
_buffer
[_offset + 4] << 32) |
155
((ulong)
_buffer
[_offset + 5] << 40) |
156
((ulong)
_buffer
[_offset + 6] << 48) |
157
((ulong)
_buffer
[_offset + 7] << 56));
166
value = (ushort)((
_buffer
[_offset + 0] & 0xFF) |
167
(
_buffer
[_offset + 1] << 8));
176
value = (byte)((
_buffer
[_offset + 0] & 0xFF));
185
value = (uint)((
_buffer
[_offset + 0] & 0xFF) |
186
(
_buffer
[_offset + 1] << 8) |
187
(
_buffer
[_offset + 2] << 16) |
188
(
_buffer
[_offset + 3] << 24));
197
value = (ulong)(((ulong)
_buffer
[_offset + 0] & 0xFF) |
198
((ulong)
_buffer
[_offset + 1] << 8) |
199
((ulong)
_buffer
[_offset + 2] << 16) |
200
((ulong)
_buffer
[_offset + 3] << 24) |
201
((ulong)
_buffer
[_offset + 4] << 32) |
202
((ulong)
_buffer
[_offset + 5] << 40) |
203
((ulong)
_buffer
[_offset + 6] << 48) |
204
((ulong)
_buffer
[_offset + 7] << 56));
229
bytes[i] =
_buffer
[_offset++];
235
float result = BitConverter.ToSingle(
_buffer
, _offset);
242
double result = BitConverter.ToDouble(
_buffer
, _offset);
257
value = Encoding.UTF8.GetString(
_buffer
, _offset, len);
264
while (_offset + len <
_buffer
.Length &&
_buffer
[_offset + len] != 0)
268
value = Encoding.UTF8.GetString(
_buffer
, _offset, len);
275
while (_offset + len <
_buffer
.Length &&
_buffer
[_offset + len] != 0)
304
while (_offset + len <
_buffer
.Length &&
_buffer
[_offset + len] != 0)
308
string result = Encoding.Unicode.GetString(
_buffer
, _offset, len);