hex
C# how convert large HEX string to binary
I have a string with 14 characters . This is a hex represantation of 7bytes. I want to convert it to binary. I tried using Convert.ToString(Convert.ToInt32(hexstring, 16), 2); For small strings this w[详细]
2023-03-18 15:54 分类:问答How would I print out the address like the Hexdump function in UNIX
There I have this assignment where I am suppose to emulate the hexdump function from unix. I got my program to dump files into hex but i am having trouble printing the offset and the printable charact[详细]
2023-03-18 10:41 分类:问答how to convert UITextfield into hex value
I am wanting to xor (^) two values and pass the result to an integer. Both values are being passed in from UITextFields, the first like so ...[详细]
2023-03-18 07:48 分类:问答Partial replace on SQL image data column
This question is related to another one I posted earlier. To recap, I need to fix an issue with an ancient legacy app where people messed up data storage by re-installing the software the wrong way.[详细]
2023-03-18 06:19 分类:问答String formatting for hex colors in Python
I modified a function from PHP to return a color gradient (http://www.herethere.net/~samson/php/color_gradient/color_gradient_generator.php.txt). I am having issues when returning color hex codes endi[详细]
2023-03-17 12:14 分类:问答Sending Hexadecimal data through Serial Port Communication in Linux
I have got a task of sending hexadecimal data to my COMPORT in linux. I have written this simple C code, but it sends only a decimal number. Can anyone help me in sending an hexadecimal bit.[详细]
2023-03-17 06:55 分类:问答Converting UCS2 (Unknown LE or BE) In Numeric Hex format to UTF-8 Using Perl
Hoping someone can point me in the direction of where i\'m going wrong with this: I have a string of (what I believe) is hex-encoded UCS2, but the provider cannot tell me if it is UCS2-LE or UCS2-BE.[详细]
2023-03-16 22:41 分类:问答Advantage of using 0x01 instead of 1 for an integer variable?
Recently I came across a line like this public final static int DELETION_MASK= 0x01; why is it not like[详细]
2023-03-16 22:23 分类:问答c++ how to convert a character to hex
I know that when outputting hex I can use cout<<hex<<(unsigned int)(开发者_如何学Gounsigned char)ch<<endl[详细]
2023-03-16 20:30 分类:问答reading hex data from file fscanf format compile time warning
I\'m reading some data from a file. The format is stated tobe ASCII text with UNIX-style line-endings, a series of 32-bit[详细]
2023-03-16 11:13 分类:问答