/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] int2bytes(int v) { byte[] ret = {0, 0, 0, 0}; int2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] int2bytes(int v) { byte[] ret = {0, 0, 0, 0}; int2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void int2bytes(int v, byte[] b) { int2bytes(v, b, 0); }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void int2bytes(int v, byte[] b) { int2bytes(v, b, 0); }
Bytes.int2bytes(len, header, 12);
Bytes.int2bytes(len, header, 12);
int len = bos.writtenBytes(); checkPayload(channel, len); Bytes.int2bytes(len, header, 12);
int len = bos.writtenBytes(); checkPayload(channel, len); Bytes.int2bytes(len, header, 12);
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] int2bytes(int v) { byte[] ret = {0, 0, 0, 0}; int2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void int2bytes(int v, byte[] b) { int2bytes(v, b, 0); }
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] int2bytes(int v) { byte[] ret = {0, 0, 0, 0}; int2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void int2bytes(int v, byte[] b) { int2bytes(v, b, 0); }
Bytes.int2bytes(len, header, 12);
Bytes.int2bytes(len, header, 12);
int len = bos.writtenBytes(); checkPayload(channel, len); Bytes.int2bytes(len, header, 12);
int len = bos.writtenBytes(); checkPayload(channel, len); Bytes.int2bytes(len, header, 12);