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

Side by Side Diff: include/v8.h

Issue 1084513002: Expose ArrayBufferView::HasBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 3493 matching lines...) Expand 10 before | Expand all | Expand 10 after
3504 * Copy the contents of the ArrayBufferView's buffer to an embedder defined 3504 * Copy the contents of the ArrayBufferView's buffer to an embedder defined
3505 * memory without additional overhead that calling ArrayBufferView::Buffer 3505 * memory without additional overhead that calling ArrayBufferView::Buffer
3506 * might incur. 3506 * might incur.
3507 * 3507 *
3508 * Will write at most min(|byte_length|, ByteLength) bytes starting at 3508 * Will write at most min(|byte_length|, ByteLength) bytes starting at
3509 * ByteOffset of the underling buffer to the memory starting at |dest|. 3509 * ByteOffset of the underling buffer to the memory starting at |dest|.
3510 * Returns the number of bytes actually written. 3510 * Returns the number of bytes actually written.
3511 */ 3511 */
3512 size_t CopyContents(void* dest, size_t byte_length); 3512 size_t CopyContents(void* dest, size_t byte_length);
3513 3513
3514 /**
3515 * Returns true if ArrayBufferView's backing ArrayBuffer has already been
3516 * allocated.
3517 */
3518 bool HasBuffer() const;
3519
3514 V8_INLINE static ArrayBufferView* Cast(Value* obj); 3520 V8_INLINE static ArrayBufferView* Cast(Value* obj);
3515 3521
3516 static const int kInternalFieldCount = 3522 static const int kInternalFieldCount =
3517 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT; 3523 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT;
3518 3524
3519 private: 3525 private:
3520 ArrayBufferView(); 3526 ArrayBufferView();
3521 static void CheckCast(Value* obj); 3527 static void CheckCast(Value* obj);
3522 }; 3528 };
3523 3529
(...skipping 4562 matching lines...) Expand 10 before | Expand all | Expand 10 after
8086 */ 8092 */
8087 8093
8088 8094
8089 } // namespace v8 8095 } // namespace v8
8090 8096
8091 8097
8092 #undef TYPE_CHECK 8098 #undef TYPE_CHECK
8093 8099
8094 8100
8095 #endif // V8_H_ 8101 #endif // V8_H_
OLDNEW
« 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