GDCM: gdcmBase64.h Source File

GDCM 3.0.26

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{
25 class GDCM_EXPORT Base64
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
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