Lines Matching refs:ns

14     public static void bigEndianToInt(byte[] bs, int off, int[] ns)
16 for (int i = 0; i < ns.length; ++i)
18 ns[i] = bigEndianToInt(bs, off);
38 public static byte[] intToBigEndian(int[] ns)
40 byte[] bs = new byte[4 * ns.length];
41 intToBigEndian(ns, bs, 0);
45 public static void intToBigEndian(int[] ns, byte[] bs, int off)
47 for (int i = 0; i < ns.length; ++i)
49 intToBigEndian(ns[i], bs, off);
61 public static void bigEndianToLong(byte[] bs, int off, long[] ns)
63 for (int i = 0; i < ns.length; ++i)
65 ns[i] = bigEndianToLong(bs, off);
83 public static byte[] longToBigEndian(long[] ns)
85 byte[] bs = new byte[8 * ns.length];
86 longToBigEndian(ns, bs, 0);
90 public static void longToBigEndian(long[] ns, byte[] bs, int off)
92 for (int i = 0; i < ns.length; ++i)
94 longToBigEndian(ns[i], bs, off);
108 public static void littleEndianToInt(byte[] bs, int off, int[] ns)
110 for (int i = 0; i < ns.length; ++i)
112 ns[i] = littleEndianToInt(bs, off);
117 public static void littleEndianToInt(byte[] bs, int bOff, int[] ns, int nOff, int count)
121 ns[nOff + i] = littleEndianToInt(bs, bOff);
141 public static byte[] intToLittleEndian(int[] ns)
143 byte[] bs = new byte[4 * ns.length];
144 intToLittleEndian(ns, bs, 0);
148 public static void intToLittleEndian(int[] ns, byte[] bs, int off)
150 for (int i = 0; i < ns.length; ++i)
152 intToLittleEndian(ns[i], bs, off);
164 public static void littleEndianToLong(byte[] bs, int off, long[] ns)
166 for (int i = 0; i < ns.length; ++i)
168 ns[i] = littleEndianToLong(bs, off);
186 public static byte[] longToLittleEndian(long[] ns)
188 byte[] bs = new byte[8 * ns.length];
189 longToLittleEndian(ns, bs, 0);
193 public static void longToLittleEndian(long[] ns, byte[] bs, int off)
195 for (int i = 0; i < ns.length; ++i)
197 longToLittleEndian(ns[i], bs, off);