Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Added CharArrayBuffer #5520

Merged
merged 1 commit into from
Jun 30, 2016
Merged

[core] Added CharArrayBuffer #5520

merged 1 commit into from
Jun 30, 2016

Conversation

brunoabinader
Copy link
Member

Implements a custom std::streambuf that reads directly from a char array. This buffer assumes that the array remains valid during its entire lifetime. This avoid creating temporary std::string objects and thus optimizes image decode.

Suggested by @artemp in #5417 (comment).

👀 @artemp @jfirebaugh

@brunoabinader brunoabinader added feature Core The cross-platform C++ core, aka mbgl labels Jun 30, 2016
Implements a custom std::streambuf to avoid creating temporary
std::string objects and thus optimizing image decode.

Suggested by @artemp in
#5417 (comment).
@brunoabinader brunoabinader merged commit ad081e6 into master Jun 30, 2016
@brunoabinader brunoabinader deleted the char-array-buffer branch June 30, 2016 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant