use of uk.me.parabola.imgfmt.app.SectionWriter in project mkgmap by openstreetmap.
the class TYPFile method writeStrIndex.
private void writeStrIndex(ImgFileWriter in) {
SectionWriter writer = header.getStringIndex().makeSectionWriter(in);
int psize = Utils.numberToPointerSize(header.getLabels().getSize());
header.getStringIndex().setItemSize((char) (3 + psize));
for (Map.Entry<Integer, Integer> ent : strToType.entrySet()) {
writer.putN(psize, ent.getKey());
writer.put3(ent.getValue());
}
Utils.closeFile(writer);
}
Aggregations