IOLink C# IOL_v1.8.0_release
All Classes Namespaces Functions Enumerations Enumerator Properties Pages
Interoperability

To ease the use of IOLink in .NET environment, a bridge has been created between [System.IO.Stream][dotnet_stream] object and equivalent IOLink StreamAccess object.

Bridge is available in both ways:

From IOLink.StreamAccess object to System.IO.Stream:

System.IO.Stream stream = StreamAccessFactory.ToNetStream(access);

And from System.IO.Stream to IOLink StreamAccess object:

StreamAccess access = StreamAccessFactory.FromNetStream(stream);

There is no memory duplication when using this bridge.