System.TMarshal.Copy
Delphi
class procedure Copy(Src: TArray<Byte>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Byte>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Char>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Char>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Word>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Word>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Shortint>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Shortint>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Smallint>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Smallint>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Integer>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Integer>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<Int64>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<Int64>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(Src: TArray<TPtrWrapper>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(Src: TPtrWrapper; Dest: TArray<TPtrWrapper>; StartIndex: Integer; Count: Integer); overload;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| procedure | public | System.pas | System | TMarshal |
Description
Copie des données brutes dans un bloc de mémoire.
Le groupe Copy de méthodes surchargées copie les données brutes des tableaux de type de valeur vers ou depuis un bloc de mémoire référencé par un pointeur encapsulé.
StartIndex indique l'élément de tableau à partir duquel ou vers lequel commencer à copier. Count représente le nombre d'éléments à copier. Src est la source des données brutes copiées dans Dest. Les deux sont représentés par des pointeurs encapsulés et des tableaux.