public int store(OutputStream out) throws IOException { int cnt = 0; if (elf.isClass32()) { cnt += StoreUtil.little32(out, st_name); cnt += StoreUtil.storeAddr(out, elf.e_ident, st_value); cnt += StoreUtil.storeXword(out, elf.e_ident, st_size); cnt += StoreUtil.little8(out, st_info); cnt += StoreUtil.little8(out, st_other); cnt += StoreUtil.little16(out, st_shndx); } else { cnt += StoreUtil.little32(out, st_name); cnt += StoreUtil.little8(out, st_info); cnt += StoreUtil.little8(out, st_other); cnt += StoreUtil.little16(out, st_shndx); cnt += StoreUtil.storeAddr(out, elf.e_ident, st_value); cnt += StoreUtil.storeXword(out, elf.e_ident, st_size); } return cnt; }