本文介绍了C#AIS解码器你好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试制作C#AIS解码器.我正在使用此信息作为基点 http://www.bosunsmate.org/ais/ [ ^ ]

我已经设法获取每个字符的二进制文件,但是现在不知道如何将其转换为正确的格式.例如,MMSI二进制文件是"010010110101011101110000101001".我正在获取此值,但是如何对其进行解码并从中获取值"316005417"?

Hi,

I am trying to make a C# AIS decoder. I am using this information a a base point http://www.bosunsmate.org/ais/[^]

I have managed to get the binary of each character, but I do not know how to convert it into its correct format now. For example, the MMSI binary is ''010010110101011101110000101001''. I am getting this value, but how do I decode it and get the value ''316005417'' from it?

推荐答案

convert.ToInt32()

及其18个重载可能导致您进入

and its 18 overloads might have lead you to

Convert.ToInt32(< your binary value >, 2)


这篇关于C#AIS解码器你好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 10:36