Questions tagged [packed]
78 questions
1
vote
1 answer
Flex Packed Bubble Chart
Is it possible to create a packed bubble chart in Flex like the following example?
Source: http://blog.tiger.com.pl/wp-content/uploads/2013/06/bubble2.jpg
I googled it and didn't find anything. If there is not a native way to do it, can someone…

Yury Euceda
- 570
- 4
- 15
1
vote
1 answer
ARM GCC unaligned access
if TStruct is packed, then this code ends with Str.D == 0x00223344 (not 0x11223344). Why? ARM GCC 4.7
#include
typedef struct {
unsigned char B;
unsigned int D;
} __attribute__ ((packed)) TStruct;
volatile TStruct Str;
int main(…

Martin Dusek
- 1,170
- 3
- 16
- 41
1
vote
1 answer
gcc __packed__ does not work as expected
I frequently use code like this:
struct teststruct
{
uint8_t i1;
uint16_t i2;
uint32_t i4;
} __attribute__((__packed__));
struct teststruct *protocol = (struct teststruct *)buffer;
uint16_t var = protocol->i2;
In order to access…

user2752256
- 13
- 3
1
vote
1 answer
SystemVerilog packed array vs unpacked array memory footprint
Is it true that with the contemporary advanced SV RTL simulators, the simulation footprint may increase when using unpacked arrays vs the packed arrays? If so, is this a problem and do verification teams insist on rules to use packed…

shparekh
- 820
- 10
- 20
1
vote
1 answer
Packed Decimal (but NOT Comp-3)
I'm encountering a series of numeric fields in this data file.
The fields are 6-bytes (12-nibbles)
The first nibble - in all cases so far, is "4"
The second nibble represents the number of digits to the LEFT of the decimal point.
The remaining…

Ken Benson
- 302
- 2
- 8
0
votes
1 answer
Packed bubble adding image for bubble background
is it possible to have images in bubbles for backgrounds in packed bubble highcharts?
I looked around but wasnt able to find such an option.
0
votes
1 answer
Highcharts packed bubbles useHTML datalabels and add label on top of parent node
I create a packed bubbles with a useHTML option for the datalabels because I want these labels to be centered in each bubbles.
The result is fine, you can see it here : https://jsfiddle.net/vegaelce/1tk0m4qs/8/
My issue is about the parent node…

vegaelce
- 115
- 6
0
votes
1 answer
How do I complete this example?
Hello I'm trying an example and I don't know how to follow.
I'm trying to set a map (or some other structure) that saves all the same class/type together.
For that, my approach was to take all parameters on the constructor of my class…

Pablo
- 82
- 6
0
votes
2 answers
Python Sockets send Uint16 and Uint32
I need to send a request via a python socket with the following structure:
{
Uint16 data_one
Uint16 data_one
Uint32 data_one
}
I have my server and client working, but i do not really know how can i encode and decode this kind of data to…
0
votes
1 answer
Is a C struct of all-packed fields except first one different from packed struct?
Among its Common Type Attributes, GCC provides packed:
This attribute, attached to a struct [...] type
definition, specifies that each of its members (other than zero-width
bit-fields) is placed to minimize the memory required. This is
equivalent…

PiCTo
- 924
- 1
- 11
- 23
0
votes
1 answer
C++ Macro takes proceeding code to be out of namespace
Currently I have a program which need attribute packing for numerous functions. The code must be interchangeable between Windows Visual Studio C++ and GCC C++. Currently it is very hard to read and I wanted to clean it up with a C++ macro, however,…

Chris F.
- 37
- 1
- 7
0
votes
1 answer
How to prevent R from auto-sizing plots?
I am making a series of packed circle plots based on my data. I have set all the circles in all of the plots to have the same radius. However, if one of the plots just has a single circle then R will auto-size this circle to take up the entire plot…

braun_tube
- 71
- 2
0
votes
0 answers
Packed union of non-pod structs
I want to know, is it acceptable to organize data in following manner? Structures is not POD types anymore, due to member initializers, and compiler gives warning about packed attribute being ignored. Is it possible to make them guaranteed…

Egor.Uttsov
- 45
- 7
0
votes
1 answer
IAR Linker placing of packed structures
I'm struggling with the IAR linker using packed structures.
This is a structure to be placed at an absolute position:
typedef __packed struct
{
uint8_t au8Build[8];
uint16_t u16Type;
} stMetaInfo_t;
#pragma location = ".META_INFO"
const…

Jay
- 1
- 1
0
votes
0 answers
Packing circles inside a hexagon using MATLAB
I made a script of "packing hexagons inside a hexagon" as shown in the fig.. Now i want to convert these smaller hexagons into circles of same radius i.e. 250 packed inside the hexagons same way. Here is the script for hexagons. Anyone can guide me…

ammara khurshid
- 1
- 1