public final class ByteExtensions extends Object
| Constructor and Description |
|---|
ByteExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
clone(byte[] source)
Creates a copy of the source array.
|
static byte[] |
or(byte[] self,
byte[] other) |
static byte[] |
or(byte[] self,
byte[] other,
int offset) |
static boolean |
sequenceEqualConstantTime(byte[] self,
byte[] other)
Compares two byte arrays in constant time.
|
static byte[] |
xor(byte[] self,
byte[] other) |
static void |
zero(byte[] self) |
public static byte[] or(byte[] self,
byte[] other)
public static byte[] or(byte[] self,
byte[] other,
int offset)
public static byte[] xor(byte[] self,
byte[] other)
public static void zero(byte[] self)
public static boolean sequenceEqualConstantTime(byte[] self,
byte[] other)
self - The first byte array to compareother - The second byte array to comparepublic static byte[] clone(byte[] source)
source - Array to make copy ofCopyright © 2019 Microsoft Corporation. All rights reserved.