53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
using System;
|
|
|
|
namespace CommonConsole
|
|
{
|
|
class Program
|
|
{
|
|
static void Main()
|
|
{
|
|
var rotations = BitConverter.ToInt16(new byte[] { 0x84, 0x03 }, 0);
|
|
Console.WriteLine($"Rotations: {rotations}");
|
|
|
|
var duration = BitConverter.ToUInt32(new byte[] { 0x5C, 0xCF, 0x0E, 0x00 }, 0);
|
|
Console.WriteLine($"Duration: {duration}");
|
|
|
|
var seconds = duration * 1D / (short.MaxValue + 1);
|
|
Console.WriteLine($"Seconds: {seconds}");
|
|
|
|
Console.WriteLine();
|
|
|
|
rotations = BitConverter.ToInt16(new byte[] { 0x04, 0x00 }, 0);
|
|
Console.WriteLine($"Rotations: {rotations}");
|
|
|
|
duration = BitConverter.ToUInt32(new byte[] { 0x6F, 0x85, 0x0D, 0x00 }, 0);
|
|
Console.WriteLine($"Duration: {duration}");
|
|
|
|
seconds = duration * 1D / (short.MaxValue + 1);
|
|
Console.WriteLine($"Seconds: {seconds}");
|
|
|
|
Console.WriteLine();
|
|
|
|
rotations = BitConverter.ToInt16(new byte[] { 0x08, 0x00 }, 0);
|
|
Console.WriteLine($"Rotations: {rotations}");
|
|
|
|
duration = BitConverter.ToUInt32(new byte[] { 0x4F, 0xFA, 0x11, 0x00 }, 0);
|
|
Console.WriteLine($"Duration: {duration}");
|
|
|
|
seconds = duration * 1D / (short.MaxValue + 1);
|
|
Console.WriteLine($"Seconds: {seconds}");
|
|
|
|
Console.WriteLine();
|
|
|
|
rotations = BitConverter.ToInt16(new byte[] { 0xE8, 0x03 }, 0);
|
|
Console.WriteLine($"Rotations: {rotations}");
|
|
|
|
duration = BitConverter.ToUInt32(new byte[] { 0xA1, 0xFB, 0x10, 0x00 }, 0);
|
|
Console.WriteLine($"Duration: {duration}");
|
|
|
|
seconds = duration * 1D / (short.MaxValue + 1);
|
|
Console.WriteLine($"Seconds: {seconds}");
|
|
}
|
|
}
|
|
}
|