OLD | NEW |
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 * buffer. | 849 * buffer. |
850 * | 850 * |
851 * Copies up to length characters into the output buffer. | 851 * Copies up to length characters into the output buffer. |
852 * Only null-terminates if there is enough space in the buffer. | 852 * Only null-terminates if there is enough space in the buffer. |
853 * | 853 * |
854 * \param buffer The buffer into which the string will be copied. | 854 * \param buffer The buffer into which the string will be copied. |
855 * \param start The starting position within the string at which | 855 * \param start The starting position within the string at which |
856 * copying begins. | 856 * copying begins. |
857 * \param length The number of bytes to copy from the string. | 857 * \param length The number of bytes to copy from the string. |
858 * \param nchars_ref The number of characters written, can be NULL. | 858 * \param nchars_ref The number of characters written, can be NULL. |
| 859 * \param hints Various hints that might affect performance of this or |
| 860 * subsequent operations. |
859 * \return The number of bytes copied to the buffer | 861 * \return The number of bytes copied to the buffer |
860 * excluding the NULL terminator. | 862 * excluding the NULL terminator. |
861 */ | 863 */ |
862 enum WriteHints { | 864 enum WriteHints { |
863 NO_HINTS = 0, | 865 NO_HINTS = 0, |
864 HINT_MANY_WRITES_EXPECTED = 1 | 866 HINT_MANY_WRITES_EXPECTED = 1 |
865 }; | 867 }; |
866 | 868 |
867 int Write(uint16_t* buffer, | 869 int Write(uint16_t* buffer, |
868 int start = 0, | 870 int start = 0, |
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3404 | 3406 |
3405 } // namespace v8 | 3407 } // namespace v8 |
3406 | 3408 |
3407 | 3409 |
3408 #undef V8EXPORT | 3410 #undef V8EXPORT |
3409 #undef V8EXPORT_INLINE | 3411 #undef V8EXPORT_INLINE |
3410 #undef TYPE_CHECK | 3412 #undef TYPE_CHECK |
3411 | 3413 |
3412 | 3414 |
3413 #endif // V8_H_ | 3415 #endif // V8_H_ |
OLD | NEW |