Here you can find the source of zeroBlock(byte[] block, int off, int len)
public static void zeroBlock(byte[] block, int off, int len)
//package com.java2s; public class Main { public static void zeroBlock(byte[] block, int off, int len) { for (int i = off; i < off + len; ++i) block[i] = 0;//from w ww . j a v a 2s . c o m } public static void zeroBlock(byte[] block) { zeroBlock(block, 0, block.length); } }