private static int findEsdsPosition(ParsableByteArray parent,int position,int size){
  int childAtomPosition=parent.getPosition();
  while (childAtomPosition - position < size) {
    parent.setPosition(childAtomPosition);
    int childAtomSize=parent.readInt();
    Assertions.checkArgument(childAtomSize > 0,"childAtomSize should be positive");
    int childType=parent.readInt();
    if (childType == Atom.TYPE_esds) {
      return childAtomPosition;
    }
    childAtomPosition+=childAtomSize;
  }
  return -1;
}

private static int findEsdsPosition ( ParsableByteArray parent , int position , int size ) { int childAtomPosition = parent . getPosition ( ) ; while ( childAtomPosition - position < size ) { parent . setPosition ( childAtomPosition ) ; int childAtomSize = parent . readInt ( ) ; Assertions . checkArgument ( childAtomSize > 0 , "childAtomSize should be positive" ) ; int childType = parent . readInt ( ) ; if ( childType == Atom . TYPE_esds ) { return childAtomPosition ; } childAtomPosition += childAtomSize ; } return - 1 ; }
returns the position of the esds box within a parent , or - 1 if no esds box is found
