Module xmlsec :: Class Base64Ctx
[frames | no frames]

Class Base64Ctx


Method Summary
  __init__(self, encode, columns, _obj)
Allocates and initializes new base64 context.
  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.
  finalize(self)
Frees all the resources allocated by Base64 context.
  initialize(self, encode, columns)
Initializes new base64 context.
  update(self, inBuf, inBufSize, outBuf, outBufSize)
Encodes or decodes the next piece of data from input buffer.

Method Details

__init__(self, encode, columns, _obj=None)
(Constructor)

Allocates and initializes new base64 context.
encode  : the encode/decode flag (1 - encode, 0 - decode)
columns : the max line length.
Returns : the newly created Base64 context object or None if an
error occurs.

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.

Generated by Epydoc 2.1 on Sun Jan 1 18:42:41 2006 http://epydoc.sf.net