Skip to content

Min and Max for 64-bit unsigned values #681

Description

@JPeterMugaas

It would be nice if Indy had a function to return the minimum and maximum values for unsigned 64-bit values. The current ones only can compare signed values for Int64.

Here's what I have for TaurusTLS:

function TaurusTLSMin(const AValueOne, AValueTwo : TIdC_SIZET) : TIdC_SIZET; {$IFDEF USE_INLINE}inline;{$ENDIF}
begin
if AValueOne < AValueTwo then begin
Result := AValueTwo;
end else begin
Result := AValueOne;
end;
end;

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions