Unsafe.CopyBlock Methode

Definitie

Overloads

Name Description
CopyBlock(Byte, Byte, UInt32)

Kopieert bytes van het bronadres naar het doeladres.

CopyBlock(Void*, Void*, UInt32)

Kopieert bytes van het bronadres naar het doeladres.

CopyBlock(Byte, Byte, UInt32)

Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs

Belangrijk

Deze API is niet CLS-conform.

Kopieert bytes van het bronadres naar het doeladres.

public:
 static void CopyBlock(System::Byte % destination, System::Byte % source, System::UInt32 byteCount);
[System.CLSCompliant(false)]
public static void CopyBlock(ref byte destination, ref readonly byte source, uint byteCount);
public static void CopyBlock(ref byte destination, ref byte source, uint byteCount);
[System.CLSCompliant(false)]
public static void CopyBlock(ref byte destination, ref byte source, uint byteCount);
[<System.CLSCompliant(false)>]
static member CopyBlock : byte * byte * uint32 -> unit
static member CopyBlock : byte * byte * uint32 -> unit
Public Shared Sub CopyBlock (ByRef destination As Byte, ByRef source As Byte, byteCount As UInteger)

Parameters

destination
Byte

De beheerde aanwijzer die overeenkomt met het doeladres waarnaar moet worden gekopieerd.

source
Byte

De beheerde aanwijzer die overeenkomt met het bronadres waaruit moet worden gekopieerd.

byteCount
UInt32

Het aantal te kopiëren bytes.

Kenmerken

Opmerkingen

Deze API komt overeen met de cpblk opcode. Zowel de aanwijzer als de destinationsource aanwijzer worden verondersteld om uitgelijnd te worden. Zie ECMA-335, Sec. III.3.30 ("cpblk - copy data from memory to memory") voor meer informatie.

Caution

Deze API is niet bedoeld voor het kopiëren van willekeurige uitvoeringen van geheugen. Overweeg in plaats daarvan het gebruik MemoryCopy van of CopyTo voor dit scenario.

Van toepassing op

CopyBlock(Void*, Void*, UInt32)

Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs
Bron:
Unsafe.cs

Belangrijk

Deze API is niet CLS-conform.

Kopieert bytes van het bronadres naar het doeladres.

public:
 static void CopyBlock(void* destination, void* source, System::UInt32 byteCount);
[System.CLSCompliant(false)]
public static void CopyBlock(void* destination, void* source, uint byteCount);
public static void CopyBlock(void* destination, void* source, uint byteCount);
[<System.CLSCompliant(false)>]
static member CopyBlock : nativeptr<unit> * nativeptr<unit> * uint32 -> unit
static member CopyBlock : nativeptr<unit> * nativeptr<unit> * uint32 -> unit

Parameters

destination
Void*

De niet-beheerde aanwijzer die overeenkomt met het doeladres waarnaar moet worden gekopieerd.

source
Void*

De niet-beheerde aanwijzer die overeenkomt met het bronadres waaruit moet worden gekopieerd.

byteCount
UInt32

Het aantal te kopiëren bytes.

Kenmerken

Opmerkingen

Deze API komt overeen met de cpblk opcode. Zowel de aanwijzer als de destinationsource aanwijzer worden verondersteld om uitgelijnd te worden. Zie ECMA-335, Sec. III.3.30 ("cpblk - copy data from memory to memory") voor meer informatie.

Caution

Deze API is niet bedoeld voor het kopiëren van willekeurige uitvoeringen van geheugen. Overweeg in plaats daarvan het gebruik MemoryCopy van of CopyTo voor dit scenario.

Van toepassing op