cr=CoderResult.OVERFLOW;
}
}
- if (useIMAP) {
- /* IMAP: need to terminate with a minus */
- if (target.hasRemaining()) {
- target.put(MINUS);
- if (offsets!=null) {
- offsets.put(sourceIndex - 1);
- }
- } else {
- errorBuffer[errorBufferLength++]=MINUS;
- cr=CoderResult.OVERFLOW;
+
+ /* need to terminate with a minus */
+ if (target.hasRemaining()) {
+ target.put(MINUS);
+ if (offsets!=null) {
+ offsets.put(sourceIndex - 1);
}
+ } else {
+ errorBuffer[errorBufferLength++]=MINUS;
+ cr=CoderResult.OVERFLOW;
}
}
/*reset the state for the next conversion */
version https://git-lfs.github.com/spec/v1
-oid sha256:e3758a1b8ac244b1f79cb0e6a6e0e8e096cc731e7be04e7574f44661c68f3751
-size 718981
+oid sha256:05b495174797742c80b3deda49ce5730e57f6ac46a0cac19b9f60257e96f1b62
+size 719054
//test for overflow buffer error
ccus.put((char)0x2262);
- ccbs.put((byte)0x2b); ccbs.put((byte)0x49); ccbs.put((byte)0x6d); ccbs.put((byte)0x49);
+ ccbs.put((byte)0x2b); ccbs.put((byte)0x49); ccbs.put((byte)0x6d); ccbs.put((byte)0x49); ccbs.put((byte)0x2d);
ccbs.limit(ccbs.position());
ccbs.position(0);
//test for overflow buffer error
encoder.reset();
ccus.put((char)0x3980); ccus.put((char)0x2715);
- ccbs.put((byte)0x2b); ccbs.put((byte)0x4f); ccbs.put((byte)0x59);
+ ccbs.put((byte)0x2b); ccbs.put((byte)0x4f); ccbs.put((byte)0x59); ccbs.put((byte)0x2d);
ccbs.limit(ccbs.position());
ccbs.position(0);