如何知道十六进制数据的字节数和地址 [英] How to know byte count and address of a hex data

查看:215
本文介绍了如何知道十六进制数据的字节数和地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

0F663E332543434343434343434343514343435B



这是我的包含20个字节数据的十六进制数据如何在VB6中知道字节数和地址以及记录类型



我的尝试:



0F663E332543434343434343434343514343435B

解决方案

一个2位十六进制数字表示一个8位或1字节的值。

给定一个n长度的十六进制数,因此字节数 n / 2 (位数 n * 4 )。


< blockquote class =quote>

Quote:

我怎么知道VB6中的字节数和地址及记录类型


十六进制序列是一组任意字节,它没有意义,没有地址,没有结构,除非你已经知道序列是什么。


0F663E332543434343434343434343514343435B

this is my hex data containing 20 bytes of data how can i know the byte count and address and record type for this in VB6

What I have tried:

0F663E332543434343434343434343514343435B

解决方案

A 2 hex-digit number represents an 8-bits, or 1-byte value.
Given a n-length hexadecimal number, the number of bytes is thus n / 2 (the number of bits is n * 4).


Quote:

how can i know the byte count and address and record type for this in VB6


An hex sequence is an arbitrary set of bytes, and it have no meaning, no address, no structure unless you already have an idea of what is the sequence.


这篇关于如何知道十六进制数据的字节数和地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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