private unsafe void SetUshortParamter(QUIC_PARAM_SESSION param, ushort count) { var buffer = new MsQuicNativeMethods.QuicBuffer() { Length = sizeof(ushort), Buffer = (byte *)&count }; SetParam(param, buffer); }
private void SetParam( QUIC_PARAM_SESSION param, MsQuicNativeMethods.QuicBuffer buf) { MsQuicStatusException.ThrowIfFailed(_registration.UnsafeSetParam( _nativeObjPtr, (uint)QUIC_PARAM_LEVEL.SESSION, (uint)param, buf)); }
internal unsafe uint UnsafeSetParam( IntPtr Handle, uint Level, uint Param, MsQuicNativeMethods.QuicBuffer Buffer) { return(SetParamDelegate( Handle, Level, Param, Buffer.Length, Buffer.Buffer)); }