Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/nanoframework/System.IO.Streams.git
b8abf79fcd
***NO_CI*** |
||
---|---|---|
.github/workflows | ||
System.IO.Streams | ||
UnitTests/MemoryStreamUnitTests | ||
assets | ||
config | ||
.github_changelog_generator | ||
.gitignore | ||
.runsettings | ||
CHANGELOG.md | ||
LICENSE.md | ||
NuGet.Config | ||
README.md | ||
azure-pipelines.yml | ||
nanoFramework.System.IO.Streams.nuspec | ||
nanoFramework.System.IO.Streams.sln | ||
template.vssettings | ||
version.json |
README.md
Welcome to the .NET nanoFramework System.IO.Streams Library repository
Build status
Component | Build Status | NuGet Package |
---|---|---|
System.IO.Streams |
Usage examples
Using a MemoryStream
Write data using memory as a backing store.
using MemoryStream memStream = new MemoryStream(100);
string test = "nanoFramework Test";
memStream.Write(Encoding.UTF8.GetBytes(test), 0, test.Length);
memStream.Flush();
Reset stream position.
memStream.Seek(0, SeekOrigin.Begin);
Read from from stream.
byte[] readbuff = new byte[20];
memStream.Read(readbuff, 0, readbuff.Length);
string testResult = new string(Encoding.UTF8.GetChars(readbuff));
Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.
Join our Discord community here.
Credits
The list of contributors to this project can be found at CONTRIBUTORS.
License
The nanoFramework Class Libraries are licensed under the MIT license.
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.
.NET Foundation
This project is supported by the .NET Foundation.