System.Reflection.Emit.OpCodes.Initblk Field

Initializes a specified block of memory at a specific address to a given size and initial value.

Syntax

public static readonly OpCode Initblk

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

FE 18

initblk

Set each location in a block of memory to a given value.

The stack transitional behavior, in sequential order, is:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The initblk instruction sets the number (unsigned int32) of bytes starting at the specified address (of type native int, &, or *) to the initialization value (of type unsigned int8). initblk assumes that the starting address is aligned to the natural size of the machine.

The operation of the initblk instructions can be altered by an immediately preceding OpCodes.Volatile or OpCodes.Unaligned prefix instruction.

NullReferenceException may be thrown if an invalid address is detected.

The following ILGenerator.Emit(OpCode) method overload can use the initblk opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0