Changeset aff250f


Ignore:
Timestamp:
Sep 1, 2011 1:24:47 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b3711e31
Parents:
a69267dc
Message:

javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    ra69267dc raff250f  
    532532    }
    533533   
     534    /**
     535     * @param numBytes 1-8
     536     * @param value non-negative
     537     */
    534538    public static byte[] toLong(int numBytes, long value) throws IllegalArgumentException {
    535539        if (value < 0) throw new IllegalArgumentException("Negative value not allowed");
     
    539543    }
    540544   
     545    /**
     546     * @param numBytes 1-8
     547     * @param value non-negative
     548     */
    541549    public static void toLong(byte target[], int offset, int numBytes, long value) throws IllegalArgumentException {
    542550        if (numBytes <= 0) throw new IllegalArgumentException("Invalid number of bytes");
     
    546554    }
    547555   
     556    /**
     557     * @param numBytes 1-8
     558     * @return non-negative
     559     */
    548560    public static long fromLong(byte src[], int offset, int numBytes) {
    549561        if ( (src == null) || (src.length == 0) )
Note: See TracChangeset for help on using the changeset viewer.