unsigned
Signed and unsigned integers -- why are bytes treated differently?
I am learning High Level Assembly Language at the moment, and was going over the concept of signed and unsigned integers. It seems simple enough, however getting to sign extension has confused me.[详细]
2023-03-30 03:08 分类:问答What happens when I assign a negative value to an unsigned int? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: signed to unsigned conversion in C - is it always safe?[详细]
2023-03-29 17:51 分类:问答Java - Sending unsigned bytes through TCP connection
Since Java bytes are signed value开发者_如何学运维s and I\'m trying to establish a TCP socket connection with a C# program that is expecting the bytes to be unsigned.[详细]
2023-03-26 13:46 分类:问答How to avoid sign extending bit mask in Java?
My bit masks are bytes, and I\'d like to keep them exactly as they are, but I think they\'re sign extended.I don\'t care if the byte is considered positive or negative, as long as it has the same bits[详细]
2023-03-26 07:14 分类:问答Is there a practical way of using natural numbers in Haskell?
I\'m learning Haskell and would like to impose the use of positive integers (1,2,3, ...) in some constructors, but I only seem to find the \'Int\' and \'Integer\' datatypes.[详细]
2023-03-24 15:09 分类:问答Why is FileInfo.Length of type "long"?
I was just wondering whether anyone knows why the property FileInfo.Length is of type long instead of ulong? I don\'t think the size o开发者_如何学运维f a file can ever be negative.[详细]
2023-03-18 09:23 分类:问答Convert int to unsigned short java
I have written a .obj parser in java to modelize 3D objects on iPhone. I would like to export the data as a binary file, which must be as small as possible. I have plenty of indices that would fit a u[详细]
2023-03-18 05:47 分类:问答c++ find function for vector<unsigned char>
I want to find empty space char \" \" in my vector<unsigned char> message vector<unsigned char>::iterator pos;[详细]
2023-03-15 21:23 分类:问答c++ find char in vector of unsigned chars
I have the problem with the following code: message is vector<unsigned char> vector<unsigned char>::iterator pos = message.begin();[详细]
2023-03-15 07:08 分类:问答Java ByteBuffer issues with signed and unsigned types converting byte array to integer
I expected this: ByteBuffer.wrap(开发者_如何学JAVAnew byte[] { 0, 0, 0, -34 }).getInt() == 222 However the following is true:[详细]
2023-03-13 03:17 分类:问答