首页 \ 问答 \ 为什么十六进制地址是14个字符?(why the hex address is 14 character?)

为什么十六进制地址是14个字符?(why the hex address is 14 character?)

在十六进制地址中:0x7fffd7c24334为什么位数为14? 每个十六进制地址是14个字符? 我尝试一些变量,如double和int,但它只有14个字符。 它遵守一些规则吗? 谢谢你的所有答案。


in the hex address like: 0x7fffd7c24334 why number of digits is 14? is it 14 character for every hex address? I try it for some variable like double and int but it was just 14 character. is it obey some rules? thanks for all answers.


原文:https://stackoverflow.com/questions/28854058
更新时间:2020-11-03 11:11

最满意答案

12个十六进制数字(带前导0x)表示48位。 那是256 TB的虚拟地址空间。 在AMD64上阅读wiki(我假设你在上面,对吗?)架构http://en.wikipedia.org/wiki/X86-64


12 hex digits (with leading 0x) mean 48 bits. That is 256 TB of virtual address space. Read wiki on AMD64 (I assume that you are on it, right?) architecture http://en.wikipedia.org/wiki/X86-64

相关问答

更多

Swift将整数转换为2个字符的十六进制字符串(Swift Convert Integer to 2 character Hex String)

您可以在格式化程序字符串之前添加填充0: let hex = String(format:"%02X", 0) 结果: let hex = String(format:"%02X", 0) // 00 let hex = String(format:"%02X", 15) // 0F let hex = String(format:"%02X", 16) // 10 You can add a padding 0 before the formatter string: let hex = S ...

为什么由Visual Studio生成的GUID中的第14个字符有时小写(Why is the 14th character in a GUID generated by Visual Studio sometimes lowercase)

是的,这是一个已知的错误 。 但是你不应该进行字符串比较; 改用Guid.Equals 。 Yes, this is a known bug. But you shouldn't be making string comparisons; use Guid.Equals instead.

用nasm从dx打印十六进制(Printing hex from dx with nasm)

好吧,我能够管理它。 感谢您的帮助! 这是工作代码: print_hex: pusha mov si, HEX_OUT + 2 next_character: mov bx, dx and bx, 0xf000 shr bx, 4 add bh, 0x30 cmp bh, 0x39 jg add_7 add_character_hex: mov al, bh mov [si], bh inc si shl dx, 4 or dx, dx ...

如何从strlen返回中减去十六进制然后添加到十六进制地址?(How to subtract a hex from a strlen return then add to a hex address?)

首先,符号(0x)seekNP->address无效C.您可能正在考虑一个typecast ,其中一个变量的类型被typecast为另一个类型。 任何状况之下: seekNP->address = seek->address +((strlen(seek->operand_1)) - 0xF); 是正确的说法。 (假设它确实是一个seek->address它在语法上是正确的。否则,(假设结构如图所示)这个看起来更像是你的意思: struct { unsigned long int a ...

PHP在字符串中找到28个字符的十六进制正则表达式(PHP find 28-character hex regex in string)

这是一个正则表达式,应该符合您的需要 (([a-f0-9]{2} ){27}|([a-f0-9]{2} ){13})[a-f0-9]{2} 例 Here's a regex pattern that should match what you should need (([a-f0-9]{2} ){27}|([a-f0-9]{2} ){13})[a-f0-9]{2} Example

生成唯一的8个字符十六进制字符串(Generating Unique 8 Character Hex Strings)

请参阅: PHP短缩写,如URL缩短网站以及您可能需要的答案: http : //blog.kevburnsjr.com/php-unique-hash 第二个链接可能特别有用,只需对当前ID进行短时间哈希。 See: PHP short hash like URL-shortening websites and the answer you might want: http://blog.kevburnsjr.com/php-unique-hash The second link might b ...

十六进制24位地址(24 bit-address in hex)

一个十六进制数字对应4个二进制数字(位) 对于24位,有3个字节(8位),它使6个十六进制数字。 One hex digit corresponds to 4 binary digits(bits) for 24 bits, there are 3 bytes(8bits) which makes 6 hex digits.

从Int到Hex的14位编码/解码,反之亦然(Encoding / Decoding 14-bit from Int to Hex and vice versa)

解码时,您正在尝试向右移位字节值(00-7F)。 这将产生较小的值(00-3F)。 相反,你应该将它向左移7位,以产生更高的值(0000-3F80)。 然后可以将该值与低位组合以产生期望值。 public static short decode(string loByte, string hiByte) { byte lo = Convert.ToByte(loByte, 16); byte hi = Convert.ToByte(hiByte, 16); short c ...

转换和分离2字节十六进制到两个字符,上面两个十六进制转到一个字符,下面两个十六进制转到C ++中的第二个字符(converting and Separating 2 byte hex to two chararacters, upper two hex goes to one character and lower two hex goes to second charater in C++)

uhex = static_cast<unsigned char>(u_int_variable >> 8); lhex = static_cast<unsigned char>(u_int_variable & 0xFF); 或者,对于> 32位无符号整数绝对安全: uhex = static_cast<unsigned char>((u_int_variable >> 8) & 0xFF); uhex = static_cast<unsigned char>(u_int_variable ...

为什么十六进制地址是14个字符?(why the hex address is 14 character?)

12个十六进制数字(带前导0x)表示48位。 那是256 TB的虚拟地址空间。 在AMD64上阅读wiki(我假设你在上面,对吗?)架构http://en.wikipedia.org/wiki/X86-64 12 hex digits (with leading 0x) mean 48 bits. That is 256 TB of virtual address space. Read wiki on AMD64 (I assume that you are on it, right?) arc ...

相关文章

更多

最新问答

更多
  • 如何从远程文件拉取文件而不覆盖本地文件?(How do I pull files from remote without overwriting local files?)
  • Reactjs:状态改变时重新渲染iframe(Reactjs: re-renders iframes when state changed)
  • 奇怪的网址,以及跟随php页面流程的困难(odd url, and difficulty in following the php page flow)
  • 标签活动无效(Tab Activity is not working)
  • JavaME合适的语法编译器建议?(JavaME-suitable grammar compiler recommendations?)
  • 指定参数(Specifying arguments)
  • 可以通过Ruby插件或控制台覆盖Sketchup中的键盘快捷键吗?(Can one override keyboard shortcuts in Sketchup through the a Ruby Plugin or Console?)
  • 计算Java EE Web App中用户数的最佳方法(Best way to count number of users in a Java EE web App)
  • 无法使用templateUrl加载cordova中的外部模板(unable to load external templates in cordova with templateUrl)
  • PHPExcel:写入期间无法使用缓存(PHPExcel: Unable to use cache during write)
  • 在javascript中嵌套这个指针(nested this pointer in javascript)
  • 谁跟领航致远培训过,有问题问下啊
  • 控制器要求在入门时下载(Controller ask to download on entry)
  • 未能通过conda安装Asyncio(Failure to install Asyncio via conda)
  • 如何查找已完成项目的总长度?(How to find length of total completed items?)
  • 如何检查OleInitialize是否已被调用?(How to check if OleInitialize has already been called?)
  • SQL在特定范围内返回列中具有最大值的行(SQL Returning rows with max value in column, within a specific range)
  • preg_match从url获取id(preg_match get the id from url)
  • 如何在运算符中为make方程转换perl变量?(How to convert a perl variable in a operator for make equations?)
  • 在导航上方添加空格/标题。(Add a white space/ header above navigation.)
  • MeetingItem已保存;(MeetingItem saved; but change now shown in Calendar)
  • c#vb:我们应该使用System.Lazy进行资源密集型任务吗?(c# vb: Should we use System.Lazy for resource-intensive task? (when threading is not needed))
  • 为什么在armeabi代码中使用armeabi-v7a代码?(Why use armeabi-v7a code over armeabi code?)
  • 获取请求的自定义标头(Java HTTP)(Fetching a custom header of a request (Java HTTP))
  • 是否可以在嵌套的if语句中从varchar转换为numeric以动态评估参数?(Is it possible to convert from varchar to numeric within a nested if statement in order to dynamically evaluate a parameter?)
  • 如何将Html.ActionLink转换为链接到Ajax调用的按钮?(How to convert from Html.ActionLink to a button linked to Ajax call?)
  • 应用程序如何处理Windows符号链接?(How are Windows symbolic links treated by the apps?)
  • html,js,css在jsfiddle中工作,但不在sharepoint中(html, js, css works in jsfiddle but not in sharepoint)
  • 从Ruby脚本调用Elasticsearch Rest API(Calling Elasticsearch Rest API from Ruby script)
  • 如何将嵌套setTimeouts转换为承诺(How to convert nested setTimeouts to promises)