v8.h   v8.h 
skipping to change at line 1023 skipping to change at line 1023
* *
* Copies up to length characters into the output buffer. * Copies up to length characters into the output buffer.
* Only null-terminates if there is enough space in the buffer. * Only null-terminates if there is enough space in the buffer.
* *
* \param buffer The buffer into which the string will be copied. * \param buffer The buffer into which the string will be copied.
* \param start The starting position within the string at which * \param start The starting position within the string at which
* copying begins. * copying begins.
* \param length The number of characters to copy from the string. For * \param length The number of characters to copy from the string. For
* WriteUtf8 the number of bytes in the buffer. * WriteUtf8 the number of bytes in the buffer.
* \param nchars_ref The number of characters written, can be NULL. * \param nchars_ref The number of characters written, can be NULL.
* \param hints Various hints that might affect performance of this or * \param options Various options that might affect performance of this o r
* subsequent operations. * subsequent operations.
* \return The number of characters copied to the buffer excluding the nu ll * \return The number of characters copied to the buffer excluding the nu ll
* terminator. For WriteUtf8: The number of bytes copied to the buffe r * terminator. For WriteUtf8: The number of bytes copied to the buffe r
* including the null terminator. * including the null terminator (if written).
*/ */
enum WriteHints { enum WriteOptions {
NO_HINTS = 0, NO_OPTIONS = 0,
HINT_MANY_WRITES_EXPECTED = 1 HINT_MANY_WRITES_EXPECTED = 1,
NO_NULL_TERMINATION = 2
}; };
V8EXPORT int Write(uint16_t* buffer, V8EXPORT int Write(uint16_t* buffer,
int start = 0, int start = 0,
int length = -1, int length = -1,
WriteHints hints = NO_HINTS) const; // UTF-16 int options = NO_OPTIONS) const; // UTF-16
V8EXPORT int WriteAscii(char* buffer, V8EXPORT int WriteAscii(char* buffer,
int start = 0, int start = 0,
int length = -1, int length = -1,
WriteHints hints = NO_HINTS) const; // ASCII int options = NO_OPTIONS) const; // ASCII
V8EXPORT int WriteUtf8(char* buffer, V8EXPORT int WriteUtf8(char* buffer,
int length = -1, int length = -1,
int* nchars_ref = NULL, int* nchars_ref = NULL,
WriteHints hints = NO_HINTS) const; // UTF-8 int options = NO_OPTIONS) const; // UTF-8
/** /**
* A zero length string. * A zero length string.
*/ */
V8EXPORT static v8::Local<v8::String> Empty(); V8EXPORT static v8::Local<v8::String> Empty();
/** /**
* Returns true if the string is external * Returns true if the string is external
*/ */
V8EXPORT bool IsExternal() const; V8EXPORT bool IsExternal() const;
skipping to change at line 1318 skipping to change at line 1319
/** /**
* A JavaScript number value (ECMA-262, 4.3.20) * A JavaScript number value (ECMA-262, 4.3.20)
*/ */
class Number : public Primitive { class Number : public Primitive {
public: public:
V8EXPORT double Value() const; V8EXPORT double Value() const;
V8EXPORT static Local<Number> New(double value); V8EXPORT static Local<Number> New(double value);
static inline Number* Cast(v8::Value* obj); static inline Number* Cast(v8::Value* obj);
private: private:
V8EXPORT Number(); V8EXPORT Number();
static void CheckCast(v8::Value* obj); V8EXPORT static void CheckCast(v8::Value* obj);
}; };
/** /**
* A JavaScript value representing a signed integer. * A JavaScript value representing a signed integer.
*/ */
class Integer : public Number { class Integer : public Number {
public: public:
V8EXPORT static Local<Integer> New(int32_t value); V8EXPORT static Local<Integer> New(int32_t value);
V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value); V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value);
V8EXPORT int64_t Value() const; V8EXPORT int64_t Value() const;
skipping to change at line 1684 skipping to change at line 1685
/** /**
* Creates a JavaScript array with the given length. If the length * Creates a JavaScript array with the given length. If the length
* is negative the returned array will have length 0. * is negative the returned array will have length 0.
*/ */
V8EXPORT static Local<Array> New(int length = 0); V8EXPORT static Local<Array> New(int length = 0);
static inline Array* Cast(Value* obj); static inline Array* Cast(Value* obj);
private: private:
V8EXPORT Array(); V8EXPORT Array();
static void CheckCast(Value* obj); V8EXPORT static void CheckCast(Value* obj);
}; };
/** /**
* A JavaScript function object (ECMA-262, 15.3). * A JavaScript function object (ECMA-262, 15.3).
*/ */
class Function : public Object { class Function : public Object {
public: public:
V8EXPORT Local<Object> NewInstance() const; V8EXPORT Local<Object> NewInstance() const;
V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const; V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const;
V8EXPORT Local<Value> Call(Handle<Object> recv, V8EXPORT Local<Value> Call(Handle<Object> recv,
 End of changes. 8 change blocks. 
10 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/