robertbira

Italian Translation Report: Node.js [Part 7 - 1026 words]

Jul 17th, 2018
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Enum types
  2. Describes the type of a
  3. This generally corresponds to the types
  4. described in
  5. Section 6.1 of the ECMAScript Language Specification.
  6. In addition to types in that section, can also represent
  7. and with external data.
  8. A JavaScript value of type appears in JavaScript as a plain
  9. object such that no properties can be set on it, and no prototype.
  10. This represents the underlying binary scalar datatype of the
  11. Elements of this enum correspond to
  12. Section 22.2 of the ECMAScript Language Specification.
  13.  
  14. Object Creation Functions
  15. The environment that the N-API call is invoked under.
  16. A representing a JavaScript.
  17. Returns if the API succeeded.
  18. This API returns an N-API value corresponding to a JavaScript type.
  19. JavaScript arrays are described in Section 22.1 of the ECMAScript Language Specification.
  20. The environment that the API is invoked under.
  21. The initial length of the
  22. The length property is set to the passed-in length parameter.
  23. However, the underlying buffer is not guaranteed to be pre-allocated by the VM
  24. when the array is created - that behavior is left to the underlying VM
  25. implementation.
  26. If the buffer must be a contiguous block of memory that can be
  27. directly read and/or written via C, consider using
  28. The length in bytes of the array buffer to create.
  29. Pointer to the underlying byte buffer of the
  30. are used to represent fixed-length binary data buffers.
  31. They are
  32. normally used as a backing-buffer for objects.
  33. The allocated will have an underlying byte buffer whose size is
  34. determined by the parameter that's passed in.
  35. The underlying buffer is optionally returned back to the caller in case the
  36. caller wants to directly manipulate the buffer.
  37. This buffer can only be
  38. written to directly from native code.
  39. To write to this buffer from JavaScript,
  40. a typed array or object would need to be created.
  41. JavaScript objects are described in
  42. Section 24.1 of the ECMAScript Language Specification.
  43. Size in bytes of the underlying buffer.
  44. Raw pointer to the underlying buffer.
  45. This API allocates a object.
  46. While this is still a
  47. fully-supported data structure, in most cases using a will suffice.
  48. Size in bytes of the input buffer (should be the same as the
  49. size of the new buffer).
  50. Raw pointer to the underlying buffer to copy from.
  51. Pointer to the new underlying data buffer.
  52. This API allocates a object and initializes it with data copied
  53. from the passed-in buffer.
  54. Raw pointer to the external data
  55. Optional callback to call when the external value
  56. is being collected.
  57. Optional hint to pass to the finalize callback
  58. during collection.
  59. representing an external value.
  60. This API allocates a JavaScript value with external data attached to it.
  61. This
  62. is used to pass external data through JavaScript code, so it can be retrieved
  63. later by native code.
  64. The API allows the caller to pass in a finalize callback,
  65. in case the underlying native resource needs to be cleaned up when the external
  66. JavaScript value gets collected.
  67. The created value is not an object, and therefore does not support additional
  68. properties.
  69. It is considered a distinct value type: calling with
  70. an external value yields
  71. The length in bytes of the underlying buffer.
  72. The underlying byte buffer of the is externally allocated and
  73. managed.
  74. The caller must ensure that the byte buffer remains valid until the
  75. finalize callback is called.
  76. This API allocates a object and initializes it with data
  77. backed by the passed in buffer.
  78. For Node.js >=4 are
  79. A string representing the name of the function encoded as
  80. UTF8.
  81. The length of the in bytes, or if it is null-terminated.
  82. A function pointer to the native function to be invoked when the created function is invoked from JavaScript.
  83. Optional arbitrary context data to be passed into the native
  84. function when it is invoked.
  85. It's used to wrap native functions so that they can be invoked from JavaScript.
  86. JavaScript are described in
  87. Section 19.2
  88. of the ECMAScript Language Specification.
  89. This API allocates a default JavaScript
  90. It is the equivalent of doing in JavaScript.
  91. The JavaScript type is described in
  92. Section 6.1.7 of the
  93. ECMAScript Language Specification.
  94. Optional which refers to a JavaScript to be set as the description for the symbol.
  95. This API creates a JavaScript object from a UTF8-encoded C string.
  96. The JavaScript type is described in
  97. Section 19.4
  98. of the ECMAScript Language Specification.
  99. Scalar datatype of the elements within the
  100. Number of elements in the
  101. underlying the typed array.
  102. The byte offset within the from which to
  103. start projecting the
  104. This API creates a JavaScript object over an existing
  105. objects provide an array-like view over an
  106. underlying data buffer where each element has the same underlying binary scalar
  107. datatype.
  108. It's required that should
  109. be <= the size in bytes of the array passed in.
  110. If not, a exception
  111. is raised.
  112. JavaScript objects are described in
  113. Section 22.2 of the ECMAScript Language Specification.
  114. underlying the
  115. objects provide an array-like view over an underlying data buffer,
  116. but one which allows items of different size and type in the
  117. It is required that is less than or equal to the
  118. size in bytes of the array passed in.
  119. JavaScript objects are described in
  120. Section 24.3 of the ECMAScript Language Specification.
  121.  
  122. Functions to convert from C types to N-API
  123. Integer value to be represented in JavaScript.
  124. This API is used to convert from the C type to the JavaScript type.
  125. Unsigned integer value to be represented in JavaScript.
  126. Note the complete range of
  127. cannot be represented with full precision in JavaScript.
  128. Integer values
  129. outside the range of
  130. will lose precision.
  131. Double-precision value to be represented in JavaScript.
  132. Character buffer representing an ISO-8859-1-encoded string.
  133. The length of the string in bytes, or
  134. if it is null-terminated.
  135. This API creates a JavaScript object from an ISO-8859-1-encoded C
  136. string.
  137. The native string is copied.
  138. Character buffer representing a UTF16-LE-encoded string.
  139. The length of the string in two-byte code units, or
  140. if it is null-terminated.
  141. This API creates a JavaScript object from a UTF16-LE-encoded C string.
  142.  
  143. Functions to convert from N-API to C types
  144. representing the JavaScript whose length is
  145. being queried.
  146. representing length of the array.
  147. This API returns the length of an array.
  148. length is described in
  149. Section 22.1.4.1
  150. of the ECMAScript Language Specification.
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×