encode.h
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2004
* Andrew Howard
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Desc: Useful encoding/decoding routines
* Author: Andrew Howard
* Date: 16 Sep 2005
* CVS: $Id: encode.h 8125 2009-07-24 14:21:55Z thjc $
*/
#ifndef ENCODE_H_
#define ENCODE_H_
size_t EncodeHexSize(size_t src_len);
void EncodeHex(char *dst, size_t dst_len, const void *src, size_t src_len);
size_t DecodeHexSize(size_t src_len);
void DecodeHex(void *dst, size_t dst_len, const char *src, size_t src_len);
#endif

Last updated 12 September 2005 21:38:45