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

◆ MarshalHttpHeaders()

static global.Interop.WebSocket.HttpHeader[] System.Net.WebSockets.WebSocketProtocolComponent.MarshalHttpHeaders ( IntPtr nativeHeadersPtr,
int nativeHeaderCount )
inlinestaticprivate

Definition at line 323 of file WebSocketProtocolComponent.cs.

324 {
325 global::Interop.WebSocket.HttpHeader[] array = new global::Interop.WebSocket.HttpHeader[nativeHeaderCount];
326 int num = 4 * IntPtr.Size;
327 for (int i = 0; i < nativeHeaderCount; i++)
328 {
329 int offset = num * i;
330 IntPtr httpHeaderPtr = IntPtr.Add(nativeHeadersPtr, offset);
331 MarshalAndVerifyHttpHeader(httpHeaderPtr, ref array[i]);
332 }
333 return array;
334 }
static void MarshalAndVerifyHttpHeader(IntPtr httpHeaderPtr, ref global::Interop.WebSocket.HttpHeader httpHeader)

References System.IntPtr.Add(), System.array, System.Net.WebSockets.WebSocketProtocolComponent.MarshalAndVerifyHttpHeader(), System.offset, and System.IntPtr.Size.

Referenced by System.Net.WebSockets.WebSocketProtocolComponent.GetSupportedVersion().