System.TMarshal.Copy
Delphi
class procedure Copy(const Src: TArray<Byte>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Byte>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Char>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Char>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Word>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Word>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Shortint>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Shortint>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Smallint>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Smallint>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Integer>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Integer>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<Int64>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const Src: TPtrWrapper; var Dest: TArray<Int64>; StartIndex: Integer; Count: Integer); overload;
class procedure Copy(const Src: TArray<TPtrWrapper>; StartIndex: Integer; Dest: TPtrWrapper; Count: Integer); overload;
class procedure Copy(const 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.