Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Write and read uniformly in objectwriter/objectreader#71877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
CyrusNajmabadi merged 8 commits intodotnet:mainfromCyrusNajmabadi:uniformity
Feb 1, 2024

Conversation

@CyrusNajmabadi
Copy link
Member

This will help with a larger refactoring i'm making here to make it so that these readers/writers can be used efficiently on pipes.

@CyrusNajmabadiCyrusNajmabadi requested a review froma team as acode ownerJanuary 30, 2024 20:41
@ghostghost added Area-IDE untriagedIssues and PRs which have not yet been triaged by a lead labelsJan 30, 2024
caseTypeCode.Null:returnnull;
caseTypeCode.Boolean_True:returntrue;
caseTypeCode.Boolean_False:returnfalse;
caseTypeCode.Int8:return_reader.ReadSByte();
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

direct access of the reader makes the code harder to update since it's the reader itself that is being swapped out in the new world.

if(value==null)
{
_writer.Write((byte)TypeCode.Null);
WriteByte((byte)TypeCode.Null);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

same with direct access of the writer.

@ToddGrun
Copy link
Contributor

            _writer.Write(word);

This one isn't special, right?


Refers to: src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Serialization/ObjectWriter.cs:607 in432d746. [](commit_id =432d746, deletion_comment = False)

@ToddGrun
Copy link
Contributor

            _writer.Write(word);

This is for "_writer.Write(word);" in case codeflow messed that up


In reply to:1917877589


Refers to: src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Serialization/ObjectWriter.cs:607 in432d746. [](commit_id =432d746, deletion_comment = False)

@ToddGrun
Copy link
Contributor

            _writer.Write(word);

Should WriteVersion be modified call WriteByte?


In reply to:1917878270


Refers to: src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Serialization/ObjectWriter.cs:607 in432d746. [](commit_id =432d746, deletion_comment = False)

Copy link
Contributor

@ToddGrunToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ToddGrunToddGrunToddGrun approved these changes

Assignees

No one assigned

Labels

Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

Projects

None yet

Milestone

17.10 P2

Development

Successfully merging this pull request may close these issues.

3 participants

@CyrusNajmabadi@ToddGrun@jjonescz

[8]ページ先頭

©2009-2025 Movatter.jp