Lines Matching defs:out
113 ** The result is written into a preallocated output buffer "out".
114 ** "out" must be able to hold at least 2 +(257*n)/254 bytes.
122 ** If out==NULL then no output is generated but the routine still returns
123 ** the number of characters that would have been generated if out had
126 int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out){
131 if( out ){
132 out[0] = 'x';
133 out[1] = 0;
150 if( out==0 ){
153 out[0] = e;
158 out[j++] = 1;
161 out[j++] = x;
163 out[j] = 0;
169 ** Decode the string "in" into binary data and write it into "out".
175 ** The "in" and "out" parameters may point to the same buffer in order
178 int sqlite_decode_binary(const unsigned char *in, unsigned char *out){
187 out[i++] = c + e;
202 unsigned char out[33000];
219 nOut = sqlite_encode_binary(in, n, out);
221 if( nOut!=strlen(out) ){
222 printf(" ERROR return value is %d instead of %d\n", nOut, strlen(out));
230 printf("size %d->%d (max %d)", n, strlen(out)+1, m);
231 if( strlen(out)+1>m ){
235 for(j=0; out[j]; j++){
236 if( out[j]=='\'' ){
241 j = sqlite_decode_binary(out, out);
246 if( memcmp(in, out, n)!=0 ){