Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Rename Pin offset to byteOffset and clean up Retain test #26518

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

ahsonkhan
Copy link
Member

@@ -226,7 +226,7 @@ public abstract partial class OwnedMemory<T> : System.Buffers.IRetainable, Syste
public abstract System.Span<T> Span { get; }
public void Dispose() { }
protected abstract void Dispose(bool disposing);
public abstract System.Buffers.MemoryHandle Pin(int offset=0);
public abstract System.Buffers.MemoryHandle Pin(int byteOffset=0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Extra space around = ?

Copy link
Member Author

@ahsonkhan ahsonkhan Jan 22, 2018

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the tool doesn't put spaces around this. Easy to fix if someone want to change it, https://github.com/dotnet/buildtools/blob/master/src/Microsoft.Cci.Extensions/Writers/CSharp/CSDeclarationWriter.Methods.cs#L159

@@ -3728,7 +3728,7 @@ public abstract partial class OwnedMemory<T> : System.Buffers.IRetainable, Syste
public abstract System.Span<T> Span { get; }
public void Dispose() { }
protected abstract void Dispose(bool disposing);
public abstract MemoryHandle Pin(int offset=0);
public abstract MemoryHandle Pin(int byteOffset=0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@ahsonkhan ahsonkhan merged commit 3bd9262 into dotnet:master Jan 22, 2018
@ahsonkhan ahsonkhan deleted the PinCleanup branch January 22, 2018 21:58
@karelz karelz added this to the 2.1.0 milestone Feb 4, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants