A vector-based version of a given PNG chunk.  
 More...
#include <png.hpp>
A vector-based version of a given PNG chunk. 
This is the base class of many different types of PNG chunks, such as facade::png::Header and facade::png::Text. 
 
◆ ChunkVec() [1/4]
  
  
      
        
          | facade::png::ChunkVec::ChunkVec  | 
          ( | 
          const ChunkTag  | 
          tag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ChunkVec() [2/4]
  
  
      
        
          | facade::png::ChunkVec::ChunkVec  | 
          ( | 
          const ChunkTag  | 
          tag,  | 
         
        
           | 
           | 
          const void *  | 
          ptr,  | 
         
        
           | 
           | 
          std::size_t  | 
          size  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ ChunkVec() [3/4]
  
  
      
        
          | facade::png::ChunkVec::ChunkVec  | 
          ( | 
          const ChunkTag  | 
          tag,  | 
         
        
           | 
           | 
          const std::vector< std::uint8_t > &  | 
          data  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ ChunkVec() [4/4]
  
  
      
        
          | facade::png::ChunkVec::ChunkVec  | 
          ( | 
          const ChunkVec &  | 
          other | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ as_chunk_vec() [1/2]
Interpret this ChunkVec derivative as a ChunkVec object. 
Really only useful when turning a derived ChunkVec object into its base. 
 
 
◆ as_chunk_vec() [2/2]
      
        
          | const ChunkVec & ChunkVec::as_chunk_vec  | 
          ( | 
           | ) | 
           const | 
        
      
 
Interpret this ChunkVec derivative as a const ChunkVec object. 
Really only useful when turning a derived ChunkVec object into its base. 
 
 
◆ crc()
      
        
          | std::uint32_t ChunkVec::crc  | 
          ( | 
           | ) | 
           const | 
        
      
 
Calculate the CRC value of this chunk. 
 
 
◆ data() [1/2]
      
        
          | std::vector< std::uint8_t > & ChunkVec::data  | 
          ( | 
           | ) | 
           | 
        
      
 
Return the chunk data reference associated with this chunk. 
 
 
◆ data() [2/2]
      
        
          | const std::vector< std::uint8_t > & ChunkVec::data  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return const chunk data reference associated with this chunk. 
 
 
◆ length()
      
        
          | std::size_t ChunkVec::length  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return the length of this chunk's data. 
 
 
◆ operator==()
      
        
          | bool ChunkVec::operator==  | 
          ( | 
          const ChunkVec &  | 
          other | ) | 
           const | 
        
      
 
 
◆ set_data()
      
        
          | void ChunkVec::set_data  | 
          ( | 
          std::vector< std::uint8_t > &  | 
          data | ) | 
           | 
        
      
 
Set the chunk data for this chunk. 
- Parameters
 - 
  
    | data | The data vector to set for the chunk's data.  | 
  
   
 
 
◆ tag() [1/2]
Return the chunk tag reference associated with this chunk. 
 
 
◆ tag() [2/2]
      
        
          | const ChunkTag & ChunkVec::tag  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return a const chunk tag reference associated with this chunk. 
 
 
◆ to_chunk_ptr()
      
        
          | std::pair< std::vector< std::uint8_t >, ChunkPtr > ChunkVec::to_chunk_ptr  | 
          ( | 
           | ) | 
           const | 
        
      
 
Convert this ChunkVec to a facade::png::ChunkPtr. 
- Warning
 - If the vector returned by this function goes out of scope, the returned ChunkPtr will point at deleted data. Make sure the vector and the ChunkPtr object retain the same scope. 
 
 
 
◆ upcast() [1/2]
template<typename T > 
  
  
      
        
          | T & facade::png::ChunkVec::upcast  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ upcast() [2/2]
template<typename T > 
  
  
      
        
          | const T & facade::png::ChunkVec::upcast  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
The documentation for this class was generated from the following files: