X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fdoc%2Fbasecode.txt;h=d4e307e48cb9f88b35f6f7b89f547a982fdf49b1;hb=f1155256f7a168f5e2c0097cb4e7197b79c4f041;hp=ca2aa86eefb6f16578e573de0182375e02600f5e;hpb=0192d9f3a127c82b32131d26ed9b5fb5a90db723;p=libucw.git diff --git a/ucw/doc/basecode.txt b/ucw/doc/basecode.txt index ca2aa86e..d4e307e4 100644 --- a/ucw/doc/basecode.txt +++ b/ucw/doc/basecode.txt @@ -29,7 +29,7 @@ Usage output buffer and feed the data to the function. byte output[BASE64_ENC_LENGTH(input_size)]; - uns output_size = base64_encode(output, input, input_size); + uint output_size = base64_encode(output, input, input_size); - Decoding can be done in similar way. It is enough to have output buffer of the same size as the input one. @@ -38,11 +38,11 @@ Usage chunks. The input chunk size must be multiple of `BASE64_IN_CHUNK`. The output will be corresponding multiple of `BASE64_OUT_CHUNK`. - uns input_size; + uint input_size; byte input[BASE64_IN_CHUNK * 10]; while(input_size = read_chunk(input, BASE64_IN_CHUNK * 10)) { byte output[BASE64_OUT_CHUNK * 10]; - uns output_size = base64_encode(output, input, input_size); + uint output_size = base64_encode(output, input, input_size); use_chunk(output, output_size); }