Browse Source

inline certain methods.

this gave a performance boost to certain ciphers.
Ugochukwu Mmaduekwe 5 years ago
parent
commit
6b59f133d9
1 changed files with 4 additions and 3 deletions
  1. 4 3
      CryptoLib/src/Utils/ClpCheck.pas

+ 4 - 3
CryptoLib/src/Utils/ClpCheck.pas

@@ -28,11 +28,12 @@ type
   TCheck = class sealed(TObject)
   TCheck = class sealed(TObject)
 
 
   public
   public
-    class procedure DataLength(condition: Boolean; const msg: String); overload;
+    class procedure DataLength(condition: Boolean; const msg: String);
+      overload; inline;
     class procedure DataLength(const buf: TCryptoLibByteArray; off, len: Int32;
     class procedure DataLength(const buf: TCryptoLibByteArray; off, len: Int32;
-      const msg: String); overload;
+      const msg: String); overload; inline;
     class procedure OutputLength(const buf: TCryptoLibByteArray;
     class procedure OutputLength(const buf: TCryptoLibByteArray;
-      off, len: Int32; const msg: String); overload;
+      off, len: Int32; const msg: String); overload; inline;
 
 
   end;
   end;