Here you can find the source of setbyte(byte dest[], int offset, byte b)
public static final byte[] setbyte(byte dest[], int offset, byte b)
//package com.java2s; public class Main { public static final byte[] setbyte(byte dest[], int offset, byte b) { dest[offset] = b;//from ww w . ja v a2 s.c o m return dest; } }