Browse Source

Fix override accesibility

pull/3120/head
James Jackson-South 2 months ago
parent
commit
5e5b88c70c
  1. 2
      src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs
  2. 2
      src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs

2
src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs

@ -24,7 +24,7 @@ internal class SharedArrayPoolBuffer<T> : ManagedBufferBase<T>, IRefCounted
public byte[]? Array { get; private set; }
internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes)
protected internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes)
=> this.lifetimeGuard.AttachAllocationTracking(allocator, lengthInBytes);
protected override void DisposeCore(bool disposing)

2
src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs

@ -31,7 +31,7 @@ internal sealed unsafe class UnmanagedBuffer<T> : AllocationTrackedMemoryManager
public void* Pointer => this.lifetimeGuard.Handle.Pointer;
internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes)
protected internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes)
=> this.lifetimeGuard.AttachAllocationTracking(allocator, lengthInBytes);
public override Span<T> GetSpan()

Loading…
Cancel
Save