MilterDecoder 3 milter managerライブラリ
MilterDecoder

## Functions

#define | MILTER_DECODER_ERROR
GQuark | milter_decoder_error_quark ()
gboolean | milter_decoder_decode ()
gboolean | milter_decoder_end_decode ()
const gchar * | milter_decoder_get_buffer ()
gint32 | milter_decoder_get_command_length ()
gboolean | milter_decoder_check_command_length ()
gint | milter_decoder_decode_null_terminated_value ()
gboolean | milter_decoder_decode_header_content ()
MilterOption * | milter_decoder_decode_negotiate ()

## Types and Values

enum | MilterDecoderError
enum | MilterDecoderCompareType
struct | MilterDecoder

## オブジェクト階層

        GObject
        ╰── MilterDecoder

## 説明

## Functions

### MILTER_DECODER_ERROR

    #define MILTER_DECODER_ERROR           (milter_decoder_error_quark())

MILTER_DECODER_ERROR

### milter_decoder_error_quark ()

    GQuark
    milter_decoder_error_quark (void);

#### Returns

milter_decoder_error_quark

### milter_decoder_decode ()

    gboolean
    milter_decoder_decode (MilterDecoder *decoder,
                           const gchar *chunk,
                           gsize size,
                           GError **error);

#### Returns

milter_decoder_decode

### milter_decoder_end_decode ()

    gboolean
    milter_decoder_end_decode (MilterDecoder *decoder,
                               GError **error);

#### Returns

milter_decoder_end_decode

### milter_decoder_get_buffer ()

    const gchar *
    milter_decoder_get_buffer (MilterDecoder *decoder);

#### Returns

milter_decoder_get_buffer

### milter_decoder_get_command_length ()

    gint32
    milter_decoder_get_command_length (MilterDecoder *decoder);

#### Returns

milter_decoder_get_command_length

### milter_decoder_check_command_length ()

    gboolean
    milter_decoder_check_command_length (const gchar *buffer,
                                         gint length,
                                         gint expected_length,
                                         MilterDecoderCompareType compare_type,
                                         GError **error,
                                         const gchar *target);

#### Returns

milter_decoder_check_command_length

### milter_decoder_decode_null_terminated_value ()

    gint
    milter_decoder_decode_null_terminated_value
                                   (const gchar *buffer,
                                    gint length,
                                    GError **error,
                                    const gchar *message);

#### Returns

milter_decoder_decode_null_terminated_value

### milter_decoder_decode_header_content ()

    gboolean
    milter_decoder_decode_header_content (const gchar *buffer,
                                          gint length,
                                          const gchar **name,
                                          const gchar **value,
                                          GError **error);

#### Returns

milter_decoder_decode_header_content

### milter_decoder_decode_negotiate ()

    MilterOption *
    milter_decoder_decode_negotiate (const gchar *buffer,
                                     gint length,
                                     gint *processed_length,
                                     GError **error);

#### Returns

milter_decoder_decode_negotiate

## Types and Values

### enum MilterDecoderError

#### Members

MILTER_DECODER_ERROR_SHORT_COMMAND_LENGTH |  |
MILTER_DECODER_ERROR_LONG_COMMAND_LENGTH |  |
MILTER_DECODER_ERROR_UNEXPECTED_END |  |
MILTER_DECODER_ERROR_UNEXPECTED_COMMAND |  |
MILTER_DECODER_ERROR_MISSING_NULL |  |

MilterDecoderError

### enum MilterDecoderCompareType

#### Members

MILTER_DECODER_COMPARE_AT_LEAST |  |
MILTER_DECODER_COMPARE_EXACT |  |

MilterDecoderCompareType

### struct MilterDecoder

    struct MilterDecoder;

MilterDecoder