class · System.Runtime.InteropServices

FieldOffsetAttribute

public class System.Runtime.InteropServices.FieldOffsetAttribute : System.Attribute

[FieldOffset(n)] on each field of a [ValueLayout(Layout.Explicit)] value: its place in bytes from the start.

Kind
class
Namespace
System.Runtime.InteropServices
Assembly
System.Core
Access
public, final
Source file
Interop.ant

Inheritance

Base classes
Any Attribute FieldOffsetAttribute

Constructors

constructor FieldOffsetAttribute(offset: i32)
#

Fields

field Offset: i32
#

Bytes from the start of the value.

Inherited members (5)

Source

FieldOffsetAttribute as Larva HIR, decompiled from its Larva HIR.

System.Runtime.InteropServices.FieldOffsetAttribute.hir
// `[FieldOffset(n)]` on each field of a `[ValueLayout(Layout.Explicit)]` value: its place in bytes from the start.
public class System.Runtime.InteropServices.FieldOffsetAttribute : System.Attribute
{
    // Bytes from the start of the value.
    field Offset: i32
    constructor FieldOffsetAttribute(offset: i32)
}
Esc