[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

TGuidHelper.Create

Initialize a TGUID instance from data.

Declaration

Source position: syshelph.inc line 16

class function TGuidHelper.Create(

  const Data;

  BigEndian: Boolean

):TGuid; overload;

class function TGuidHelper.Create(

  const Data: array of Byte;

  AStartIndex: Cardinal;

  BigEndian: Boolean

):TGuid; overload;

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: Mar 17 2017