- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
private static byte[] getByteArrayFromInt(int number) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
DataOutputStream o = new DataOutputStream(out);
try {
o.writeInt(number);
} catch (IOException e) {
e.printStackTrace();
}
return out.toByteArray();
}