mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-17 04:38:53 +00:00
Compare commits
2 Commits
filesize-c
...
v2.8.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a977f7a16f | ||
|
|
49caa65177 |
@@ -301,6 +301,9 @@ class Value {
|
||||
}
|
||||
explicit Value(std::string &&s)
|
||||
: type_(STRING_TYPE), string_value_(std::move(s)) {}
|
||||
explicit Value(const char *s) : type_(STRING_TYPE) {
|
||||
string_value_ = s;
|
||||
}
|
||||
explicit Value(const unsigned char *p, size_t n) : type_(BINARY_TYPE) {
|
||||
binary_value_.resize(n);
|
||||
memcpy(binary_value_.data(), p, n);
|
||||
|
||||
Reference in New Issue
Block a user