以太网数据保存为十六进制 [英] Ethernet data saving as Hexadecimal

查看:101
本文介绍了以太网数据保存为十六进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我接收以太网数据,但我不知道如何保存为十六进制请任何人帮助我

Iam receiving Ethernet data but i don't no how to save as Hexadecimal please any one help me

推荐答案

请查看我对该问题的评论并了解这个:

http:// msdn。 microsoft.com/en-us/library/dwhawy9k%28v=vs.110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/0c899ak8%28v=vs.110%29.aspx [ ^ ]。



您可以在名为ToString的数字类型的方法中使用此格式。有关您需要使用的类型,请在MSDN帮助中查看它们。



此外,避免使用表示数据的字符串而不是数据本身;这是很多初学者的诅咒。



-SA
Please see my comment to the question and also learn this:
http://msdn.microsoft.com/en-us/library/dwhawy9k%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/0c899ak8%28v=vs.110%29.aspx[^].

You can use this formats in the methods of the numeric types you used named "ToString". Please see them in MSDN help for the types you need to use.

Also, avoid using strings representing data instead of data itself; this is a curse of many beginners this days.

—SA


这篇关于以太网数据保存为十六进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆