public static <T extends Chunkable>byte[] bytesFrom(T chunkable,int offset,int length){
  byte[] data=chunkable.getChunkableData();
  if (offset + length > data.length) {
    return Arrays.copyOfRange(data,offset,data.length);
  }
 else {
    return Arrays.copyOfRange(data,offset,offset + length);
  }
}

public static < T extends Chunkable > byte [ ] bytesFrom ( T chunkable , int offset , int length ) { byte [ ] data = chunkable . getChunkableData ( ) ; if ( offset + length > data . length ) { return Arrays . copyOfRange ( data , offset , data . length ) ; } else { return Arrays . copyOfRange ( data , offset , offset + length ) ; } }
retrieve a number of raw bytes at an offset .
