Author: toad
Date: 2007-11-28 20:22:38 +0000 (Wed, 28 Nov 2007)
New Revision: 16044

Modified:
   trunk/freenet/src/freenet/support/Fields.java
Log:
1-arg bytesToInts

Modified: trunk/freenet/src/freenet/support/Fields.java
===================================================================
--- trunk/freenet/src/freenet/support/Fields.java       2007-11-28 20:19:13 UTC 
(rev 16043)
+++ trunk/freenet/src/freenet/support/Fields.java       2007-11-28 20:22:38 UTC 
(rev 16044)
@@ -549,6 +549,10 @@
                return ints;
        }

+       public static int[] bytesToInts(byte[] buf) {
+               return bytesToInts(buf, 0, buf.length);
+       }
+       
     public static byte[] longToBytes(long x) {
         byte[] buf = new byte[8];
         for(int j=0;j<8;j++) {


Reply via email to