public int writeTypeList(TypeList typeList){
  int off=data.position();
  short[] types=typeList.types;
  writeInt(types.length);
  for (  short type : types) {
    writeShort(type);
  }
  return off;
}

public int writeTypeList ( TypeList typeList ) { int off = data . position ( ) ; short [ ] types = typeList . types ; writeInt ( types . length ) ; for ( short type : types ) { writeShort ( type ) ; } return off ; }
write typelist item into current section .
