gdcmBase64.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMBASE64_H
#define GDCMBASE64_H
#include "gdcmTypes.h"
namespace gdcm
{
class GDCM_EXPORT Base64
{
public:
static size_t GetEncodeLength(const char *src, size_t srclen );
static size_t Encode( char *dst, size_t dlen, const char *src, size_t slen );
static size_t GetDecodeLength( const char *src, size_t len );
static size_t Decode( char *dst, size_t dlen, const char *src, size_t slen );
Base64(const Base64&) = delete;
void operator=(const Base64&) = delete;
};
} // end namespace gdcm
#endif // GDCMBASE64_H
gdcm::Base64::GetEncodeLength
static size_t GetEncodeLength(const char *src, size_t srclen)
gdcm::Base64::Base64
Base64(const Base64 &)=delete
gdcm::Base64::Encode
static size_t Encode(char *dst, size_t dlen, const char *src, size_t slen)
Encode a buffer into base64 format.
gdcm::Base64::Decode
static size_t Decode(char *dst, size_t dlen, const char *src, size_t slen)
Decode a base64-formatted buffer.
gdcm::Base64::operator=
void operator=(const Base64 &)=delete
gdcm::Base64::GetDecodeLength
static size_t GetDecodeLength(const char *src, size_t len)
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21