default:
throw new IllegalArgumentException("padding: " + padding);
}
CharBuffer in = CharBuffer.wrap(val);
int expectedLength = (int) (in.remaining() * encoder
.averageBytesPerChar()) + 1;
skip(prefixLength); // make a room for the length field
int oldPos = position();
encoder.reset();