9#ifndef ZYPP_BYTEARRAY_H 
   10#define ZYPP_BYTEARRAY_H 
   21    using vector<
char>::vector;
 
   23    explicit ByteArray ( 
const char *data, 
const int len = -1 ) : 
ByteArray( data, data + (len == -1 ? strlen(data) : len) ) { }
 
   27      return std::string( data(), size() );
 
 
   30#ifdef __cpp_lib_string_view 
   31    std::string_view asStringView ()
 const {
 
   33        return std::string_view();
 
   34      return std::string_view( data(), size() );
 
   39      static const auto size = 
ByteArray().max_size();
 
 
 
   48    using vector<
unsigned char>::vector;
 
   49    explicit UByteArray ( 
const char *data, 
const int len = -1 ) : 
UByteArray( data, data + (len == -1 ? strlen(data) : len) ) { }
 
   52      static const auto size = 
UByteArray().max_size();
 
 
 
static std::size_t maxSize()
ByteArray(const std::string &data)
std::string asString() const
ByteArray(const char *data, const int len=-1)
static std::size_t maxSize()
UByteArray(const char *data, const int len=-1)
Easy-to use interface to the ZYPP dependency resolver.