mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-08 23:17:45 +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: Cardinal; B: Word; C: Word; D, E, F, G, H, I, J, K: Byte): TGUID; overload; static;
|
||||
Class Function NewGuid: TGUID; static;
|
||||
Class Function Empty: TGUID; static;
|
||||
Function ToByteArray(DataEndian: TEndian = CPUEndian): TBytes;
|
||||
Function ToString(SkipBrackets: Boolean = False): string;
|
||||
end;
|
||||
@ -5558,6 +5559,11 @@ begin
|
||||
CreateGUID(Result)
|
||||
end;
|
||||
|
||||
class function TGuidHelper.Empty: TGUID;
|
||||
begin
|
||||
Result:=Default(TGUID);
|
||||
end;
|
||||
|
||||
function TGuidHelper.ToByteArray(DataEndian: TEndian): TBytes;
|
||||
|
||||
Var
|
||||
|
Loading…
Reference in New Issue
Block a user