NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
base64-decode.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_CXX_SECURITY_TRANSFORM_BASE64_DECODE_HPP
23 #define NDN_CXX_SECURITY_TRANSFORM_BASE64_DECODE_HPP
24 
25 #include "transform-base.hpp"
26 
27 namespace ndn {
28 namespace security {
29 namespace transform {
30 
34 class Base64Decode : public Transform
35 {
36 public:
44  explicit
45  Base64Decode(bool expectNewlineEvery64Bytes = true);
46 
47 private:
48 
52  virtual void
53  preTransform() final;
54 
60  virtual size_t
61  convert(const uint8_t* buf, size_t size) final;
62 
68  virtual void
69  finalize() final;
70 
74  void
75  fillOutputBuffer();
76 
77 private:
78  class Impl;
79  unique_ptr<Impl> m_impl;
80 };
81 
82 unique_ptr<Transform>
83 base64Decode(bool expectNewlineEvery64Bytes = true);
84 
85 } // namespace transform
86 } // namespace security
87 } // namespace ndn
88 
89 #endif // NDN_CXX_SECURITY_TRANSFORM_BASE64_DECODE_HPP
There are three types of module in a transformation chain: Source, Transform, and Sink...
Copyright (c) 2011-2015 Regents of the University of California.
unique_ptr< Transform > base64Decode(bool expectNewlineEvery64Bytes)
The implementation class which contains the internal state of the filter which includes openssl speci...
Base64Decode(bool expectNewlineEvery64Bytes=true)
Create a base64 decoding module.
Abstraction of an intermediate transformation module.
The module to perform Base64 decoding transformation.