axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clark (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-270) base64 encoding/decoding should be implemented as a stream
Date Sat, 09 Sep 2006 11:26:22 GMT
base64 encoding/decoding should be implemented as a stream
----------------------------------------------------------

                 Key: AXIS2C-270
                 URL: http://issues.apache.org/jira/browse/AXIS2C-270
             Project: Axis2-C
          Issue Type: Improvement
          Components: util
    Affects Versions: Current (Nightly)
            Reporter: James Clark
            Priority: Minor


You should have something like this

axis2_output_stream_t *axis2_create_base64_output_stream(axis2_output_stream_t *, const axis2_env_t
*);

Let's call the argument stream s1 and the returned stream s1. When you write bytes on s2,
they will be written out as base64 encoded bytes on s2.  

Similarly, mapping base64 to binary is an input_stream.

This allows you to efficiently deal with encoding/decoding large quantities of base64 data.

You can have your existing functions as well.  They should both be implemented on top of a
lower-level layer that copies from buffer to buffer without doing allocation, e.g. something
like

base64_decode(const char *from, size_t from_length, char *to, size_t to_length, size_t *n_read,
size_t *n_written)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message