This source file includes following definitions.
- byte_length_
- byte_length_
- byte_length_
- byte_length_
- byte_length_
- byte_length_
#include "content/child/webcrypto/crypto_data.h"
#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
namespace content {
namespace webcrypto {
CryptoData::CryptoData() : bytes_(NULL), byte_length_(0) {}
CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length)
: bytes_(bytes), byte_length_(byte_length) {}
CryptoData::CryptoData(const std::vector<unsigned char>& bytes)
: bytes_(bytes.size() ? &bytes[0] : NULL), byte_length_(bytes.size()) {}
CryptoData::CryptoData(const std::string& bytes)
: bytes_(bytes.size() ? reinterpret_cast<const unsigned char*>(bytes.data())
: NULL),
byte_length_(bytes.size()) {}
CryptoData::CryptoData(const blink::WebArrayBuffer& buffer)
: bytes_(reinterpret_cast<const unsigned char*>(buffer.data())),
byte_length_(buffer.byteLength()) {}
CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes)
: bytes_(bytes.data()), byte_length_(bytes.size()) {}
}
}