Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetBufferType()

static WebSocketProtocolComponent.BufferType System.Net.WebSockets.WebSocketBase.GetBufferType ( WebSocketMessageType messageType,
bool endOfMessage )
inlinestaticprivate

Definition at line 1438 of file WebSocketBase.cs.

1439 {
1441 {
1442 if (endOfMessage)
1443 {
1444 return WebSocketProtocolComponent.BufferType.UTF8Message;
1445 }
1446 return WebSocketProtocolComponent.BufferType.UTF8Fragment;
1447 }
1448 if (endOfMessage)
1449 {
1450 return WebSocketProtocolComponent.BufferType.BinaryMessage;
1451 }
1452 return WebSocketProtocolComponent.BufferType.BinaryFragment;
1453 }

Referenced by System.Net.WebSockets.WebSocketBase.SendAsyncCore().