Skip to content

Commit

Permalink
Remove unused unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
markdwags committed Nov 1, 2024
1 parent e7a1bda commit d1c7b24
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Razor/UltimaSDK/StackDataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#endregion
using System;
using System.Buffers.Binary;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;

Expand All @@ -51,15 +50,6 @@ public StackDataReader(ReadOnlySpan<byte> data)
public long Length { get; }
public int Remaining => (int)(Length - Position);

public IntPtr StartAddress => (IntPtr)Unsafe.AsPointer(ref GetPinnableReference());
public IntPtr PositionAddress
{
get
{
return (IntPtr)((byte*)Unsafe.AsPointer(ref GetPinnableReference()) + Position);
}
}

public byte this[int index] => _data[0];

public ReadOnlySpan<byte> Buffer => _data;
Expand Down

0 comments on commit d1c7b24

Please sign in to comment.