ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Rot13 Class Reference

The ROT-13 algorithm, extended to operate over the entire 8-bit domain/range. More...

#include <DataConversion.h>

Inheritance diagram for Rot13:
Collaboration diagram for Rot13:

Private Member Functions

virtual ~Rot13 ()
 
virtual std::string name () const
 Name of the converter, mostly for debugging purposes. More...
 
virtual uint8_t * encode (uint8_t *buffer, size_t *nbytes)
 Encodes a buffer. More...
 
virtual uint8_t * decode (uint8_t *buffer, size_t *nbytes)
 Decodes a buffer. More...
 

Additional Inherited Members

- Public Member Functions inherited from DataConverter
virtual ~DataConverter ()
 

Detailed Description

The ROT-13 algorithm, extended to operate over the entire 8-bit domain/range.

Definition at line 28 of file DataConversion.h.

Constructor & Destructor Documentation

virtual Rot13::~Rot13 ( )
inlineprivatevirtual

Definition at line 29 of file DataConversion.h.

Member Function Documentation

virtual std::string Rot13::name ( ) const
inlineprivatevirtual

Name of the converter, mostly for debugging purposes.

Implements DataConverter.

Definition at line 30 of file DataConversion.h.

uint8_t * Rot13::encode ( uint8_t *  buffer,
size_t *  nbytes 
)
privatevirtual

Encodes a buffer.

Encodes the supplied buffer either in place or into a newly allocated buffer. The return value is the location of the encoded data and the nbytes argument should be updated to reflect the size of the encoded data. The original buffer should not be deleted by this method.

Implements DataConverter.

Definition at line 5 of file DataConversion.C.

uint8_t * Rot13::decode ( uint8_t *  buffer,
size_t *  nbytes 
)
privatevirtual

Decodes a buffer.

Decodes the supplied buffer either in place or into a newly allocated buffer. The return value is the location of the decoded data and the nbytes argument should be updated to reflect the size of the decoded data. The original buffer should not be deleted by this method.

Implements DataConverter.

Definition at line 13 of file DataConversion.C.


The documentation for this class was generated from the following files: