Here you can find the source of unset(byte[] bytes)
Parameter | Description |
---|---|
bytes | The actual array of bytes. |
public static void unset(byte[] bytes)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . java 2 s .co m*/ * Unset an array of bytes. * * @param bytes * The actual array of bytes. */ public static void unset(byte[] bytes) { for (int i = 0; i < bytes.length; i++) { bytes[i] = 0; } } /** * Unset an array of chars. * * @param chars * The actual array of chars. */ public static void unset(char[] chars) { for (int i = 0; i < chars.length; i++) { chars[i] = 0; } } }