Unsafe.InitBlock Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| InitBlock(Void*, Byte, UInt32) |
Initialise un bloc de mémoire à l’emplacement donné avec une valeur initiale donnée. |
| InitBlock(Byte, Byte, UInt32) |
Initialise un bloc de mémoire à l’emplacement donné avec une valeur initiale donnée. |
InitBlock(Void*, Byte, UInt32)
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
Important
Cette API n’est pas conforme CLS.
Initialise un bloc de mémoire à l’emplacement donné avec une valeur initiale donnée.
public:
static void InitBlock(void* startAddress, System::Byte value, System::UInt32 byteCount);
[System.CLSCompliant(false)]
public static void InitBlock(void* startAddress, byte value, uint byteCount);
public static void InitBlock(void* startAddress, byte value, uint byteCount);
[<System.CLSCompliant(false)>]
static member InitBlock : nativeptr<unit> * byte * uint32 -> unit
static member InitBlock : nativeptr<unit> * byte * uint32 -> unit
Paramètres
- startAddress
- Void*
Pointeur non managé référençant le début du bloc de mémoire à initialiser.
- value
- Byte
Valeur à afficher pour initialiser tous les octets du bloc de mémoire.
- byteCount
- UInt32
Nombre d’octets à initialiser.
- Attributs
Remarques
Cette API correspond au initblk code opcode. Le startAddress pointeur est supposé être aligné sur le pointeur. Pour plus d’informations, voir ECMA-335, Sec. III.3.36 (« initblk - initialiser un bloc de mémoire à une valeur »).
Avertissement
Cette API n’est pas destinée à initialiser des exécutions arbitraires de mémoire. Envisagez plutôt d’utiliser Fill ce scénario.
S’applique à
InitBlock(Byte, Byte, UInt32)
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
- Source:
- Unsafe.cs
Important
Cette API n’est pas conforme CLS.
Initialise un bloc de mémoire à l’emplacement donné avec une valeur initiale donnée.
public:
static void InitBlock(System::Byte % startAddress, System::Byte value, System::UInt32 byteCount);
[System.CLSCompliant(false)]
public static void InitBlock(ref byte startAddress, byte value, uint byteCount);
public static void InitBlock(ref byte startAddress, byte value, uint byteCount);
[<System.CLSCompliant(false)>]
static member InitBlock : byte * byte * uint32 -> unit
static member InitBlock : byte * byte * uint32 -> unit
Public Shared Sub InitBlock (ByRef startAddress As Byte, value As Byte, byteCount As UInteger)
Paramètres
- startAddress
- Byte
Pointeur managé référençant le début du bloc de mémoire à initialiser.
- value
- Byte
Valeur à afficher pour initialiser tous les octets du bloc de mémoire.
- byteCount
- UInt32
Nombre d’octets à initialiser.
- Attributs
Remarques
Cette API correspond au initblk code opcode. Le startAddress pointeur est supposé être aligné sur le pointeur. Pour plus d’informations, voir ECMA-335, Sec. III.3.36 (« initblk - initialiser un bloc de mémoire à une valeur »).
Avertissement
Cette API n’est pas destinée à initialiser des exécutions arbitraires de mémoire. Envisagez plutôt d’utiliser Fill ce scénario.