2 writes to _receiveBufferOffset
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (2)
1577_receiveBufferOffset += count; 1593_receiveBufferOffset = 0;
18 references to _receiveBufferOffset
System.Net.WebSockets (18)
System\Net\WebSockets\ManagedWebSocket.cs (18)
840long payloadLength = _receiveBuffer.Span[_receiveBufferOffset + 1] & 0x7F; 931_receiveBuffer.Span.Slice(_receiveBufferOffset, receiveBufferBytesToCopy).CopyTo( 1104ApplyMask(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength), header.Mask, 0); 1107closeStatus = (WebSocketCloseStatus)BinaryPrimitives.ReadUInt16BigEndian(_receiveBuffer.Span.Slice(_receiveBufferOffset)); 1117closeStatusDescription = s_textEncoding.GetString(_receiveBuffer.Span.Slice(_receiveBufferOffset + 2, (int)header.PayloadLength - 2)); 1190ApplyMask(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength), header.Mask, 0); 1202_receiveBuffer.Slice(_receiveBufferOffset, (int)header.PayloadLength), 1209long pongPayload = BinaryPrimitives.ReadInt64BigEndian(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength)); 1304header.Fin = (receiveBufferSpan[_receiveBufferOffset] & 0x80) != 0; 1305bool reservedSet = (receiveBufferSpan[_receiveBufferOffset] & 0b_0011_0000) != 0; 1306header.Opcode = (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF); 1307header.Compressed = (receiveBufferSpan[_receiveBufferOffset] & 0b_0100_0000) != 0; 1309bool masked = (receiveBufferSpan[_receiveBufferOffset + 1] & 0x80) != 0; 1310header.PayloadLength = receiveBufferSpan[_receiveBufferOffset + 1] & 0x7F; 1318header.PayloadLength = BinaryPrimitives.ReadUInt16BigEndian(receiveBufferSpan.Slice(_receiveBufferOffset)); 1324header.PayloadLength = BinaryPrimitives.ReadInt64BigEndian(receiveBufferSpan.Slice(_receiveBufferOffset)); 1355header.Mask = CombineMaskBytes(receiveBufferSpan, _receiveBufferOffset); 1591_receiveBuffer.Span.Slice(_receiveBufferOffset, _receiveBufferCount).CopyTo(_receiveBuffer.Span);