Lines Matching refs:len

88         public abstract boolean process(byte[] input, int offset, int len, boolean finish);
95 public abstract int maxOutputSize(int len);
148 * @param len the number of bytes of input to decode
155 public static byte[] decode(byte[] input, int offset, int len, int flags) {
158 Decoder decoder = new Decoder(flags, new byte[len*3/4]);
160 if (!decoder.process(input, offset, len, true)) {
251 * len} bytes could decode to.
253 public int maxOutputSize(int len) {
254 return len * 3/4 + 10;
263 public boolean process(byte[] input, int offset, int len, boolean finish) {
267 len += offset;
280 while (p < len) {
296 while (p+4 <= len &&
307 if (p >= len) break;
470 * @param len the number of bytes of input to encode
475 public static String encodeToString(byte[] input, int offset, int len, int flags) {
477 return new String(encode(input, offset, len, flags), "US-ASCII");
504 * @param len the number of bytes of input to encode
509 public static byte[] encode(byte[] input, int offset, int len, int flags) {
513 int output_len = len / 3 * 4;
517 if (len % 3 > 0) {
521 switch (len % 3) {
529 if (encoder.do_newline && len > 0) {
530 output_len += (((len-1) / (3 * Encoder.LINE_GROUPS)) + 1) *
535 encoder.process(input, offset, len, true);
597 * len} bytes could encode to.
599 public int maxOutputSize(int len) {
600 return len * 8/5 + 10;
603 public boolean process(byte[] input, int offset, int len, boolean finish) {
611 len += offset;
624 if (p+2 <= len) {
635 if (p+1 <= len) {
662 while (p+3 <= len) {
685 if (p-tailLen == len-1) {
699 } else if (p-tailLen == len-2) {
720 assert p == len;
725 if (p == len-1) {
727 } else if (p == len-2) {