All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.security.keyvault.keys.models.webkey.ByteExtensions Maven / Gradle / Ivy

There is a newer version: 4.0.0-preview.5
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.security.keyvault.keys.models.webkey;

class ByteExtensions {
    /**
     * Creates a copy of the source array.
     * @param source The Array to make copy of
     * @return A copy of the array, or null if source was null.
     */
    static byte[] clone(byte[] source) {
        if (source == null) {
            return null;
        }

        byte[] copy = new byte[source.length];
        System.arraycopy(source, 0, copy, 0, source.length);

        return copy;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy