![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
バイナリデータ More...
#include <Blob.hpp>
Public Types | |
| using | base_type = Array< Byte > |
| using | iterator = base_type::iterator |
| using | const_iterator = base_type::const_iterator |
| using | reverse_iterator = base_type::reverse_iterator |
| using | const_reverse_iterator = base_type::const_reverse_iterator |
Public Member Functions | |
| SIV3D_NODISCARD_CXX20 | Blob ()=default |
| SIV3D_NODISCARD_CXX20 | Blob (const Blob &)=default |
| SIV3D_NODISCARD_CXX20 | Blob (Blob &&)=default |
| SIV3D_NODISCARD_CXX20 | Blob (size_t sizeBytes) |
| SIV3D_NODISCARD_CXX20 | Blob (Arg::reserve_< size_t > resrveSizeBytes) |
| SIV3D_NODISCARD_CXX20 | Blob (FilePathView path) |
| SIV3D_NODISCARD_CXX20 | Blob (IReader &reader) |
| SIV3D_NODISCARD_CXX20 | Blob (const void *src, size_t sizeBytes) |
| SIV3D_NODISCARD_CXX20 | Blob (const Array< Byte > &data) |
| SIV3D_NODISCARD_CXX20 | Blob (Array< Byte > &&data) |
| Blob & | operator= (const Array< Byte > &other) |
| Blob & | operator= (Array< Byte > &&other) noexcept |
| Blob & | operator= (const Blob &other) |
| Blob & | operator= (Blob &&other) noexcept |
| void | create (const Blob &other) |
| void | create (Blob &&other) |
| void | create (const void *src, size_t sizeBytes) |
| void | create (const Array< Byte > &data) |
| void | create (Array< Byte > &&data) |
| bool | createFromFile (FilePathView path) |
| const Byte & | operator[] (const size_t index) const |
| Byte & | operator[] (const size_t index) |
| const Byte * | data () const noexcept |
| Byte * | data () noexcept |
| const Array< Byte > & | asArray () const noexcept |
| bool | empty () const noexcept |
| bool | isEmpty () const noexcept |
| operator bool () const noexcept | |
| size_t | size () const noexcept |
| バイナリデータのサイズ(バイト)を返します。 More... | |
| size_t | size_bytes () const noexcept |
| バイナリデータのサイズ(バイト)を返します。 More... | |
| size_t | capacity () const noexcept |
| void | reserve (size_t sizeBytes) |
| void | resize (size_t sizeBytes) |
| void | shrink_to_fit () |
| void | clear () |
| void | release () |
| iterator | begin () noexcept |
| iterator | end () noexcept |
| const_iterator | begin () const noexcept |
| const_iterator | end () const noexcept |
| const_iterator | cbegin () const noexcept |
| const_iterator | cend () const noexcept |
| reverse_iterator | rbegin () noexcept |
| reverse_iterator | rend () noexcept |
| const_reverse_iterator | rbegin () const noexcept |
| const_reverse_iterator | rend () const noexcept |
| const_reverse_iterator | crbegin () const noexcept |
| const_reverse_iterator | crend () const noexcept |
| void | append (const void *src, size_t sizeBytes) |
| 末尾にバイナリデータを追加します。 More... | |
| bool | save (FilePathView path) const |
| バイナリデータをファイルに保存します。 More... | |
| MD5Value | md5 () const |
| バイナリデータを MD5 のハッシュ値に変換します。 More... | |
| std::string | base64 () const |
| バイナリデータを Base64 エンコードします。 More... | |
| String | base64Str () const |
| バイナリデータを Base64 エンコードします。 More... | |
| void | base64 (std::string &dst) const |
| バイナリデータを Base64 エンコードし、dst に格納します。 More... | |
| void | base64 (String &dst) const |
| バイナリデータを Base64 エンコードし、dst に格納します。 More... | |
Friends | |
| bool | operator== (const Blob &lhs, const Blob &rhs) noexcept |
| bool | operator!= (const Blob &lhs, const Blob &rhs) noexcept |
バイナリデータ
| using s3d::Blob::base_type = Array<Byte> |
|
default |
|
default |
|
default |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
| SIV3D_NODISCARD_CXX20 s3d::Blob::Blob | ( | const void * | src, |
| size_t | sizeBytes | ||
| ) |
| void s3d::Blob::append | ( | const void * | src, |
| size_t | sizeBytes | ||
| ) |
末尾にバイナリデータを追加します。
| src | 追加するデータの先頭ポインタ |
| sizeBytes | 追加するデータのサイズ |
| std::string s3d::Blob::base64 | ( | ) | const |
バイナリデータを Base64 エンコードします。
| void s3d::Blob::base64 | ( | std::string & | dst | ) | const |
バイナリデータを Base64 エンコードし、dst に格納します。
| dst | エンコードされたデータの格納先 |
| void s3d::Blob::base64 | ( | String & | dst | ) | const |
バイナリデータを Base64 エンコードし、dst に格納します。
| dst | エンコードされたデータの格納先 |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| void s3d::Blob::clear | ( | ) |
|
noexcept |
| void s3d::Blob::create | ( | Blob && | other | ) |
| void s3d::Blob::create | ( | const Blob & | other | ) |
| void s3d::Blob::create | ( | const void * | src, |
| size_t | sizeBytes | ||
| ) |
| bool s3d::Blob::createFromFile | ( | FilePathView | path | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
explicitnoexcept |
| Byte& s3d::Blob::operator[] | ( | const size_t | index | ) |
| const Byte& s3d::Blob::operator[] | ( | const size_t | index | ) | const |
|
noexcept |
|
noexcept |
| void s3d::Blob::release | ( | ) |
|
noexcept |
|
noexcept |
| void s3d::Blob::reserve | ( | size_t | sizeBytes | ) |
| void s3d::Blob::resize | ( | size_t | sizeBytes | ) |
| bool s3d::Blob::save | ( | FilePathView | path | ) | const |
バイナリデータをファイルに保存します。
| path | ファイルパス |
| void s3d::Blob::shrink_to_fit | ( | ) |
|
noexcept |
|
noexcept |
バイナリデータのサイズ(バイト)を返します。
size と同じです。