int clear() {
        vb.clear();
        vd.clear();
        os.clear();

        if (vi != null && links != 0) {
            for (int i = 0; i < links; i++) {
                vi[i].clear();
                vc[i].clear();
            }
            vi = null;
            vc = null;
        }
        if (dataoffsets != null) {
            dataoffsets = null;
        }
        if (pcmlengths != null) {
            pcmlengths = null;
        }
        if (serialnos != null) {
            serialnos = null;
        }
        if (offsets != null) {
            offsets = null;
        }
        oy.clear();

        return (0);
    }