Add a signature support in the constructor of BinaryFormat and in the NodeFactory, so migration and compatibility with other frameworks is better.
Also fix a potential threading issue as we were creating another StreamWrapper when passing DataStream as a regular Stream, so the locker object was different.
Example
Now you can use regular Stream to create a BinaryFormat and a Node.
Description
Add a signature support in the constructor of
BinaryFormat
and in theNodeFactory
, so migration and compatibility with other frameworks is better.Also fix a potential threading issue as we were creating another
StreamWrapper
when passingDataStream
as a regularStream
, so the locker object was different.Example
Now you can use regular
Stream
to create aBinaryFormat
and aNode
.Related issue #158 +semver: minor