mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-31 08:00:12 +02:00
* Added TGUID.Empty. Fix issue #39241
This commit is contained in:
parent
0dc7a141c6
commit
5b8684ea63
@ -676,6 +676,7 @@ Type
|
|||||||
// Class Function Create(A: Integer; B: SmallInt; C: SmallInt; D, E, F, G, H, I, J, K: Byte): TGUID; overload; static;
|
// Class Function Create(A: Integer; B: SmallInt; C: SmallInt; D, E, F, G, H, I, J, K: Byte): TGUID; overload; static;
|
||||||
Class Function Create(A: Cardinal; B: Word; C: Word; D, E, F, G, H, I, J, K: Byte): TGUID; overload; static;
|
Class Function Create(A: Cardinal; B: Word; C: Word; D, E, F, G, H, I, J, K: Byte): TGUID; overload; static;
|
||||||
Class Function NewGuid: TGUID; static;
|
Class Function NewGuid: TGUID; static;
|
||||||
|
Class Function Empty: TGUID; static;
|
||||||
Function ToByteArray(DataEndian: TEndian = CPUEndian): TBytes;
|
Function ToByteArray(DataEndian: TEndian = CPUEndian): TBytes;
|
||||||
Function ToString(SkipBrackets: Boolean = False): string;
|
Function ToString(SkipBrackets: Boolean = False): string;
|
||||||
end;
|
end;
|
||||||
@ -5558,6 +5559,11 @@ begin
|
|||||||
CreateGUID(Result)
|
CreateGUID(Result)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class function TGuidHelper.Empty: TGUID;
|
||||||
|
begin
|
||||||
|
Result:=Default(TGUID);
|
||||||
|
end;
|
||||||
|
|
||||||
function TGuidHelper.ToByteArray(DataEndian: TEndian): TBytes;
|
function TGuidHelper.ToByteArray(DataEndian: TEndian): TBytes;
|
||||||
|
|
||||||
Var
|
Var
|
||||||
|
Loading…
Reference in New Issue
Block a user