工具箱相关
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

System.Runtime.CompilerServices.Unsafe.xml 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>System.Runtime.CompilerServices.Unsafe</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.Runtime.CompilerServices.Unsafe">
  8. <summary>
  9. Contains generic, low-level functionality for manipulating pointers.
  10. </summary>
  11. </member>
  12. <member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
  13. <summary>
  14. Reads a value of type <typeparamref name="T"/> from the given location.
  15. </summary>
  16. <typeparam name="T">The type to read.</typeparam>
  17. <param name="source">The location to read from.</param>
  18. <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
  19. </member>
  20. <member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
  21. <summary>
  22. Reads a value of type <typeparamref name="T"/> from the given location.
  23. </summary>
  24. <typeparam name="T">The type to read.</typeparam>
  25. <param name="source">The location to read from.</param>
  26. <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
  27. </member>
  28. <member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
  29. <summary>
  30. Reads a value of type <typeparamref name="T"/> from the given location.
  31. </summary>
  32. <typeparam name="T">The type to read.</typeparam>
  33. <param name="source">The location to read from.</param>
  34. <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
  35. </member>
  36. <member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
  37. <summary>
  38. Writes a value of type <typeparamref name="T"/> to the given location.
  39. </summary>
  40. <typeparam name="T">The type of value to write.</typeparam>
  41. <param name="destination">The location to write to.</param>
  42. <param name="value">The value to write.</param>
  43. </member>
  44. <member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
  45. <summary>
  46. Writes a value of type <typeparamref name="T"/> to the given location.
  47. </summary>
  48. <typeparam name="T">The type of value to write.</typeparam>
  49. <param name="destination">The location to write to.</param>
  50. <param name="value">The value to write.</param>
  51. </member>
  52. <member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
  53. <summary>
  54. Writes a value of type <typeparamref name="T"/> to the given location.
  55. </summary>
  56. <typeparam name="T">The type of value to write.</typeparam>
  57. <param name="destination">The location to write to.</param>
  58. <param name="value">The value to write.</param>
  59. </member>
  60. <member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
  61. <summary>
  62. Copies a value of type <typeparamref name="T"/> to the given location.
  63. </summary>
  64. <typeparam name="T">The type of value to copy.</typeparam>
  65. <param name="destination">The location to copy to.</param>
  66. <param name="source">A reference to the value to copy.</param>
  67. </member>
  68. <member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
  69. <summary>
  70. Copies a value of type <typeparamref name="T"/> to the given location.
  71. </summary>
  72. <typeparam name="T">The type of value to copy.</typeparam>
  73. <param name="destination">The location to copy to.</param>
  74. <param name="source">A pointer to the value to copy.</param>
  75. </member>
  76. <member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
  77. <summary>
  78. Returns a pointer to the given by-ref parameter.
  79. </summary>
  80. <typeparam name="T">The type of object.</typeparam>
  81. <param name="value">The object whose pointer is obtained.</param>
  82. <returns>A pointer to the given value.</returns>
  83. </member>
  84. <member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
  85. <summary>
  86. Returns the size of an object of the given type parameter.
  87. </summary>
  88. <typeparam name="T">The type of object whose size is retrieved.</typeparam>
  89. <returns>The size of an object of type <typeparamref name="T"/>.</returns>
  90. </member>
  91. <member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
  92. <summary>
  93. Casts the given object to the specified type, performs no dynamic type checking.
  94. </summary>
  95. <typeparam name="T">The type which the object will be cast to.</typeparam>
  96. <param name="o">The object to cast.</param>
  97. <returns>The original object, casted to the given type.</returns>
  98. </member>
  99. <member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
  100. <summary>
  101. Reinterprets the given location as a reference to a value of type <typeparamref name="T"/>.
  102. </summary>
  103. <typeparam name="T">The type of the interpreted location.</typeparam>
  104. <param name="source">The location of the value to reference.</param>
  105. <returns>A reference to a value of type <typeparamref name="T"/>.</returns>
  106. </member>
  107. <member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(``0@)">
  108. <summary>
  109. Reinterprets the given read-only reference as a reference.
  110. </summary>
  111. <typeparam name="T">The type of reference.</typeparam>
  112. <param name="source">The read-only reference to reinterpret.</param>
  113. <returns>A reference to a value of type <typeparamref name="T"/>.</returns>
  114. </member>
  115. <member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
  116. <summary>
  117. Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo"/>.
  118. </summary>
  119. <typeparam name="TFrom">The type of reference to reinterpret.</typeparam>
  120. <typeparam name="TTo">The desired type of the reference.</typeparam>
  121. <param name="source">The reference to reinterpret.</param>
  122. <returns>A reference to a value of type <typeparamref name="TTo"/>.</returns>
  123. </member>
  124. <member name="M:System.Runtime.CompilerServices.Unsafe.Unbox``1(System.Object)">
  125. <summary>
  126. Returns a reference to the value type contained with the specified box object.
  127. </summary>
  128. <typeparam name="T">The type of the value type contained within the box.</typeparam>
  129. <param name="box">The boxed value type.</param>
  130. <returns>A reference to a value of type <typeparamref name="T"/> in the box object.</returns>
  131. </member>
  132. <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.Int32)">
  133. <summary>
  134. Adds an element offset to the given reference.
  135. </summary>
  136. <typeparam name="T">The type of reference.</typeparam>
  137. <param name="source">The reference to add the offset to.</param>
  138. <param name="elementOffset">The offset to add.</param>
  139. <returns>A new reference that reflects the addition of offset to pointer.</returns>
  140. </member>
  141. <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(System.Void*,System.Int32)">
  142. <summary>
  143. Adds an element offset to the given pointer.
  144. </summary>
  145. <typeparam name="T">The type of reference.</typeparam>
  146. <param name="source">The pointer to add the offset to.</param>
  147. <param name="elementOffset">The offset to add.</param>
  148. <returns>A new pointer that reflects the addition of offset to pointer.</returns>
  149. </member>
  150. <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.IntPtr)">
  151. <summary>
  152. Adds an element offset to the given reference.
  153. </summary>
  154. <typeparam name="T">The type of reference.</typeparam>
  155. <param name="source">The reference to add the offset to.</param>
  156. <param name="elementOffset">The offset to add.</param>
  157. <returns>A new reference that reflects the addition of offset to pointer.</returns>
  158. </member>
  159. <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.UIntPtr)">
  160. <summary>
  161. Adds an element offset to the given reference.
  162. </summary>
  163. <typeparam name="T">The type of reference.</typeparam>
  164. <param name="source">The reference to add the offset to.</param>
  165. <param name="elementOffset">The offset to add.</param>
  166. <returns>A new reference that reflects the addition of offset to pointer.</returns>
  167. </member>
  168. <member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
  169. <summary>
  170. Adds a byte offset to the given reference.
  171. </summary>
  172. <typeparam name="T">The type of reference.</typeparam>
  173. <param name="source">The reference to add the offset to.</param>
  174. <param name="byteOffset">The offset to add.</param>
  175. <returns>A new reference that reflects the addition of byte offset to pointer.</returns>
  176. </member>
  177. <member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.UIntPtr)">
  178. <summary>
  179. Adds a byte offset to the given reference.
  180. </summary>
  181. <typeparam name="T">The type of reference.</typeparam>
  182. <param name="source">The reference to add the offset to.</param>
  183. <param name="byteOffset">The offset to add.</param>
  184. <returns>A new reference that reflects the addition of byte offset to pointer.</returns>
  185. </member>
  186. <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
  187. <summary>
  188. Subtracts an element offset from the given reference.
  189. </summary>
  190. <typeparam name="T">The type of reference.</typeparam>
  191. <param name="source">The reference to subtract the offset from.</param>
  192. <param name="elementOffset">The offset to subtract.</param>
  193. <returns>A new reference that reflects the subraction of offset from pointer.</returns>
  194. </member>
  195. <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
  196. <summary>
  197. Subtracts an element offset from the given reference.
  198. </summary>
  199. <typeparam name="T">The type of reference.</typeparam>
  200. <param name="source">The reference to subtract the offset from.</param>
  201. <param name="elementOffset">The offset to subtract.</param>
  202. <returns>A new reference that reflects the subraction of offset from pointer.</returns>
  203. </member>
  204. <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.UIntPtr)">
  205. <summary>
  206. Subtracts an element offset from the given reference.
  207. </summary>
  208. <typeparam name="T">The type of reference.</typeparam>
  209. <param name="source">The reference to subtract the offset from.</param>
  210. <param name="elementOffset">The offset to subtract.</param>
  211. <returns>A new reference that reflects the subraction of offset from pointer.</returns>
  212. </member>
  213. <member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
  214. <summary>
  215. Subtracts a byte offset from the given reference.
  216. </summary>
  217. <typeparam name="T">The type of reference.</typeparam>
  218. <param name="source">The reference to subtract the offset from.</param>
  219. <param name="byteOffset">The offset to subtract.</param>
  220. <returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
  221. </member>
  222. <member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.UIntPtr)">
  223. <summary>
  224. Subtracts a byte offset from the given reference.
  225. </summary>
  226. <typeparam name="T">The type of reference.</typeparam>
  227. <param name="source">The reference to subtract the offset from.</param>
  228. <param name="byteOffset">The offset to subtract.</param>
  229. <returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
  230. </member>
  231. <member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
  232. <summary>
  233. Determines the byte offset from origin to target from the given references.
  234. </summary>
  235. <typeparam name="T">The type of reference.</typeparam>
  236. <param name="origin">The reference to origin.</param>
  237. <param name="target">The reference to target.</param>
  238. <returns>Byte offset from origin to target i.e. <paramref name="target"/> - <paramref name="origin"/>.</returns>
  239. </member>
  240. <member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
  241. <summary>
  242. Determines whether the specified references point to the same location.
  243. </summary>
  244. <param name="left">The first reference to compare.</param>
  245. <param name="right">The second reference to compare.</param>
  246. <returns><c>true</c> if <paramref name="left"/> and <paramref name="right"/> point to the same location; otherwise <c>false</c>.</returns>
  247. </member>
  248. <member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressGreaterThan``1(``0@,``0@)">
  249. <summary>
  250. Determines whether the memory address referenced by <paramref name="left"/> is greater than the memory address referenced by <paramref name="right"/>.
  251. </summary>
  252. <param name="left">The first reference to compare.</param>
  253. <param name="right">The second reference to compare.</param>
  254. <returns><c>true</c> if the memory address referenced by <paramref name="left"/> is greater than the memory address referenced by <paramref name="right"/>; otherwise <c>false</c>.</returns>
  255. <remarks>
  256. This check is conceptually similar to "(void*)(&amp;left) &gt; (void*)(&amp;right)". Both parameters must reference the same object, array, or span;
  257. or the objects being referenced must both be pinned; or both references must represent unmanaged pointers; otherwise the result is undefined.
  258. </remarks>
  259. </member>
  260. <member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressLessThan``1(``0@,``0@)">
  261. <summary>
  262. Determines whether the memory address referenced by <paramref name="left"/> is less than the memory address referenced by <paramref name="right"/>.
  263. </summary>
  264. <param name="left">The first reference to compare.</param>
  265. <param name="right">The second reference to compare.</param>
  266. <returns><c>true</c> if the memory address referenced by <paramref name="left"/> is less than the memory address referenced by <paramref name="right"/>; otherwise <c>false</c>.</returns>
  267. <remarks>
  268. This check is conceptually similar to "(void*)(&amp;left) &lt; (void*)(&amp;right)". Both parameters must reference the same object, array, or span;
  269. or the objects being referenced must both be pinned; or both references must represent unmanaged pointers; otherwise the result is undefined.
  270. </remarks>
  271. </member>
  272. <member name="M:System.Runtime.CompilerServices.Unsafe.IsNullRef``1(``0@)">
  273. <summary>
  274. Returns if a given reference to a value of type <typeparamref name="T"/> is a null reference.
  275. </summary>
  276. <param name="source">The reference to check.</param>
  277. <remarks>This check is conceptually similar to "(void*)(&amp;source) == nullptr".</remarks>
  278. </member>
  279. <member name="M:System.Runtime.CompilerServices.Unsafe.NullRef``1">
  280. <summary>
  281. Returns a reference to a value of type <typeparamref name="T"/> that is a null reference.
  282. </summary>
  283. </member>
  284. <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Void*,System.Void*,System.UInt32)">
  285. <summary>
  286. Copies bytes from the source address to the destination address.
  287. </summary>
  288. <param name="destination">The destination address to copy to.</param>
  289. <param name="source">The source address to copy from.</param>
  290. <param name="byteCount">The number of bytes to copy.</param>
  291. </member>
  292. <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
  293. <summary>
  294. Copies bytes from the source address to the destination address.
  295. </summary>
  296. <param name="destination">The destination address to copy to.</param>
  297. <param name="source">The source address to copy from.</param>
  298. <param name="byteCount">The number of bytes to copy.</param>
  299. </member>
  300. <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
  301. <summary>
  302. Copies bytes from the source address to the destination address
  303. without assuming architecture dependent alignment of the addresses.
  304. </summary>
  305. <param name="destination">The destination address to copy to.</param>
  306. <param name="source">The source address to copy from.</param>
  307. <param name="byteCount">The number of bytes to copy.</param>
  308. </member>
  309. <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
  310. <summary>
  311. Copies bytes from the source address to the destination address
  312. without assuming architecture dependent alignment of the addresses.
  313. </summary>
  314. <param name="destination">The destination address to copy to.</param>
  315. <param name="source">The source address to copy from.</param>
  316. <param name="byteCount">The number of bytes to copy.</param>
  317. </member>
  318. <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Void*,System.Byte,System.UInt32)">
  319. <summary>
  320. Initializes a block of memory at the given location with a given initial value.
  321. </summary>
  322. <param name="startAddress">The address of the start of the memory block to initialize.</param>
  323. <param name="value">The value to initialize the block to.</param>
  324. <param name="byteCount">The number of bytes to initialize.</param>
  325. </member>
  326. <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Byte@,System.Byte,System.UInt32)">
  327. <summary>
  328. Initializes a block of memory at the given location with a given initial value.
  329. </summary>
  330. <param name="startAddress">The address of the start of the memory block to initialize.</param>
  331. <param name="value">The value to initialize the block to.</param>
  332. <param name="byteCount">The number of bytes to initialize.</param>
  333. </member>
  334. <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
  335. <summary>
  336. Initializes a block of memory at the given location with a given initial value
  337. without assuming architecture dependent alignment of the address.
  338. </summary>
  339. <param name="startAddress">The address of the start of the memory block to initialize.</param>
  340. <param name="value">The value to initialize the block to.</param>
  341. <param name="byteCount">The number of bytes to initialize.</param>
  342. </member>
  343. <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
  344. <summary>
  345. Initializes a block of memory at the given location with a given initial value
  346. without assuming architecture dependent alignment of the address.
  347. </summary>
  348. <param name="startAddress">The address of the start of the memory block to initialize.</param>
  349. <param name="value">The value to initialize the block to.</param>
  350. <param name="byteCount">The number of bytes to initialize.</param>
  351. </member>
  352. </members>
  353. </doc>