Photon Fusion 2.1.1

StructExplicitAttribute(int Size) Class Referencesealed

Marks a struct for automatic generation of fixed layout constants and [StructLayout(LayoutKind.Explicit, Size = ...)]. Fields must have [FieldOffset]. More...

Properties

bool AllowOversizing [get, set]
 If true, allows for the struct to be larger than its contents.
bool EmitWordOffsets [get, set]
 If true, emits word offsets for each field not marked with

See also
FieldNotWordAlignedAttribute

.

int Pack [get, set]
 
See also
StructLayoutAttribute.Pack

int Size = Size [get]
 
See also
StructLayoutAttribute.Size

string WordCountName = "WORD_COUNT" [get, set]
 Custom name for the WORD_COUNT constant. Default is "WORD_COUNT".

Detailed Description

Marks a struct for automatic generation of fixed layout constants and [StructLayout(LayoutKind.Explicit, Size = ...)]. Fields must have [FieldOffset].

Parameters
Size
See also
StructLayoutAttribute.Size