Here you can find the source of setByte(byte[] byteArray, int offset, byte b)
public static byte[] setByte(byte[] byteArray, int offset, byte b)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w.j a v a2s . c o m * This method sets a byte in a byte array at a certain offset * in the byte array. * @return The byte array. */ public static byte[] setByte(byte[] byteArray, int offset, byte b) { byteArray[offset] = b; return byteArray; } }