Trees | Index | Help |
|
---|
Module xmlsec :: Class Base64Ctx |
|
Method Summary | |
---|---|
Allocates and initializes new base64 context. | |
Destroys base64 context. | |
Encodes or decodes the last piece of data stored in the context and finalizes the result. | |
Frees all the resources allocated by Base64 context. | |
Initializes new base64 context. | |
Encodes or decodes the next piece of data from input buffer. |
Method Details |
---|
__init__(self,
encode,
columns,
_obj=None)
|
destroy(self)Destroys base64 context. |
final(self, out, outSize)Encodes or decodes the last piece of data stored in the context and finalizes the result. out : the output buffer outSize : the output buffer size Returns : the number of bytes written to output buffer or -1 if an error occurs. |
finalize(self)Frees all the resources allocated by Base64 context. |
initialize(self, encode, columns)Initializes new base64 context. encode : the encode/decode flag (1 - encode, 0 - decode) columns : the max line length. Returns : 0 on success and a negative value otherwise. |
update(self, inBuf, inBufSize, outBuf, outBufSize)Encodes or decodes the next piece of data from input buffer. inBuf : the input buffer inBufSize : the input buffer size outBuf : the output buffer outBufSize : the output buffer size Returns : the number of bytes written to output buffer or -1 if an error occurs. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jan 1 18:42:41 2006 | http://epydoc.sf.net |