/** Convert the bytes in the ByteBuffer to characters in the CharBuffer. * The CharBuffer must be large enough. */ public static void toChars(ByteBuffer bb, CharBuffer cb) { // if ( bb.hasArray() && cb.hasArray() ) // { // toCharsArray(bb.array(), cb.array()) ; // return ; // } toCharsBuffer(bb, cb) ; }
/** Convert the bytes in the ByteBuffer to characters in the CharBuffer. * The CharBuffer must be large enough. */ public static void toChars(ByteBuffer bb, CharBuffer cb) { // if ( bb.hasArray() && cb.hasArray() ) // { // toCharsArray(bb.array(), cb.array()) ; // return ; // } toCharsBuffer(bb, cb) ; }
/** Convert the bytes in the ByteBuffer to characters in the CharBuffer. * The CharBuffer must be large enough. */ public static void toChars(ByteBuffer bb, CharBuffer cb) { // if ( bb.hasArray() && cb.hasArray() ) // { // toCharsArray(bb.array(), cb.array()) ; // return ; // } toCharsBuffer(bb, cb) ; }
private static void toCharsArray(byte[] bytes, char[] chars) { toCharsBuffer(ByteBuffer.wrap(bytes), CharBuffer.wrap(chars)); }
private static void toCharsArray(byte[] bytes, char[] chars) { toCharsBuffer(ByteBuffer.wrap(bytes), CharBuffer.wrap(chars)); }