1 write to _headerByte
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1141
_headerByte
= new byte[5]; // 1 for the packet type, 4 for the body length
7 references to _headerByte
Microsoft.Build (7)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (7)
1212
while (totalBytesRead <
_headerByte
.Length)
1214
int bytesRead = await _readStream.ReadAsync(
_headerByte
.AsMemory(totalBytesRead,
_headerByte
.Length - totalBytesRead), CancellationToken.None).ConfigureAwait(false);
1236
NodePacketType packetType = (NodePacketType)
_headerByte
[0];
1237
int packetLength = BinaryPrimitives.ReadInt32LittleEndian(new Span<byte>(
_headerByte
, 1, 4));
1588
if (bytesRead !=
_headerByte
.Length)
1590
CommunicationsUtilities.Trace(_nodeId, $"COMMUNICATIONS ERROR (HRC) Node: {_nodeId} Process: {_process.Id} Bytes Read: {bytesRead} Expected: {
_headerByte
.Length}");