Searched refs:output_length (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/sys/webclient/ |
| H A D | globus.c | 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() [all …]
|
| /petsc/src/mat/tests/ |
| H A D | cJSON.c | 730 size_t output_length = 0; in print_string_ptr() local 766 output_length = (size_t)(input_pointer - input) + escape_characters; in print_string_ptr() 768 output = ensure(output_buffer, output_length + sizeof("\"\"")); in print_string_ptr() 774 memcpy(output + 1, input, output_length); in print_string_ptr() 775 output[output_length + 1] = '\"'; in print_string_ptr() 776 output[output_length + 2] = '\0'; in print_string_ptr() 821 output[output_length + 1] = '\"'; in print_string_ptr() 822 output[output_length + 2] = '\0'; in print_string_ptr()
|