Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TGuidHelper.Create

Initialize a TGUID instance from data.

Declaration

Source position: syshelph.inc line 47

class function TGuidHelper.Create(

  const Data;

  DataEndian: TEndian = CPUEndian

):TGUID; overload;

class function TGuidHelper.Create(

  const B: TBytes;

  DataEndian: TEndian = CPUEndian

):TGUID; overload;

class function TGuidHelper.Create(

  const B: TBytes;

  AStartIndex: Cardinal;

  DataEndian: TEndian = CPUEndian

):TGUID; overload;

class function TGuidHelper.Create(

  const S: string

):TGUID; overload;

class function TGuidHelper.Create(

  A: Integer;

  B: SmallInt;

  C: SmallInt;

  const D: TBytes

):TGUID; overload;

class function TGuidHelper.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;

class function TGuidHelper.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;

Description

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 the BigEndian argument.
Data
can be an array of bytes. SizeOf(TGUID) bytes will be read from the array, starting at index StartIndex (default 0). The GUID Data will be read according to the BigEndian argument.
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

  

Standard GUID representation type.

StringToGUID

  

Convert a string to a native TGUID type.


Documentation generated on: Nov 22 2024