If you want to avoid it for now, yeah Unwrap is the only answer.
The Mojo shared buffer API is about to get some polish once the new base
API lands. We'll expose buffer size through a sane API as part of that.
Ah hmm. That looks pretty good. I was planning to make a slightly more
generic API to query information about a buffer. It would only support size
for now, but would be extensible for other bits of information in the
future.
Comment 1 by thestig@chromium.org
, Mar 22 2018