Changeset 4802


Ignore:
Timestamp:
02/11/09 20:09:33 (11 years ago)
Author:
curtis
Message:

Readd method to fix compile errors... but why is 'boolean signed' unused?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/DataTools.java

    r4801 r4802  
    515515    boolean little) 
    516516  { 
     517    return makeDataArray(b, bpp, fp, little, false); 
     518  } 
     519 
     520  /** 
     521   * Convert a byte array to the appropriate primitive type array. 
     522   * @param b Byte array to convert. 
     523   * @param bpp Denotes the number of bytes in the returned primitive type 
     524   *   (e.g. if bpp == 2, we should return an array of type short). 
     525   * @param fp If set and bpp == 4 or bpp == 8, then return floats or doubles. 
     526   * @param little Whether byte array is in little-endian order. 
     527   */ 
     528  public static Object makeDataArray(byte[] b, 
     529    int bpp, boolean fp, boolean little, boolean signed) 
     530  { 
    517531    if (bpp == 1) { 
    518532      return b; 
Note: See TracChangeset for help on using the changeset viewer.