TGuidHelper.Create function
Initialize a
TGUID instance from data.
Declaration
class function Create(const Data; DataEndian: TEndian=CPUEndian): TGUID
; overload; static
class function Create(const B: TBytes; DataEndian: TEndian=CPUEndian)
: TGUID; overload; static
class function Create(const B: TBytes; AStartIndex: Cardinal;
DataEndian: TEndian=CPUEndian): TGUID; overload
; static
class function Create(const S: string): TGUID; overload; static
class function Create(A: Integer; B: SmallInt; C: SmallInt;
const D: TBytes): TGUID; overload; static
class function Create(A: Integer; B: SmallInt; C: SmallInt; D: Byte;
E: Byte; F: Byte; G: Byte; H: Byte; I: Byte;
J: Byte; K: Byte): TGUID; overload; static
class function Create(A: Cardinal; B: Word; C: Word; D: Byte; E: Byte;
F: Byte; G: Byte; H: Byte; I: Byte; J: Byte;
K: Byte): TGUID; overload; staticDescription
Create will initialize a
TGUID from byte data.
The byte-data can come in different forms
- Data
- can be a plain buffer. The GUID Data will be read from the buffer
(
SizeOf(TGUID)bytes), according to theBigEndianargument. - Data
- can be an array of bytes.
SizeOf(TGUID)bytes will be read from the array, starting at indexStartIndex(default 0). The GUID Data will be read according to theBigEndianargument. - S
- can be a string containing a string representation of the GUID, which is converted using StringToGUID.
- A,B,C,D (optionally E,F,G,H,I,J,K)
- where the arguments are simply the various components of the GUID.
See also
- TGUID
- StringToGUID
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
