Here you can find the source of setByte(byte value, byte[] bytes, int offset)
public static void setByte(byte value, byte[] bytes, int offset)
//package com.java2s; //License from project: Apache License public class Main { public static void setByte(byte value, byte[] bytes, int offset) { bytes[offset] = value;/*from w w w.j a v a 2 s . c o m*/ } public static void setByte(byte value, byte[] bytes) { bytes[0] = value; } }