Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: include/v8.h

Issue 1084513002: Expose ArrayBufferView::HasBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index d94e9b32b854826ba221abb3948f057fb74a9a26..908c0e19e36c206915cc596bbdc5daa691c32c17 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -3511,6 +3511,15 @@ class V8_EXPORT ArrayBufferView : public Object {
*/
size_t CopyContents(void* dest, size_t byte_length);
+ /**
+ * Returns true if ArrayBufferView::Buffer() is a no-op. If it returns false,
Dmitry Lomov (no reviews) 2015/04/13 08:46:08 'no-op' is a bad explanation of what 'Buffer' does
+ * getting the buffer might incur allocating a backing store and materializing
+ * the contents. In that case, CopyContents can be used to access the
+ * underlying contents of this ArrayBufferView without materializing the
+ * buffer first.
+ */
+ bool HasBuffer() const;
+
V8_INLINE static ArrayBufferView* Cast(Value* obj);
static const int kInternalFieldCount =
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698