Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

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

Merged
ahsonkhan merged 1 commit into
dotnet:masterfrom
ahsonkhan:PinCleanup
Jan 22, 2018
Merged

Rename Pin offset to byteOffset and clean up Retain test#26518
ahsonkhan merged 1 commit into
dotnet:masterfrom
ahsonkhan:PinCleanup

Conversation

@ahsonkhan

Copy link
Copy Markdown

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
Copy Markdown
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 = ?

@ahsonkhan ahsonkhan Jan 22, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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

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
Copy Markdown
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