if (d < len) {
encode3to4(src, d + off, len - d, dest, e, dialect);
e += 4;
} // end if: some padding needed
return dest.slice(0, e);
}
private static void encode3to4(
ChannelBuffer src, int srcOffset, int numSigBytes,
ChannelBuffer dest, int destOffset, Base64Dialect dialect) {