180 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
3
answers
131
views
How do I properly return a Uint32 array pointer?
I'm creating a program in which I would like to have the ability to scale textures. I created a system which can successfully do so but it ended up being quite large and so I refactored it into a ...
-1
votes
1
answer
54
views
Is there a way to make Python interpret `~3` as an unsigned integer?
Is there a way to make Python interpret ~3 as an unsigned integer?
0
votes
1
answer
81
views
In Dart's Uint32List.sublistView function, why should start argument be a multiple of 4?
I was writing a program to unpack Uint8 and Uint32 integers from a byte stream, and encountered this issue where I couldn't pass a non-multiple-of-4 value as start argument of Uint32List.sublistView() ...
0
votes
1
answer
161
views
Can I force array numpy to keep its uint32 type?
I would like to reproduce C behavior in Python, presumably using numpy, but I'm running into this issue :
>>> import numpy
>>> a = numpy.uint32(4294967295)
>>> type(a)
<...
0
votes
1
answer
107
views
Convert to UInt32 in Swift from NS_ENUM uint32_t in Objective-C
I have this code...
Objective-c:
typedef NS_ENUM(uint32_t, EXType) {
EXTypeBad = 0,
EXTypeOK,
EXTypeGood
};
EXType type = EXTypeOK;
Swift
UInt32(type)
But I get:
initializer 'init(_:radix:)'...
1
vote
0
answers
60
views
Variable 'Ptot_pdf' originally saved as a prob.NormalDistribution cannot be instantiated as an object and will be read in as a uint32
I want to run the STORM package in Matlab, but I receive this error:
STORM('Validation',1,30,2,'ptotC','stormsC','ptot2C','storms2C','ETC')
Warning: Variable 'Ptot_pdf' originally saved as a prob....
1
vote
1
answer
792
views
Typescript Uint8Array, Uint16Array Python equivalent
new Uint8Array(new Uint16Array([64]).buffer)
How can I achieve same result structure with pure Python? What is an equivalent of Uint8Array/Uint16Array?
I'm getting buffer from Uint16Array type here ...
0
votes
0
answers
199
views
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 ...
0
votes
1
answer
279
views
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 ...
-2
votes
1
answer
252
views
Image processing advise - converting uint32 array to Image [closed]
I'm just learning about image processing, and have chosen go as my preferred language to begin working with images.
I have an array of uint32 values, such as:
[[287 277 283 297 295 279 279 292 305 295 ...
-1
votes
1
answer
486
views
Hex to Uint32 Little Endian in Delphi 7
There is a hex byte sequence: 04 9A 01 00
The HxD hex editor decodes them as "104964" (UInt 32 Little Endian). I need to implement a similar conversion in Delphi 7, but in the opposite ...
0
votes
1
answer
63
views
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 ...
4
votes
1
answer
126
views
Why does different types of array subscript used to iterate affect auto vectorization
As following code shows, why uint32_t prevents the compiler (GCC 12.1 + O3) from optimizing by auto vectorization. See godbolt.
#include <cstdint>
// no auto vectorization
void test32(uint32_t *...
0
votes
1
answer
672
views
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 ...
0
votes
1
answer
879
views
Audio transmitted in uint8_t into a .wav file
I am trying to transmit audio using CAN FD and the data format it sends it is in uint8_t, when the sample I take from the microphone with the ADC is an uint32_t. Will I have any problem trying to ...