/** * to byte array. * * @param v value. * @param b byte array. */ public static void short2bytes(short v, byte[] b) { short2bytes(v, b, 0); }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void short2bytes(short v, byte[] b) { short2bytes(v, b, 0); }
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] short2bytes(short v) { byte[] ret = {0, 0}; short2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] short2bytes(short v) { byte[] ret = {0, 0}; short2bytes(v, ret); return ret; }
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] short2bytes(short v) { byte[] ret = {0, 0}; short2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void short2bytes(short v, byte[] b) { short2bytes(v, b, 0); }
/** * to byte array. * * @param v value. * @return byte[]. */ public static byte[] short2bytes(short v) { byte[] ret = {0, 0}; short2bytes(v, ret); return ret; }
/** * to byte array. * * @param v value. * @param b byte array. */ public static void short2bytes(short v, byte[] b) { short2bytes(v, b, 0); }
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);
Bytes.short2bytes(MAGIC, header);