diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-07-30 20:19:37 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-07-30 20:19:37 +0700 |
commit | 0d3f1208b3f22329da901bd8764297673c6ae970 (patch) | |
tree | 11bd82392fc34db1180d51aab2be97da02158c3c /crypto/src/util/Arrays.cs | |
parent | PGP updates from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-0d3f1208b3f22329da901bd8764297673c6ae970.tar.xz |
Misc. updates from bc-java
Diffstat (limited to 'crypto/src/util/Arrays.cs')
-rw-r--r-- | crypto/src/util/Arrays.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs index 7b1766bba..03b451ef9 100644 --- a/crypto/src/util/Arrays.cs +++ b/crypto/src/util/Arrays.cs @@ -782,5 +782,15 @@ namespace Org.BouncyCastle.Utilities } return false; } + + public static bool IsNullOrEmpty(byte[] array) + { + return null == array || array.Length < 1; + } + + public static bool IsNullOrEmpty(object[] array) + { + return null == array || array.Length < 1; + } } } |