OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2678 */ | 2678 */ |
2679 Local<ArrayBuffer> Buffer(); | 2679 Local<ArrayBuffer> Buffer(); |
2680 /** | 2680 /** |
2681 * Byte offset in |Buffer|. | 2681 * Byte offset in |Buffer|. |
2682 */ | 2682 */ |
2683 size_t ByteOffset(); | 2683 size_t ByteOffset(); |
2684 /** | 2684 /** |
2685 * Size of a view in bytes. | 2685 * Size of a view in bytes. |
2686 */ | 2686 */ |
2687 size_t ByteLength(); | 2687 size_t ByteLength(); |
2688 /** | |
2689 * Base address of a view. | |
2690 */ | |
2691 void* BaseAddress(); | |
2692 | 2688 |
2693 V8_INLINE static ArrayBufferView* Cast(Value* obj); | 2689 V8_INLINE static ArrayBufferView* Cast(Value* obj); |
2694 | 2690 |
2695 static const int kInternalFieldCount = | 2691 static const int kInternalFieldCount = |
2696 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT; | 2692 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT; |
2697 | 2693 |
2698 private: | 2694 private: |
2699 ArrayBufferView(); | 2695 ArrayBufferView(); |
2700 static void CheckCast(Value* obj); | 2696 static void CheckCast(Value* obj); |
2701 }; | 2697 }; |
(...skipping 3800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6502 */ | 6498 */ |
6503 | 6499 |
6504 | 6500 |
6505 } // namespace v8 | 6501 } // namespace v8 |
6506 | 6502 |
6507 | 6503 |
6508 #undef TYPE_CHECK | 6504 #undef TYPE_CHECK |
6509 | 6505 |
6510 | 6506 |
6511 #endif // V8_H_ | 6507 #endif // V8_H_ |
OLD | NEW |