Encoding
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
public struct Encoding
public struct Encoding
A context used for encoding or decoding data.
Namespace: GMime
Package: gmime-3.0
Content:
Static methods:
- public static size_t base64_decode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Decodes a chunk of base64 encoded data.
- public static size_t base64_encode_close (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Base64 encodes the input stream to the output stream.
- public static size_t base64_encode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Base64 encodes a chunk of data.
- public static size_t quoted_decode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Decodes a block of quoted-printable encoded data.
- public static size_t quoted_encode_close (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Quoted-printable encodes a block of text.
- public static size_t quoted_encode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Quoted-printable encodes a block of text.
- public static size_t uudecode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
Uudecodes a chunk of data.
- public static size_t uuencode_close (uint8 inbuf, size_t inlen, uint8 outbuf, uint8 uubuf, int state, uint32 save)
Uuencodes a chunk of data.
- public static size_t uuencode_step (uint8 inbuf, size_t inlen, uint8 outbuf, uint8 uubuf, int state, uint32 save)
Uuencodes a chunk of data.
Methods:
- public size_t flush (string inbuf, size_t inlen, string outbuf)
Completes the incremental encode or decode of the input stream (see step for details).
- public void init_decode (ContentEncoding encoding)
Initializes a Encoding state machine for decoding from
encoding
. - public void init_encode (ContentEncoding encoding)
Initializes a Encoding state machine for encoding to
encoding
. - public size_t outlen (size_t inlen)
Given the input length,
inlen
, calculate the needed output length to perform an encoding or decoding step. - public void reset ()
Resets the state of the Encoding.
- public size_t step (string inbuf, size_t inlen, string outbuf)
Incrementally encodes or decodes (depending on this) an input stream by 'stepping' through a block of input at a time.