Remove redundant `unsafe` from a couple classes
This commit is contained in:
parent
8931f05703
commit
b4cb0b7612
|
@ -135,7 +135,7 @@ namespace BizHawk.Bizware.Audio
|
|||
public override void Write(byte[] buffer, int offset, int count)
|
||||
=> throw new NotSupportedException();
|
||||
|
||||
private unsafe class SDLRwOpsStreamWrapper : IDisposable
|
||||
private sealed class SDLRwOpsStreamWrapper : IDisposable
|
||||
{
|
||||
public IntPtr Rw { get; private set; }
|
||||
private readonly Stream _s;
|
||||
|
@ -146,7 +146,7 @@ namespace BizHawk.Bizware.Audio
|
|||
private readonly SDLRWopsWriteCallback _writeCallback;
|
||||
private readonly SDLRWopsCloseCallback _closeCallback;
|
||||
|
||||
public SDLRwOpsStreamWrapper(Stream s)
|
||||
public unsafe SDLRwOpsStreamWrapper(Stream s)
|
||||
{
|
||||
Rw = SDL_AllocRW();
|
||||
if (Rw == IntPtr.Zero)
|
||||
|
|
|
@ -9,7 +9,7 @@ using BizHawk.Common.BufferExtensions;
|
|||
|
||||
namespace BizHawk.Common
|
||||
{
|
||||
public unsafe class Serializer
|
||||
public class Serializer
|
||||
{
|
||||
public Serializer() { }
|
||||
|
||||
|
@ -821,6 +821,7 @@ namespace BizHawk.Common
|
|||
return _currSection.Items.ContainsKey(key);
|
||||
}
|
||||
|
||||
#if false
|
||||
private void SyncBuffer(string name, int elemsize, int len, void* ptr)
|
||||
{
|
||||
if (IsReader)
|
||||
|
@ -838,6 +839,7 @@ namespace BizHawk.Common
|
|||
Sync(name, ref temp, false);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
private void SyncText(string name, ref byte val)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue