GDCM 3.0.24
gdcmBase64.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMBASE64_H
15#define GDCMBASE64_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
26{
27public:
28
32 static size_t GetEncodeLength(const char *src, size_t srclen );
33
45 static size_t Encode( char *dst, size_t dlen, const char *src, size_t slen );
46
50 static size_t GetDecodeLength( const char *src, size_t len );
51
62 static size_t Decode( char *dst, size_t dlen, const char *src, size_t slen );
63
64 Base64(const Base64&) = delete;
65 void operator=(const Base64&) = delete;
66};
67
68} // end namespace gdcm
69
70#endif // GDCMBASE64_H
Class for Base64.
Definition gdcmBase64.h:26
static size_t GetEncodeLength(const char *src, size_t srclen)
Base64(const Base64 &)=delete
static size_t Encode(char *dst, size_t dlen, const char *src, size_t slen)
Encode a buffer into base64 format.
static size_t Decode(char *dst, size_t dlen, const char *src, size_t slen)
Decode a base64-formatted buffer.
void operator=(const Base64 &)=delete
static size_t GetDecodeLength(const char *src, size_t len)
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21