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)
840
long payloadLength = _receiveBuffer.Span[
_receiveBufferOffset
+ 1] & 0x7F;
931
_receiveBuffer.Span.Slice(
_receiveBufferOffset
, receiveBufferBytesToCopy).CopyTo(
1104
ApplyMask(_receiveBuffer.Span.Slice(
_receiveBufferOffset
, (int)header.PayloadLength), header.Mask, 0);
1107
closeStatus = (WebSocketCloseStatus)BinaryPrimitives.ReadUInt16BigEndian(_receiveBuffer.Span.Slice(
_receiveBufferOffset
));
1117
closeStatusDescription = s_textEncoding.GetString(_receiveBuffer.Span.Slice(
_receiveBufferOffset
+ 2, (int)header.PayloadLength - 2));
1190
ApplyMask(_receiveBuffer.Span.Slice(
_receiveBufferOffset
, (int)header.PayloadLength), header.Mask, 0);
1202
_receiveBuffer.Slice(
_receiveBufferOffset
, (int)header.PayloadLength),
1209
long pongPayload = BinaryPrimitives.ReadInt64BigEndian(_receiveBuffer.Span.Slice(
_receiveBufferOffset
, (int)header.PayloadLength));
1304
header.Fin = (receiveBufferSpan[
_receiveBufferOffset
] & 0x80) != 0;
1305
bool reservedSet = (receiveBufferSpan[
_receiveBufferOffset
] & 0b_0011_0000) != 0;
1306
header.Opcode = (MessageOpcode)(receiveBufferSpan[
_receiveBufferOffset
] & 0xF);
1307
header.Compressed = (receiveBufferSpan[
_receiveBufferOffset
] & 0b_0100_0000) != 0;
1309
bool masked = (receiveBufferSpan[
_receiveBufferOffset
+ 1] & 0x80) != 0;
1310
header.PayloadLength = receiveBufferSpan[
_receiveBufferOffset
+ 1] & 0x7F;
1318
header.PayloadLength = BinaryPrimitives.ReadUInt16BigEndian(receiveBufferSpan.Slice(
_receiveBufferOffset
));
1324
header.PayloadLength = BinaryPrimitives.ReadInt64BigEndian(receiveBufferSpan.Slice(
_receiveBufferOffset
));
1355
header.Mask = CombineMaskBytes(receiveBufferSpan,
_receiveBufferOffset
);
1591
_receiveBuffer.Span.Slice(
_receiveBufferOffset
, _receiveBufferCount).CopyTo(_receiveBuffer.Span);