| Crates.io | dotnet-binary-io |
| lib.rs | dotnet-binary-io |
| version | 0.1.0 |
| created_at | 2025-01-31 20:10:26.636956+00 |
| updated_at | 2025-01-31 20:10:26.636956+00 |
| description | Reads and writes buffers using the same encoding rules as .NET's `System.IO.BinaryWriter`. |
| homepage | |
| repository | https://github.com/sivadeilra/dotnet-binary-io |
| max_upload_size | |
| id | 1537797 |
| size | 30,972 |
System.IO.BinaryWriterThis crate provides rudimentary support for exchanging data between Rust code
and C# code, where the data has been encoded using .NET's
System.IO.BinaryWriter or needs to be decoded using System.IO.BinaryReader.
The encoding scheme for BinaryWriter is very simple. Most primitive types (such as integers)
are simply encoded using their fixed-size in-memory byte representation. For multi-byte types,
little-endian byte order is used.
BinaryWriter uses a simple encoding for variable-length integers. Refer to the
.NET documentation
for more information on this encoding.
Contributions are welcome, although I don't expect many for such a small crate.
sivadeilra