Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner January 30, 2024 20:41
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 30, 2024
case TypeCode.Null: return null;
case TypeCode.Boolean_True: return true;
case TypeCode.Boolean_False: return false;
case TypeCode.Int8: return _reader.ReadSByte();
Copy link
Member Author

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
Member Author

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 in 432d746. [](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 in 432d746. [](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 in 432d746. [](commit_id = 432d746, deletion_comment = False)

Copy link
Contributor

@ToddGrun ToddGrun 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants