final public static int len(byte[] b){
  return b == null ? 0 : b.length;
}

final public static int len ( byte [ ] b ) { return b == null ? 0 : b . length ; }
returns length of the byte array , returning 0 if the array is null . useful for calculating sizes .
