Skip to content

Dealing with Function Pointers on the Heap #10

@mjsabby

Description

@mjsabby
.class public auto ansi beforefieldinit FunctionPointersClass extends [System.Runtime]System.Object
{
  .field public method instance void*(int32) [] FuncPtrField

  .method public hidebysig specialname rtspecialname instance void .ctor() cil managed
  {
    .maxstack 8
    ldarg.0
    call instance void [System.Runtime]System.Object::.ctor()
    ret
  }

  .method public hidebysig instance void Populate() cil managed
  {
    ldarg.0
    ldc.i4.s 1
    newarr method instance void*(int32)
    stfld method instance void*(int32)[] FunctionPointersClass::FuncPtrField
    ret
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions