You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

609 lines
28 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class StreamExtensions
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class StreamExtensions
  11. ">
  12. <meta name="generator" content="docfx 2.43.3.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Net3_Proxy.StreamExtensions">
  74. <h1 id="Net3_Proxy_StreamExtensions" data-uid="Net3_Proxy.StreamExtensions" class="text-break">Class StreamExtensions
  75. </h1>
  76. <div class="markdown level0 summary"></div>
  77. <div class="markdown level0 conceptual"></div>
  78. <div class="inheritance">
  79. <h5>Inheritance</h5>
  80. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  81. <div class="level1"><span class="xref">StreamExtensions</span></div>
  82. </div>
  83. <div class="inheritedMembers">
  84. <h5>Inherited Members</h5>
  85. <div>
  86. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  87. </div>
  88. <div>
  89. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  90. </div>
  91. <div>
  92. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
  93. </div>
  94. <div>
  95. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  105. </div>
  106. </div>
  107. <h6><strong>Namespace</strong>: <a class="xref" href="Net3_Proxy.html">Net3_Proxy</a></h6>
  108. <h6><strong>Assembly</strong>: Net3-Proxy.dll</h6>
  109. <h5 id="Net3_Proxy_StreamExtensions_syntax">Syntax</h5>
  110. <div class="codewrapper">
  111. <pre><code class="lang-csharp hljs">public static class StreamExtensions</code></pre>
  112. </div>
  113. <h3 id="methods">Methods
  114. </h3>
  115. <span class="small pull-right mobile-hide">
  116. <span class="divider">|</span>
  117. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream%2CSystem.IO.Stream)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  118. </span>
  119. <span class="small pull-right mobile-hide">
  120. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L68">View Source</a>
  121. </span>
  122. <a id="Net3_Proxy_StreamExtensions_CopyToAsync_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync*"></a>
  123. <h4 id="Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream)">CopyToAsync(Stream, Stream)</h4>
  124. <div class="markdown level1 summary"></div>
  125. <div class="markdown level1 conceptual"></div>
  126. <h5 class="decalaration">Declaration</h5>
  127. <div class="codewrapper">
  128. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  129. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  130. public static Task CopyToAsync(this Stream src, Stream destination)</code></pre>
  131. </div>
  132. <h5 class="parameters">Parameters</h5>
  133. <table class="table table-bordered table-striped table-condensed">
  134. <thead>
  135. <tr>
  136. <th>Type</th>
  137. <th>Name</th>
  138. <th>Description</th>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. <tr>
  143. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  144. <td><span class="parametername">src</span></td>
  145. <td></td>
  146. </tr>
  147. <tr>
  148. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  149. <td><span class="parametername">destination</span></td>
  150. <td></td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <h5 class="returns">Returns</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Description</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <tr>
  164. <td><span class="xref">Task</span></td>
  165. <td></td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <span class="small pull-right mobile-hide">
  170. <span class="divider">|</span>
  171. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_System_Int32_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream%2CSystem.IO.Stream%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  172. </span>
  173. <span class="small pull-right mobile-hide">
  174. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L72">View Source</a>
  175. </span>
  176. <a id="Net3_Proxy_StreamExtensions_CopyToAsync_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync*"></a>
  177. <h4 id="Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_System_Int32_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Int32)">CopyToAsync(Stream, Stream, Int32)</h4>
  178. <div class="markdown level1 summary"></div>
  179. <div class="markdown level1 conceptual"></div>
  180. <h5 class="decalaration">Declaration</h5>
  181. <div class="codewrapper">
  182. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  183. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  184. public static Task CopyToAsync(this Stream src, Stream destination, int bufferSize)</code></pre>
  185. </div>
  186. <h5 class="parameters">Parameters</h5>
  187. <table class="table table-bordered table-striped table-condensed">
  188. <thead>
  189. <tr>
  190. <th>Type</th>
  191. <th>Name</th>
  192. <th>Description</th>
  193. </tr>
  194. </thead>
  195. <tbody>
  196. <tr>
  197. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  198. <td><span class="parametername">src</span></td>
  199. <td></td>
  200. </tr>
  201. <tr>
  202. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  203. <td><span class="parametername">destination</span></td>
  204. <td></td>
  205. </tr>
  206. <tr>
  207. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  208. <td><span class="parametername">bufferSize</span></td>
  209. <td></td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <h5 class="returns">Returns</h5>
  214. <table class="table table-bordered table-striped table-condensed">
  215. <thead>
  216. <tr>
  217. <th>Type</th>
  218. <th>Description</th>
  219. </tr>
  220. </thead>
  221. <tbody>
  222. <tr>
  223. <td><span class="xref">Task</span></td>
  224. <td></td>
  225. </tr>
  226. </tbody>
  227. </table>
  228. <span class="small pull-right mobile-hide">
  229. <span class="divider">|</span>
  230. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_System_Int32_CancellationToken_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream%2CSystem.IO.Stream%2CSystem.Int32%2CCancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  231. </span>
  232. <span class="small pull-right mobile-hide">
  233. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L76">View Source</a>
  234. </span>
  235. <a id="Net3_Proxy_StreamExtensions_CopyToAsync_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync*"></a>
  236. <h4 id="Net3_Proxy_StreamExtensions_CopyToAsync_System_IO_Stream_System_IO_Stream_System_Int32_CancellationToken_" data-uid="Net3_Proxy.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Int32,CancellationToken)">CopyToAsync(Stream, Stream, Int32, CancellationToken)</h4>
  237. <div class="markdown level1 summary"></div>
  238. <div class="markdown level1 conceptual"></div>
  239. <h5 class="decalaration">Declaration</h5>
  240. <div class="codewrapper">
  241. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  242. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  243. public static Task CopyToAsync(this Stream src, Stream destination, int bufferSize, CancellationToken cancellationToken)</code></pre>
  244. </div>
  245. <h5 class="parameters">Parameters</h5>
  246. <table class="table table-bordered table-striped table-condensed">
  247. <thead>
  248. <tr>
  249. <th>Type</th>
  250. <th>Name</th>
  251. <th>Description</th>
  252. </tr>
  253. </thead>
  254. <tbody>
  255. <tr>
  256. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  257. <td><span class="parametername">src</span></td>
  258. <td></td>
  259. </tr>
  260. <tr>
  261. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  262. <td><span class="parametername">destination</span></td>
  263. <td></td>
  264. </tr>
  265. <tr>
  266. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  267. <td><span class="parametername">bufferSize</span></td>
  268. <td></td>
  269. </tr>
  270. <tr>
  271. <td><span class="xref">CancellationToken</span></td>
  272. <td><span class="parametername">cancellationToken</span></td>
  273. <td></td>
  274. </tr>
  275. </tbody>
  276. </table>
  277. <h5 class="returns">Returns</h5>
  278. <table class="table table-bordered table-striped table-condensed">
  279. <thead>
  280. <tr>
  281. <th>Type</th>
  282. <th>Description</th>
  283. </tr>
  284. </thead>
  285. <tbody>
  286. <tr>
  287. <td><span class="xref">Task</span></td>
  288. <td></td>
  289. </tr>
  290. </tbody>
  291. </table>
  292. <span class="small pull-right mobile-hide">
  293. <span class="divider">|</span>
  294. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_ReadAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.ReadAsync(System.IO.Stream%2CSystem.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  295. </span>
  296. <span class="small pull-right mobile-hide">
  297. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L117">View Source</a>
  298. </span>
  299. <a id="Net3_Proxy_StreamExtensions_ReadAsync_" data-uid="Net3_Proxy.StreamExtensions.ReadAsync*"></a>
  300. <h4 id="Net3_Proxy_StreamExtensions_ReadAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_" data-uid="Net3_Proxy.StreamExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">ReadAsync(Stream, Byte[], Int32, Int32)</h4>
  301. <div class="markdown level1 summary"></div>
  302. <div class="markdown level1 conceptual"></div>
  303. <h5 class="decalaration">Declaration</h5>
  304. <div class="codewrapper">
  305. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  306. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  307. public static Task&lt;int&gt; ReadAsync(this Stream src, byte[] buffer, int offset, int count)</code></pre>
  308. </div>
  309. <h5 class="parameters">Parameters</h5>
  310. <table class="table table-bordered table-striped table-condensed">
  311. <thead>
  312. <tr>
  313. <th>Type</th>
  314. <th>Name</th>
  315. <th>Description</th>
  316. </tr>
  317. </thead>
  318. <tbody>
  319. <tr>
  320. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  321. <td><span class="parametername">src</span></td>
  322. <td></td>
  323. </tr>
  324. <tr>
  325. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.byte">Byte</a>[]</td>
  326. <td><span class="parametername">buffer</span></td>
  327. <td></td>
  328. </tr>
  329. <tr>
  330. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  331. <td><span class="parametername">offset</span></td>
  332. <td></td>
  333. </tr>
  334. <tr>
  335. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  336. <td><span class="parametername">count</span></td>
  337. <td></td>
  338. </tr>
  339. </tbody>
  340. </table>
  341. <h5 class="returns">Returns</h5>
  342. <table class="table table-bordered table-striped table-condensed">
  343. <thead>
  344. <tr>
  345. <th>Type</th>
  346. <th>Description</th>
  347. </tr>
  348. </thead>
  349. <tbody>
  350. <tr>
  351. <td><span class="xref">Task</span>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
  352. <td></td>
  353. </tr>
  354. </tbody>
  355. </table>
  356. <span class="small pull-right mobile-hide">
  357. <span class="divider">|</span>
  358. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_ReadAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_CancellationToken_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.ReadAsync(System.IO.Stream%2CSystem.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32%2CCancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  359. </span>
  360. <span class="small pull-right mobile-hide">
  361. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L124">View Source</a>
  362. </span>
  363. <a id="Net3_Proxy_StreamExtensions_ReadAsync_" data-uid="Net3_Proxy.StreamExtensions.ReadAsync*"></a>
  364. <h4 id="Net3_Proxy_StreamExtensions_ReadAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_CancellationToken_" data-uid="Net3_Proxy.StreamExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,CancellationToken)">ReadAsync(Stream, Byte[], Int32, Int32, CancellationToken)</h4>
  365. <div class="markdown level1 summary"></div>
  366. <div class="markdown level1 conceptual"></div>
  367. <h5 class="decalaration">Declaration</h5>
  368. <div class="codewrapper">
  369. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  370. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  371. public static Task&lt;int&gt; ReadAsync(this Stream src, byte[] buffer, int offset, int count, CancellationToken cancellationToken)</code></pre>
  372. </div>
  373. <h5 class="parameters">Parameters</h5>
  374. <table class="table table-bordered table-striped table-condensed">
  375. <thead>
  376. <tr>
  377. <th>Type</th>
  378. <th>Name</th>
  379. <th>Description</th>
  380. </tr>
  381. </thead>
  382. <tbody>
  383. <tr>
  384. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  385. <td><span class="parametername">src</span></td>
  386. <td></td>
  387. </tr>
  388. <tr>
  389. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.byte">Byte</a>[]</td>
  390. <td><span class="parametername">buffer</span></td>
  391. <td></td>
  392. </tr>
  393. <tr>
  394. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  395. <td><span class="parametername">offset</span></td>
  396. <td></td>
  397. </tr>
  398. <tr>
  399. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  400. <td><span class="parametername">count</span></td>
  401. <td></td>
  402. </tr>
  403. <tr>
  404. <td><span class="xref">CancellationToken</span></td>
  405. <td><span class="parametername">cancellationToken</span></td>
  406. <td></td>
  407. </tr>
  408. </tbody>
  409. </table>
  410. <h5 class="returns">Returns</h5>
  411. <table class="table table-bordered table-striped table-condensed">
  412. <thead>
  413. <tr>
  414. <th>Type</th>
  415. <th>Description</th>
  416. </tr>
  417. </thead>
  418. <tbody>
  419. <tr>
  420. <td><span class="xref">Task</span>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
  421. <td></td>
  422. </tr>
  423. </tbody>
  424. </table>
  425. <span class="small pull-right mobile-hide">
  426. <span class="divider">|</span>
  427. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_WriteAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.WriteAsync(System.IO.Stream%2CSystem.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  428. </span>
  429. <span class="small pull-right mobile-hide">
  430. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L145">View Source</a>
  431. </span>
  432. <a id="Net3_Proxy_StreamExtensions_WriteAsync_" data-uid="Net3_Proxy.StreamExtensions.WriteAsync*"></a>
  433. <h4 id="Net3_Proxy_StreamExtensions_WriteAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_" data-uid="Net3_Proxy.StreamExtensions.WriteAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">WriteAsync(Stream, Byte[], Int32, Int32)</h4>
  434. <div class="markdown level1 summary"></div>
  435. <div class="markdown level1 conceptual"></div>
  436. <h5 class="decalaration">Declaration</h5>
  437. <div class="codewrapper">
  438. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  439. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  440. public static Task WriteAsync(this Stream src, byte[] buffer, int offset, int count)</code></pre>
  441. </div>
  442. <h5 class="parameters">Parameters</h5>
  443. <table class="table table-bordered table-striped table-condensed">
  444. <thead>
  445. <tr>
  446. <th>Type</th>
  447. <th>Name</th>
  448. <th>Description</th>
  449. </tr>
  450. </thead>
  451. <tbody>
  452. <tr>
  453. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  454. <td><span class="parametername">src</span></td>
  455. <td></td>
  456. </tr>
  457. <tr>
  458. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.byte">Byte</a>[]</td>
  459. <td><span class="parametername">buffer</span></td>
  460. <td></td>
  461. </tr>
  462. <tr>
  463. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  464. <td><span class="parametername">offset</span></td>
  465. <td></td>
  466. </tr>
  467. <tr>
  468. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  469. <td><span class="parametername">count</span></td>
  470. <td></td>
  471. </tr>
  472. </tbody>
  473. </table>
  474. <h5 class="returns">Returns</h5>
  475. <table class="table table-bordered table-striped table-condensed">
  476. <thead>
  477. <tr>
  478. <th>Type</th>
  479. <th>Description</th>
  480. </tr>
  481. </thead>
  482. <tbody>
  483. <tr>
  484. <td><span class="xref">Task</span></td>
  485. <td></td>
  486. </tr>
  487. </tbody>
  488. </table>
  489. <span class="small pull-right mobile-hide">
  490. <span class="divider">|</span>
  491. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions_WriteAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_CancellationToken_.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions.WriteAsync(System.IO.Stream%2CSystem.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32%2CCancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  492. </span>
  493. <span class="small pull-right mobile-hide">
  494. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L152">View Source</a>
  495. </span>
  496. <a id="Net3_Proxy_StreamExtensions_WriteAsync_" data-uid="Net3_Proxy.StreamExtensions.WriteAsync*"></a>
  497. <h4 id="Net3_Proxy_StreamExtensions_WriteAsync_System_IO_Stream_System_Byte___System_Int32_System_Int32_CancellationToken_" data-uid="Net3_Proxy.StreamExtensions.WriteAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,CancellationToken)">WriteAsync(Stream, Byte[], Int32, Int32, CancellationToken)</h4>
  498. <div class="markdown level1 summary"></div>
  499. <div class="markdown level1 conceptual"></div>
  500. <h5 class="decalaration">Declaration</h5>
  501. <div class="codewrapper">
  502. <pre><code class="lang-csharp hljs">[ComVisible(false)]
  503. [HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
  504. public static Task WriteAsync(this Stream src, byte[] buffer, int offset, int count, CancellationToken cancellationToken)</code></pre>
  505. </div>
  506. <h5 class="parameters">Parameters</h5>
  507. <table class="table table-bordered table-striped table-condensed">
  508. <thead>
  509. <tr>
  510. <th>Type</th>
  511. <th>Name</th>
  512. <th>Description</th>
  513. </tr>
  514. </thead>
  515. <tbody>
  516. <tr>
  517. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
  518. <td><span class="parametername">src</span></td>
  519. <td></td>
  520. </tr>
  521. <tr>
  522. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.byte">Byte</a>[]</td>
  523. <td><span class="parametername">buffer</span></td>
  524. <td></td>
  525. </tr>
  526. <tr>
  527. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  528. <td><span class="parametername">offset</span></td>
  529. <td></td>
  530. </tr>
  531. <tr>
  532. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  533. <td><span class="parametername">count</span></td>
  534. <td></td>
  535. </tr>
  536. <tr>
  537. <td><span class="xref">CancellationToken</span></td>
  538. <td><span class="parametername">cancellationToken</span></td>
  539. <td></td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. <h5 class="returns">Returns</h5>
  544. <table class="table table-bordered table-striped table-condensed">
  545. <thead>
  546. <tr>
  547. <th>Type</th>
  548. <th>Description</th>
  549. </tr>
  550. </thead>
  551. <tbody>
  552. <tr>
  553. <td><span class="xref">Task</span></td>
  554. <td></td>
  555. </tr>
  556. </tbody>
  557. </table>
  558. </article>
  559. </div>
  560. <div class="hidden-sm col-md-2" role="complementary">
  561. <div class="sideaffix">
  562. <div class="contribution">
  563. <ul class="nav">
  564. <li>
  565. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_StreamExtensions.md&amp;value=---%0Auid%3A%20Net3_Proxy.StreamExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  566. </li>
  567. <li>
  568. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/3a676e63dd73df60735f6677bd224094d4b86d70/Net3-Proxy/Extensions.cs/#L66" class="contribution-link">View Source</a>
  569. </li>
  570. </ul>
  571. </div>
  572. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  573. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  574. </nav>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. <footer>
  580. <div class="grad-bottom"></div>
  581. <div class="footer">
  582. <div class="container">
  583. <span class="pull-right">
  584. <a href="#top">Back to top</a>
  585. </span>
  586. <span>Generated by <strong>DocFX</strong></span>
  587. </div>
  588. </div>
  589. </footer>
  590. </div>
  591. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  592. <script type="text/javascript" src="../styles/docfx.js"></script>
  593. <script type="text/javascript" src="../styles/main.js"></script>
  594. </body>
  595. </html>