nanoFramework.System.Buffers.Helpers 1.0.158

Prefix Reserved
dotnet add package nanoFramework.System.Buffers.Helpers --version 1.0.158
                    
NuGet\Install-Package nanoFramework.System.Buffers.Helpers -Version 1.0.158
                    
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="nanoFramework.System.Buffers.Helpers" Version="1.0.158" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.System.Buffers.Helpers" Version="1.0.158" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.System.Buffers.Helpers" />
                    
Project file
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 nanoFramework.System.Buffers.Helpers --version 1.0.158
                    
#r "nuget: nanoFramework.System.Buffers.Helpers, 1.0.158"
                    
#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.
#addin nuget:?package=nanoFramework.System.Buffers.Helpers&version=1.0.158
                    
Install nanoFramework.System.Buffers.Helpers as a Cake Addin
#tool nuget:?package=nanoFramework.System.Buffers.Helpers&version=1.0.158
                    
Install nanoFramework.System.Buffers.Helpers as a Cake Tool

System.Buffers.Helpers

Contains an IBitConverter interface with both Big and Little Endian implementations. Comes in utile when received data is encoded in another Endian way. Examples are:

  • Networking data which is encoded in Big Endian. Hence when reading or writing UDP or TCP packets the data needs to be decoded or encoded with a Big Endian converter.
  • Serialized data could be encoded in one Endian way or another. Hence the data needs to be read with the appropriate converter.

Suppose a byte[] is received which contains a double. The transmitter of the data could be Big or Little Endian encoded. The IBitConverter allows to use the implementation as needed:

    internal class SerializationComponent
    {
        private readonly IBitConverter bitConverter;

        public SerializationComponent(bool dataIsLittleEndian)
        {
            bitConverter = dataIsLittleEndian ? EndianBitConverter.Little : EndianBitConverter.Big;
        }

        public double ReceivedDoubleInData(byte[] data)
        {
            return bitConverter.ToDouble(data);
        }
    }
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on nanoFramework.System.Buffers.Helpers:

Package Downloads
nanoFramework.Iot.Device.MulticastDns

This package includes the .NET IoT Core binding Iot.Device.MulticastDns for .NET nanoFramework C# projects.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on nanoFramework.System.Buffers.Helpers:

Repository Stars
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last updated
1.0.158 131 4/2/2025
1.0.146 211 3/11/2025
1.0.116 341 2/26/2025
1.0.69 328 2/4/2025
1.0.66 137 2/4/2025
1.0.49 191 1/31/2025
1.0.31 248 1/13/2025
1.0.1 293 12/19/2024