Advertisement
robertbira

Italian Translation Report: Node.js [Part 28 - 1190 words]

Aug 17th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. What to search for.
  2. Where to begin searching in
  3. If is a string, this is its encoding.
  4. Returns: if was found in, otherwise.
  5. Equivalent to
  6. Prints
  7. 97 is the decimal ASCII value for
  8. If is a string, this is the encoding used to determine the binary representation of the string that will be searched for in
  9. The index of the first occurrence of in, or if does not contain
  10. If is:
  11. a string, is interpreted according to the character encoding in
  12. a or, will be used in its entirety.
  13. To compare a partial, use
  14. a number, will be interpreted as an unsigned 8-bit integer value between and
  15. If is not a string, number, or, this method will throw a
  16. If is a number, it will be coerced to a valid byte value, an integer between 0 and 255.
  17. If is not a number, it will be coerced to a number.
  18. If the result of coercion is or, then the entire buffer will be searched.
  19. This behavior matches
  20. Passing a value that's a number, but not a valid byte
  21. equivalent to searching for 99 or
  22. Passing a that coerces to or
  23. searching the whole buffer
  24. If is an empty string or empty and is less than, will be returned.
  25. If is empty and is at least, will be returned.
  26. Creates and returns an of keys (indices).
  27. Identical to, except the last occurrence of is found rather than the first occurrence.
  28. Any arguments that coerce to, like or, will search the whole buffer.
  29. If is an empty string or empty, will be returned.
  30. Returns the amount of memory allocated for in bytes.
  31. Note that this does not necessarily reflect the amount of "usable" data within
  32. // Create a and write a shorter ASCII string to it.
  33. While the property is not immutable, changing the value of can result in undefined and inconsistent behavior.
  34. Applications that wish to modify the length of a should therefore treat as read-only and use to create a new
  35. Stability: 0 - Deprecated: Use instead.
  36. The property is a deprecated alias for
  37. Number of bytes to skip before starting to read.
  38. Must satisfy
  39. Reads a 64-bit double from at the specified with specified endian format (returns big endian, returns little endian).
  40. Reads a 32-bit float from at the specified with specified endian format (returns big endian, returns little endian).
  41. Reads a signed 8-bit integer from at the specified
  42. Integers read from a are interpreted as two's complement signed values.
  43. Reads a signed 16-bit integer from at the specified with the specified endian format (returns big endian, returns little endian).
  44. Reads number of bytes from at the specified and interprets the result as a two's complement signed value.
  45. Supports up to 48 bits of accuracy.
  46. Reads an unsigned 8-bit integer from at the specified
  47. Reads number of bytes from at the specified and interprets the result as an unsigned integer.
  48. Where the new will start.
  49. Where the new will end (not inclusive).
  50. Returns a new that references the same memory as the original, but offset and cropped by the and indices.
  51. Specifying greater than will return the same result as that of equal to
  52. Modifying the new slice will modify the memory in the original because the allocated memory of the two objects overlap.
  53. // Create a with the ASCII alphabet, take a slice, and modify one byte from the original
  54. Specifying negative indexes causes the slice to be generated relative to the end of rather than the beginning.
  55. Interprets as an array of unsigned 16-bit integers and swaps the byte order in-place
  56. Throws if is not a multiple of 2.
  57. Interprets as an array of 64-bit numbers and swaps byte order in-place
  58. Note that JavaScript cannot encode 64-bit integers.
  59. This method is intended for working with 64-bit floats.
  60. Returns a JSON representation of
  61. implicitly calls this function when stringifying a instance.
  62. The character encoding to use.
  63. The byte offset to start decoding at.
  64. The byte offset to stop decoding at (not inclusive).
  65. Decodes to a string according to the specified character encoding in
  66. and may be passed to decode only a subset of
  67. The maximum length of a string instance (in UTF-16 code units) is available as
  68. Creates and returns an for values (bytes).
  69. This function is called automatically when a is used in a statement.
  70. String to write to
  71. Number of bytes to skip before starting to write
  72. Number of bytes to write.
  73. The character encoding of
  74. Number of bytes written.
  75. Writes to at according to the character encoding in
  76. The parameter is the number of bytes to write.
  77. If did not contain enough space to fit the entire string, only part of will be written.
  78. However, partially encoded characters will not be written.
  79. Number to be written to
  80. plus the number of bytes written.
  81. Writes to at the specified with specified endian format (writes big endian, writes little endian).
  82. should be a valid 64-bit double.
  83. Behavior is undefined when is anything other than a 64-bit double.
  84. Writes to at the specified
  85. should be a valid signed 8-bit integer.
  86. is interpreted and written as a two's complement signed integer.
  87. Writes bytes of to at the specified
  88. Returns the maximum number of bytes that will be returned when is called.
  89. This can be overridden by user modules.
  90. See for more details on behavior.
  91. Note that this is a property on the module returned by, not on the global or a instance.
  92. The largest size allowed for a single instance.
  93. An alias for
  94. A or instance.
  95. The current encoding.
  96. To target encoding.
  97. Re-encodes the given or instance from one character encoding to another.
  98. Returns a new instance.
  99. Throws if the or specify invalid character encodings or if conversion from to is not permitted.
  100. The transcoding process will use substitution characters if a given byte sequence cannot be adequately represented in the target encoding.
  101. For instance:
  102. Because the Euro sign is not representable in US-ASCII, it is replaced with in the transcoded
  103. Returns an un-pooled
  104. In order to avoid the garbage collection overhead of creating many individually allocated instances, by default allocations under 4KB are sliced from a single larger allocated object.
  105. In the case where a developer may need to retain a small chunk of memory from a pool for an indeterminate amount of time, it may be appropriate to create an un-pooled instance using then copy out the relevant bits.
  106. Need to keep around a few small chunks of memory
  107. Allocate for retained data
  108. Copy the data into the new allocation
  109. Use of should be used only as a last resort after a developer has observed undue memory retention in their applications.
  110. The underlying memory for instances is not initialized
  111. The contents of a newly created are unknown and may contain sensitive data.
  112. Use to initialize a with zeroes.
  113. Note that is a property on the module returned by, not on the global or a instance.
  114. The largest size allowed for a single instance.
  115. On 32-bit architectures, this value is
  116. This value is also available as
  117. Represents the largest that a primitive can have, counted in UTF-16 code units.
  118. This value may depend on the JS engine that is being used.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement