public int writeClassDef(ClassDef classDef){
  int off=data.position();
  writeInt(classDef.typeIndex);
  writeInt(classDef.accessFlags);
  writeInt(classDef.supertypeIndex);
  writeInt(classDef.interfacesOffset);
  writeInt(classDef.sourceFileIndex);
  writeInt(classDef.annotationsOffset);
  writeInt(classDef.classDataOffset);
  writeInt(classDef.staticValuesOffset);
  return off;
}

public int writeClassDef ( ClassDef classDef ) { int off = data . position ( ) ; writeInt ( classDef . typeIndex ) ; writeInt ( classDef . accessFlags ) ; writeInt ( classDef . supertypeIndex ) ; writeInt ( classDef . interfacesOffset ) ; writeInt ( classDef . sourceFileIndex ) ; writeInt ( classDef . annotationsOffset ) ; writeInt ( classDef . classDataOffset ) ; writeInt ( classDef . staticValuesOffset ) ; return off ; }
write classdef item into current section .
