public int writeClassData(ClassData classData){
  int off=data.position();
  writeUleb128(classData.staticFields.length);
  writeUleb128(classData.instanceFields.length);
  writeUleb128(classData.directMethods.length);
  writeUleb128(classData.virtualMethods.length);
  writeFields(classData.staticFields);
  writeFields(classData.instanceFields);
  writeMethods(classData.directMethods);
  writeMethods(classData.virtualMethods);
  return off;
}

public int writeClassData ( ClassData classData ) { int off = data . position ( ) ; writeUleb128 ( classData . staticFields . length ) ; writeUleb128 ( classData . instanceFields . length ) ; writeUleb128 ( classData . directMethods . length ) ; writeUleb128 ( classData . virtualMethods . length ) ; writeFields ( classData . staticFields ) ; writeFields ( classData . instanceFields ) ; writeMethods ( classData . directMethods ) ; writeMethods ( classData . virtualMethods ) ; return off ; }
write classdata item into current section .
