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;
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;