svoid clearStringBuffer_gen(O buf) { if (buf != null) { call(buf, 'setLength, 0); call(buf, 'trimToSize); } }