TUM-Logo

libRASCH

 

Home
 

General

About libRASCH/News
Design
Screen shots
Sample programs (with source code)
License
 

Download

libRASCH
Tools
 

Documentation

User
Developer
 

Resources

Mailing list
Supported Formats
Plugins
Status
Links
 
Contact
About this site
 
Last updated
Tue Mar 27 23:03:52 2007
libRASCH: mime64.c File Reference

mime64.c File Reference

Include dependency graph for mime64.c:

Go to the source code of this file.

Functions

int encode_base64 (unsigned char *in, long isize, unsigned char **out, long *osize)
 encode a string using MIME64
int decode_base64 (unsigned char *in, long isize, unsigned char **out, long *osize, long max_size)
 decode a string using MIME64

Variables

unsigned char base64_alph [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="


Detailed Description

This file implements mime-base64 encoding/decoding.

Author:
Raphael Schneider (ra@med1.med.tum.de)

Definition in file mime64.c.


Function Documentation

int decode_base64 unsigned char *  in,
long  isize,
unsigned char **  out,
long *  osize,
long  max_size
 

Parameters:
<in> input stream
<isize> size of input stream
<out> receive output stream
<osize> receive size of output stream
<max_size> maximum size of output stream
The function decodes the MIME64 encoded input stream 'in'. If 'max_size' is not -1 than this will be the maximal number of values decoded.

Definition at line 114 of file mime64.c.

References base64_alph.

Referenced by handle_value_events(), read_events_start_end_xml(), and read_single_template_xml().

int encode_base64 unsigned char *  in,
long  isize,
unsigned char **  out,
long *  osize
 

Parameters:
<in> input stream
<isize> size of input stream
<out> receive output stream
<osize> receive size of output stream
The function encodes the input stream 'in' using MIME-base64.

Definition at line 42 of file mime64.c.

References base64_alph.

Referenced by write_events_start_end_xml(), write_events_xml(), and write_single_template_xml().


Variable Documentation

unsigned char base64_alph[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
 

Definition at line 22 of file mime64.c.

Referenced by decode_base64(), and encode_base64().


Generated on Fri May 27 11:33:01 2005 for libRASCH by  doxygen 1.4.2