OLD | NEW |
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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 void TransferSharedArrayBuffer(uint32_t transfer_id, | 1782 void TransferSharedArrayBuffer(uint32_t transfer_id, |
1783 Local<SharedArrayBuffer> shared_array_buffer); | 1783 Local<SharedArrayBuffer> shared_array_buffer); |
1784 | 1784 |
1785 /* | 1785 /* |
1786 * Write raw data in various common formats to the buffer. | 1786 * Write raw data in various common formats to the buffer. |
1787 * Note that integer types are written in base-128 varint format, not with a | 1787 * Note that integer types are written in base-128 varint format, not with a |
1788 * binary copy. For use during an override of Delegate::WriteHostObject. | 1788 * binary copy. For use during an override of Delegate::WriteHostObject. |
1789 */ | 1789 */ |
1790 void WriteUint32(uint32_t value); | 1790 void WriteUint32(uint32_t value); |
1791 void WriteUint64(uint64_t value); | 1791 void WriteUint64(uint64_t value); |
| 1792 void WriteDouble(double value); |
1792 void WriteRawBytes(const void* source, size_t length); | 1793 void WriteRawBytes(const void* source, size_t length); |
1793 | 1794 |
1794 private: | 1795 private: |
1795 ValueSerializer(const ValueSerializer&) = delete; | 1796 ValueSerializer(const ValueSerializer&) = delete; |
1796 void operator=(const ValueSerializer&) = delete; | 1797 void operator=(const ValueSerializer&) = delete; |
1797 | 1798 |
1798 struct PrivateData; | 1799 struct PrivateData; |
1799 PrivateData* private_; | 1800 PrivateData* private_; |
1800 }; | 1801 }; |
1801 | 1802 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1868 */ | 1869 */ |
1869 uint32_t GetWireFormatVersion() const; | 1870 uint32_t GetWireFormatVersion() const; |
1870 | 1871 |
1871 /* | 1872 /* |
1872 * Reads raw data in various common formats to the buffer. | 1873 * Reads raw data in various common formats to the buffer. |
1873 * Note that integer types are read in base-128 varint format, not with a | 1874 * Note that integer types are read in base-128 varint format, not with a |
1874 * binary copy. For use during an override of Delegate::ReadHostObject. | 1875 * binary copy. For use during an override of Delegate::ReadHostObject. |
1875 */ | 1876 */ |
1876 V8_WARN_UNUSED_RESULT bool ReadUint32(uint32_t* value); | 1877 V8_WARN_UNUSED_RESULT bool ReadUint32(uint32_t* value); |
1877 V8_WARN_UNUSED_RESULT bool ReadUint64(uint64_t* value); | 1878 V8_WARN_UNUSED_RESULT bool ReadUint64(uint64_t* value); |
| 1879 V8_WARN_UNUSED_RESULT bool ReadDouble(double* value); |
1878 V8_WARN_UNUSED_RESULT bool ReadRawBytes(size_t length, const void** data); | 1880 V8_WARN_UNUSED_RESULT bool ReadRawBytes(size_t length, const void** data); |
1879 | 1881 |
1880 private: | 1882 private: |
1881 ValueDeserializer(const ValueDeserializer&) = delete; | 1883 ValueDeserializer(const ValueDeserializer&) = delete; |
1882 void operator=(const ValueDeserializer&) = delete; | 1884 void operator=(const ValueDeserializer&) = delete; |
1883 | 1885 |
1884 struct PrivateData; | 1886 struct PrivateData; |
1885 PrivateData* private_; | 1887 PrivateData* private_; |
1886 }; | 1888 }; |
1887 | 1889 |
(...skipping 7761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9649 */ | 9651 */ |
9650 | 9652 |
9651 | 9653 |
9652 } // namespace v8 | 9654 } // namespace v8 |
9653 | 9655 |
9654 | 9656 |
9655 #undef TYPE_CHECK | 9657 #undef TYPE_CHECK |
9656 | 9658 |
9657 | 9659 |
9658 #endif // INCLUDE_V8_H_ | 9660 #endif // INCLUDE_V8_H_ |
OLD | NEW |