StackOverflow Questions for Tag: structure-packing

ZeZNiQ
ZeZNiQ

Reputation: 708

Difference between packing a struct vs union vs enum

Score: 1

Views: 136

Answers: 1

Read More
geo
geo

Reputation: 455

Reordering bit-fields mysteriously changes size of struct

Score: 3

Views: 124

Answers: 1

Read More
YePhIcK
YePhIcK

Reputation: 5856

size and alignment of int bitfields

Score: 6

Views: 441

Answers: 2

Read More
glades
glades

Reputation: 4737

How to deal with alignment skew when storing a structure in a byte buffer?

Score: 2

Views: 799

Answers: 1

Read More
Ivan
Ivan

Reputation:

Memory alignment in C-structs

Score: 59

Views: 57593

Answers: 10

Read More
Maverick447
Maverick447

Reputation: 143

C++ question , how can I see the default value of packing

Score: 0

Views: 272

Answers: 0

Read More
Abhishek Jaiswal
Abhishek Jaiswal

Reputation: 308

In the directive, #pragma pack(n), which values are valid values of n?

Score: 0

Views: 83

Answers: 1

Read More
jwd
jwd

Reputation: 11114

Portable way to create heterogenous vertex data array

Score: 4

Views: 102

Answers: 1

Read More
yuri kilochek
yuri kilochek

Reputation: 13486

Reinterpret struct with members of the same type as an array in a standard compliant way

Score: 9

Views: 1411

Answers: 5

Read More
cool.2k7
cool.2k7

Reputation: 21

_int64 bit field

Score: 1

Views: 4164

Answers: 3

Read More
MrSpartan
MrSpartan

Reputation: 37

Bit fields maked more optimized

Score: 0

Views: 1123

Answers: 3

Read More
Meganathan
Meganathan

Reputation: 31

Does pragmapack() in C programming have any usage apart from structure packing?

Score: 0

Views: 72

Answers: 1

Read More
Philippe Aubertin
Philippe Aubertin

Reputation: 1063

GCC end-aligned structure

Score: 1

Views: 61

Answers: 0

Read More
fatdragon
fatdragon

Reputation: 2299

Unexpected size when a struct has a union

Score: 3

Views: 158

Answers: 2

Read More
yuri kilochek
yuri kilochek

Reputation: 13486

std::memcpy struct with tightly packed members of TriviallyCopyable type T to an array of T and vise versa

Score: 0

Views: 1461

Answers: 2

Read More
Juan Camilo Gamboa
Juan Camilo Gamboa

Reputation: 33

Extra bytes when declaring a member of a struct as uint32_t

Score: 2

Views: 3526

Answers: 4

Read More
krb
krb

Reputation: 16315

Sizeof operator returns incorrect size?

Score: 2

Views: 21716

Answers: 5

Read More
user1367292
user1367292

Reputation: 1077

size of a structure containing bit fields

Score: 6

Views: 13014

Answers: 6

Read More
user191776
user191776

Reputation:

size of struct in C

Score: 66

Views: 281668

Answers: 4

Read More
Lukas
Lukas

Reputation: 51

C++ struct size: 2+4+2+2+4 = 16

Score: 4

Views: 1175

Answers: 9

Read More
PreviousPage 1Next