Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement factories to create DataStreams and Nodes from array and standard streams #173

Merged
merged 1 commit into from Oct 15, 2021

Conversation

pleonex
Copy link
Member

@pleonex pleonex commented Oct 15, 2021

Description

Implement API in the NodeFactory and DataStreamFactory to create objects from arrays and streams.
Also include the README in the NuGets for visibility in nuget.org.

Example

byte[] myData = new byte[] { 1, 2, 3 };

using var stream = DataStreamFactory.FromArray(myData);

using var node1 = NodeFactory.FromArray("node1", myData);
using var node2 = NodeFactory.FromArray("node2", myData, 1, 2);

var commonStream = new MemoryStream();
using var node3 = NodeFactory.FromStream("node3", commonStream);

@pleonex pleonex added this to the vNext milestone Oct 15, 2021
@pleonex pleonex self-assigned this Oct 15, 2021
@pleonex pleonex changed the title Implement methos to create DataStreams and Nodes from array and standard streams Implement factories to create DataStreams and Nodes from array and standard streams Oct 15, 2021
@pleonex pleonex merged commit 6043775 into develop Oct 15, 2021
@pleonex pleonex deleted the feature/add-io-constructors branch October 15, 2021 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant