https://github.com/nanoframework/system.io.streams
:package: System.IO.Streams library for .NET nanoFramework.
https://github.com/nanoframework/system.io.streams
csharp dotnet hacktoberfest library nanoframework streams
Last synced: about 2 months ago
JSON representation
:package: System.IO.Streams library for .NET nanoFramework.
- Host: GitHub
- URL: https://github.com/nanoframework/system.io.streams
- Owner: nanoframework
- License: mit
- Created: 2022-02-15T12:21:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T11:30:40.000Z (over 1 year ago)
- Last Synced: 2025-04-19T17:14:34.589Z (about 1 year ago)
- Topics: csharp, dotnet, hacktoberfest, library, nanoframework, streams
- Language: C#
- Homepage: https://www.nanoframework.net
- Size: 184 KB
- Stars: 1
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://sonarcloud.io/dashboard?id=nanoframework_System.IO.Streams) [](https://sonarcloud.io/dashboard?id=nanoframework_System.IO.Streams) [](https://www.nuget.org/packages/nanoFramework.System.IO.Streams/) [](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [](https://discord.gg/gCyBu8T)

-----
# Welcome to the .NET **nanoFramework** System.IO.Streams Library repository
## Build status
| Component | Build Status | NuGet Package |
|:-|---|---|
| System.IO.Streams | [](https://dev.azure.com/nanoframework/System.IO.Streams/_build/latest?definitionId=94&repoName=nanoframework%2FSystem.IO.Streams&branchName=main) | [](https://www.nuget.org/packages/nanoFramework.System.IO.Streams/) |
## Usage examples
### Using a MemoryStream
Write data using memory as a backing store.
```csharp
using MemoryStream memStream = new MemoryStream(100);
string test = "nanoFramework Test";
memStream.Write(Encoding.UTF8.GetBytes(test), 0, test.Length);
memStream.Flush();
```
Reset stream position.
```csharp
memStream.Seek(0, SeekOrigin.Begin);
```
Read from from stream.
```csharp
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](https://github.com/nanoframework/Home).
Join our Discord community [here](https://discord.gg/gCyBu8T).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/main/CONTRIBUTORS.md).
## License
The **nanoFramework** Class Libraries are licensed under the [MIT license](LICENSE.md).
## 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](https://dotnetfoundation.org/code-of-conduct).
## .NET Foundation
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).