All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.eosif.lib.utils.ByteBuffer Maven / Gradle / Ivy

package io.eosif.lib.utils;

/**
 * 
 * @author espritblock http://eblock.io
 *
 */
public class ByteBuffer {

	private byte[] buffer = new byte[] {};

	public void concat(byte[] b) {

		// int[] a = IntStream.range(0, b.length).map(i -> b[i] & 0xff).toArray();
		// for(int i=1;i<=a.length;i++) {
		// System.out.print(a[i-1]+","+((i%8==0)?"\n":""));
		// }
		buffer = ByteUtils.concat(buffer, b);
	}

	public byte[] getBuffer() {
		return buffer;
	}

	public void setBuffer(byte[] buffer) {
		this.buffer = buffer;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy