long 썸네일형 리스트형 byte to long conversion package handler.file; public class ByteHandler {/** * long -> byte array * @param data * @return */ public static byte[] toByte(long data) { return new byte[] { (byte)((data >> 56) & 0xff), (byte)((data >> 48) & 0xff), (byte)((data >> 40) & 0xff), (byte)((data >> 32) & 0xff), (byte)((data >> 24) & 0xff), (byte)((data >> 16) & 0xff), (byte)((data >> 8) & 0xff), (byte)((data >> 0) & 0xff), }; } /*.. 더보기 이전 1 다음