boolean dupKey = checkKey(key, koffset, klength);
checkValue(value, voffset, vlength);
if (!dupKey) {
checkBlockBoundary();
}
<BUG>this.baosDos.writeInt(klength);
</BUG>
this.keylength += klength;
<BUG>this.baosDos.writeInt(vlength);
</BUG>
this.valuelength += vlength;

boolean dupKey = checkKey(key, koffset, klength);
checkValue(value, voffset, vlength);
if (!dupKey) {
checkBlockBoundary();
}
this.out.writeInt(klength);
this.keylength += klength;
this.out.writeInt(vlength);
