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;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure | public | System.pas | System | TMarshal |
Description
Copies raw data to a block of memory.
The Copy group of overloaded methods copies the raw data of value-typed arrays to or from a block of memory referenced by a wrapped pointer.
StartIndex
indicates the array element to start copying to or from. Count
represents the number of elements to copy. Src
is the source of raw data copied into the Dest
. Both of these are represented by wrapped pointers and arrays.