mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
woff2: update to tip (i.e. rev 4721483a)
This commit is contained in:
parent
f08dd1422d
commit
f32ba72bba
13 changed files with 106 additions and 60 deletions
|
|
@ -26,8 +26,8 @@ struct WOFF2Params {
|
|||
|
||||
// Returns an upper bound on the size of the compressed file.
|
||||
size_t MaxWOFF2CompressedSize(const uint8_t* data, size_t length);
|
||||
size_t MaxWOFF2CompressedSize(const uint8_t* data, size_t length,
|
||||
const std::string& extended_metadata);
|
||||
size_t MaxWOFF2CompressedSize(const uint8_t *data, size_t length,
|
||||
const std::string &extended_metadata);
|
||||
|
||||
// Compresses the font into the target buffer. *result_length should be at least
|
||||
// the value returned by MaxWOFF2CompressedSize(), upon return, it is set to the
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class WOFF2StringOut : public WOFF2Out {
|
|||
// Create a writer that writes its data to buf.
|
||||
// buf->size() will grow to at most max_size
|
||||
// buf may be sized (e.g. using EstimateWOFF2FinalSize) or empty.
|
||||
explicit WOFF2StringOut(std::string* buf);
|
||||
explicit WOFF2StringOut(std::string *buf);
|
||||
|
||||
bool Write(const void *buf, size_t n) override;
|
||||
bool Write(const void *buf, size_t offset, size_t n) override;
|
||||
|
|
@ -59,7 +59,7 @@ class WOFF2StringOut : public WOFF2Out {
|
|||
size_t MaxSize() { return max_size_; }
|
||||
void SetMaxSize(size_t max_size);
|
||||
private:
|
||||
std::string* buf_;
|
||||
std::string *buf_;
|
||||
size_t max_size_;
|
||||
size_t offset_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue