December 09, 2004 structure alignment | ||||
---|---|---|---|---|
| ||||
Hello. I need explicit set align in structure, because of structure contain data from external dll. So i need alignment=1. I found in docs http://www.digitalmars.com/d/struct.html : "alignment can be explicitly specified". But how i can do it? What is the syntax? Thanks |
December 09, 2004 Re: structure alignment | ||||
---|---|---|---|---|
| ||||
Posted in reply to novice2 | On Thu, 9 Dec 2004 12:14:39 +0000 (UTC), novice2 <novice2_member@pathlink.com> wrote: > Hello. > I need explicit set align in structure, because of structure contain data from > external dll. So i need alignment=1. I found in docs > http://www.digitalmars.com/d/struct.html : "alignment can be explicitly > specified". > But how i can do it? What is the syntax? It's in the Attributes section: http://www.digitalmars.com/d/attribute.html#align It should probably (at least) be linked to from the struct/union section as it's not obvious where it is. Regan |
Copyright © 1999-2021 by the D Language Foundation