Lines Matching refs:datalength
136 size_t datalength = 0; in b64_ntop() local
152 if (datalength + 4 > targsize) in b64_ntop()
154 target[datalength++] = Base64[output[0]]; in b64_ntop()
155 target[datalength++] = Base64[output[1]]; in b64_ntop()
156 target[datalength++] = Base64[output[2]]; in b64_ntop()
157 target[datalength++] = Base64[output[3]]; in b64_ntop()
171 if (datalength + 4 > targsize) in b64_ntop()
173 target[datalength++] = Base64[output[0]]; in b64_ntop()
174 target[datalength++] = Base64[output[1]]; in b64_ntop()
176 target[datalength++] = Pad64; in b64_ntop()
178 target[datalength++] = Base64[output[2]]; in b64_ntop()
179 target[datalength++] = Pad64; in b64_ntop()
181 if (datalength >= targsize) in b64_ntop()
183 target[datalength] = '\0'; /* Returned value doesn't count \0. */ in b64_ntop()
184 return (datalength); in b64_ntop()