WvStreams
Main Page
Modules
Classes
Files
File List
File Members
include
wvhex.h
Go to the documentation of this file.
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
* Hex encoder and hex decoder.
6
*/
7
#ifndef __WVHEX_H
8
#define __WVHEX_H
9
10
#include "wvencoder.h"
11
21
class
WvHexEncoder
:
public
WvEncoder
22
{
23
char
alphabase;
24
25
public
:
33
WvHexEncoder
(
bool
use_uppercase =
false
);
34
virtual
~
WvHexEncoder
() { }
35
36
protected
:
37
virtual
bool
_encode
(
WvBuf
&in,
WvBuf
&out,
bool
flush
);
38
virtual
bool
_reset
();
// supported
39
};
40
41
53
class
WvHexDecoder
:
public
WvEncoder
54
{
55
bool
issecond;
56
int
first;
57
58
public
:
60
WvHexDecoder
();
61
virtual
~
WvHexDecoder
() { }
62
63
protected
:
64
virtual
bool
_encode
(
WvBuf
&in,
WvBuf
&out,
bool
flush
);
65
virtual
bool
_reset
();
// supported
66
};
67
85
void
hexify
(
char
*obuf,
const
void
*ibuf,
size_t
len);
86
92
void
unhexify
(
void
*obuf,
const
char
*ibuf);
93
94
#endif // __WVHEX_H
Generated on Thu Oct 31 2013 15:14:23 for WvStreams by
1.8.4