Questions tagged [uint32]

uint32 is a datatype that represents an unsigned integer and is coded on 32 bits in memory.

uint32 is a datatype that represents an and is coded on 32 bits in memory. Unlike its counterpart which is , uint32 can only be used to store positive integers, of values between 0 and 232 - 1.

176 questions
1
vote
3 answers

error : conflicting declaration for uint32_t

When I try to compile my program first I got this error: error: ‘uint32_t’ does not name a type Then I included #include Now it turned out this error: /include/stdint.h:52: error: conflicting declaration ‘typedef unsigned int…
clouddy
  • 891
  • 2
  • 8
  • 10
1
vote
5 answers

Convert chars corresponding to digits to uint

I need to travers the string ,which should be the string of digits and make some arithmetic operations on these digits for (int i = data.Length - 1; i >= 0; --i) { uint curDigit; //Convert to uint the current rightmost digit, if…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
1
vote
1 answer

How to write uint32 to csv file in MATLAB?

I have an array of uint32 integers in MATLAB. I want to export them to CSV file. When I use csvwrite() i get an exponent form.. b = uint32([1873569684 6411863 942650153 1666833080 3111076679]) csvwrite('tmpw.csv', b) and the CSV result…
Yuval Atzmon
  • 5,645
  • 3
  • 41
  • 74
1
vote
1 answer

Converting UINT32 color format from AaBbGgRr to AaRrGgBb

I am trying to convert an UINT32 color format from AaBbGgRr to AaRrGgBb in c++. Aa = Alpha, Bb = Blue, Gg = Green Rr = Red. By converting I mean switching the values of Bb and Rr. Does somebody know how I can achieve that ?
Tobbi
  • 15
  • 5
1
vote
3 answers

Objective C - Are SystemSoundID's (typedef'd UInt32) automatically assigned 0?

- (void)playAlarmSound:(NSTimer *)theTimer { static SystemSoundID soundID/* = 0 */; // ? if (!soundID) { soundID = [Utilities createSystemSoundIDFromFile:@"beep" ofType:@"caf"]; } ... } Is SystemSoundID (which is a UInt32)…
mk12
  • 25,873
  • 32
  • 98
  • 137
1
vote
0 answers

UINT32 compiler version mismatch - Linking to legacy library

I am trying to link a DLL but I am constantly running into issues with UINT32. The library is compiled against the 4.1 version of the Visual Studio compiler. The interface for my component (which was 4.1 and I am now porting to 2012) is defined with…
Dennis
  • 3,683
  • 1
  • 21
  • 43
1
vote
3 answers

how to store a uint32_t in a plist

I have a plist where I would like to save a some response details from my server too, however the variables are of type uint32_t and plists do not have a whole lot of type options to choose from other than, number - string - array - dictionary…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
0
votes
2 answers

how to declare UInt32 variable with global class access

I am trying to declare a UInt32 variable that can be accessed by any method in the class.. so its global to the classes methods but not to any other class... I am trying to do it like this in the .h @interface EngineRequests : NSObject { UInt32…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
0
votes
3 answers

how to encode a UInt32 scalar type into a NSData object

I am currently creating this NSData object. I would like to put in sever different objects that are of type NSString and UInt32. I know how to put a NSString into my NSData object, but I don't know how to do this with a UInt32 scalar type. this is…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
0
votes
1 answer

creating an http body with construction method

I am trying to create a http body that I am going to pass in using NSURLRequest post. I have my connection class all set up. The thing is i have several methods that return NSStrings and UInt32's and one construction method that I want to use to put…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
0
votes
0 answers

C# How to store bytes into Uint32 array

I have an UINT32 array filled with bytes, because my value is too long it has to be in uint32 because byte array is just to short for it UInt32[] somebytes = new UInt32[] { 0xAABBCC, 0xAABBCC }; but whats inside is 0x00AABBCC, 0x00AABBCC and…
LimetaPeta
  • 67
  • 5
0
votes
1 answer

what is signed/unsigned integer in Solidity?

I found the following definition about signed/unsigned integers on a Solidity book from Packt: Understanding integers Integers help in storing numbers in contracts. Solidity provides the following two types of integer: • Signed integers: Signed…
mario7111
  • 61
  • 1
  • 9
0
votes
1 answer

Reverse binary reading

I have a document that shows a data in HEX, and split it into multi part (head, TransactionID, MessageType and ...) There is a problem in this document, and it is for example for TID they write something like this: TID: 0xe0380000 = 14560 As i know…
Mahdiyar
  • 51
  • 9
0
votes
2 answers

How to sort List> according to List[0] number ASC/DESC in C#?

How shall sort this in ASC order? I got List> full of records of List and I want those records to be sorted according to the first column in each record - the column is UInt32 number. So: I have List of: new List:…
Skuta
  • 5,830
  • 27
  • 60
  • 68
0
votes
1 answer

Floating point operations with no library

I am looking for a efficient way to properly do mathematical operations with floating values. As I am in the embedded C, I don't want to use any extra library for float data type. As far as I understand, the correct way here would be to treat a…
andrei filip
  • 23
  • 1
  • 8