Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DiscoveryDataChannels.cs
2{
7 {
15 : base(Channel, Names, ToIdentities(Channels))
16 {
17 this.Channels = Channels;
18 }
19
20 private static byte[][] ToIdentities(ushort[] Ids)
21 {
22 int i, c = Ids?.Length ?? 0;
23 byte[][] Result = new byte[c][];
24 ushort j;
25
26 for (i = 0; i < c; i++)
27 {
28 j = Ids[i];
29
30 Result[i] = new byte[]
31 {
32 (byte)(j >> 8),
33 (byte)j
34 };
35 }
36
37 return Result;
38 }
39
43 public ushort[] Channels { get; }
44 }
45}
DiscoveryDataChannels(ChannelAddress Channel, string[] Names, ushort[] Channels)
Discovery data about a collection of channels.