private unsafe void SetUshortParameter(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)); }
private void SetParam( QUIC_PARAM_SESSION param, MsQuicNativeMethods.QuicBuffer buf) { QuicExceptionHelpers.ThrowIfFailed(MsQuicApi.Api.UnsafeSetParam( _nativeObjPtr, (uint)QUIC_PARAM_LEVEL.SESSION, (uint)param, buf), "Could not set parameter on session."); }