mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Removed unnecessary unsafe keywords.
This commit is contained in:
parent
50279be686
commit
fee42e883c
5 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -7,7 +7,7 @@ using SocketHttpListener.Net.WebSockets;
|
||||||
|
|
||||||
namespace SocketHttpListener.Net
|
namespace SocketHttpListener.Net
|
||||||
{
|
{
|
||||||
public sealed unsafe partial class HttpListenerContext
|
public sealed partial class HttpListenerContext
|
||||||
{
|
{
|
||||||
private HttpConnection _connection;
|
private HttpConnection _connection;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ using SocketHttpListener.Net.WebSockets;
|
||||||
|
|
||||||
namespace SocketHttpListener.Net
|
namespace SocketHttpListener.Net
|
||||||
{
|
{
|
||||||
public sealed unsafe partial class HttpListenerContext
|
public sealed partial class HttpListenerContext
|
||||||
{
|
{
|
||||||
private HttpListenerResponse _response;
|
private HttpListenerResponse _response;
|
||||||
private IPrincipal _user;
|
private IPrincipal _user;
|
||||||
|
|
|
@ -8,7 +8,7 @@ using SocketHttpListener.Net.WebSockets;
|
||||||
|
|
||||||
namespace SocketHttpListener.Net
|
namespace SocketHttpListener.Net
|
||||||
{
|
{
|
||||||
public sealed unsafe partial class HttpListenerRequest
|
public sealed partial class HttpListenerRequest
|
||||||
{
|
{
|
||||||
private CookieCollection _cookies;
|
private CookieCollection _cookies;
|
||||||
private bool? _keepAlive;
|
private bool? _keepAlive;
|
||||||
|
|
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace SocketHttpListener.Net
|
namespace SocketHttpListener.Net
|
||||||
{
|
{
|
||||||
public sealed unsafe partial class HttpListenerResponse : IDisposable
|
public sealed partial class HttpListenerResponse : IDisposable
|
||||||
{
|
{
|
||||||
private BoundaryType _boundaryType = BoundaryType.None;
|
private BoundaryType _boundaryType = BoundaryType.None;
|
||||||
private CookieCollection _cookies;
|
private CookieCollection _cookies;
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace SocketHttpListener.Net
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
internal static unsafe byte[] GetBytes(string myString)
|
internal static byte[] GetBytes(string myString)
|
||||||
{
|
{
|
||||||
byte[] bytes = new byte[myString.Length];
|
byte[] bytes = new byte[myString.Length];
|
||||||
if (myString.Length != 0)
|
if (myString.Length != 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue