Lines Matching refs:output_length
14 size_t input_length, output_length; in base64_encode() local
18 output_length = 4 * ((input_length + 2) / 3); in base64_encode()
19 …PetscCheck(output_length <= len, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Output length not large en… in base64_encode()
33 for (i = 0; i < mod_table[input_length % 3]; i++) encoded_data[output_length - 1 - i] = '='; in base64_encode()
42 size_t input_length, output_length; in base64_decode() local
53 output_length = input_length / 4 * 3; in base64_decode()
54 if (data[input_length - 1] == '=') (output_length)--; in base64_decode()
55 if (data[input_length - 2] == '=') (output_length)--; in base64_decode()
56 …PetscCheck(output_length <= length, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Output length too shore… in base64_decode()
65 if (j < output_length) decoded_data[j++] = (triple >> 2 * 8) & 0xFF; in base64_decode()
66 if (j < output_length) decoded_data[j++] = (triple >> 1 * 8) & 0xFF; in base64_decode()
67 if (j < output_length) decoded_data[j++] = (triple >> 0 * 8) & 0xFF; in base64_decode()