Maple.IO
1.0.26
dotnet add package Maple.IO --version 1.0.26
NuGet\Install-Package Maple.IO -Version 1.0.26
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Maple.IO" Version="1.0.26" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Maple.IO" Version="1.0.26" />
<PackageReference Include="Maple.IO" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Maple.IO --version 1.0.26
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Maple.IO, 1.0.26"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Maple.IO@1.0.26
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Maple.IO&version=1.0.26
#tool nuget:?package=Maple.IO&version=1.0.26
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Maple.IO
Simplifies writing to memory buffers and streams
Memory classes
MemoryReader - provides methods for reading basic C# types from a memory buffer
Example
byte[] blob = [ 1, 2, 3, 4 ];
var reader = new MemoryReader(blob);
var i = reader.ReadInt32();
MemoryWriter - provides methods for writing basic C# types into a memory buffer
Example
var writer = new MemoryWriter();
writer.Write(1);
writer.Write("Hello world"); //
var data = writer.Span;
IMemoryStreamable<> - provides interface for serializing object to/from memory**
Example
record Vector3(double X, double Y, double Z) : IMemoryStreamable<Vector3>
{
public void WriteTo(MemoryWriter writer)
{
writer.Write(X)
.Write(Y)
.Write(Z);
}
public static Vector3 ReadFrom(MemoryReader reader)
{
return new(X: reader.ReadDouble(),
Y: reader.ReadDouble(),
Z: reader.ReadDouble());
}
}
Stream extensions
Extension methods that allow BinaryReader/BinaryWriter methods directly on Streams
Example
var file = new FileStream("test.bin", FileMode.Create, FileAccess.Write);
file.Write(5);
file.Write("Hello");
file.Close();
file = new FileStream("test.bin", FileMode.Open, FileAccess.Read);
var i = file.ReadInt32();
var text = file.ReadText();
file.Close();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Maple.IO:
Package | Downloads |
---|---|
Maple.Sqlite
C# Sqlite wrapper |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.26 | 342 | 6/12/2025 |
1.0.23 | 149 | 11/12/2024 |
1.0.20 | 145 | 6/1/2024 |
1.0.18 | 140 | 5/28/2024 |
1.0.17 | 142 | 5/16/2024 |
1.0.14 | 132 | 5/15/2024 |
1.0.13 | 142 | 5/9/2024 |
1.0.12 | 142 | 5/9/2024 |
1.0.10 | 193 | 3/4/2024 |
1.0.9 | 160 | 2/2/2024 |
1.0.8 | 129 | 2/2/2024 |
1.0.7 | 136 | 2/1/2024 |
1.0.6 | 129 | 1/31/2024 |
1.0.5 | 116 | 1/29/2024 |
1.0.1 | 205 | 12/12/2023 |
1.0.0 | 164 | 12/5/2023 |