# C1.Util.DX.Storage.NativeFileStream.Write

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Storage_NativeFileStream_Write_" data-uid="C1.Util.DX.Storage.NativeFileStream.Write*">Write Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Storage_NativeFileStream_Write_" data-uid="C1.Util.DX.Storage.NativeFileStream.Write*"></a>
<h4 id="C1_Util_DX_Storage_NativeFileStream_Write_System_Byte___System_Int32_System_Int32_" data-uid="C1.Util.DX.Storage.NativeFileStream.Write(System.Byte[],System.Int32,System.Int32)">Write(byte[], int, int)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void Write(byte[] buffer, int offset, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub Write(buffer As Byte(), offset As Integer, count As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">buffer</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">offset</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream.write">Stream.Write(byte[], int, int)</a></div>


<a id="C1_Util_DX_Storage_NativeFileStream_Write_" data-uid="C1.Util.DX.Storage.NativeFileStream.Write*"></a>
<h4 id="C1_Util_DX_Storage_NativeFileStream_Write_System_IntPtr_System_Int32_System_Int32_" data-uid="C1.Util.DX.Storage.NativeFileStream.Write(System.IntPtr,System.Int32,System.Int32)">Write(IntPtr, int, int)</h4>
<div class="markdown level1 summary"><p>Writes a block of bytes to this stream using data from a buffer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Write(IntPtr buffer, int offset, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Write(buffer As IntPtr, offset As Integer, count As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">buffer</span></td>
      <td><p>The buffer containing data to write to the stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">offset</span></td>
      <td><p>The zero-based byte offset in buffer at which to begin copying bytes to the current stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of bytes to be written to the current stream.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
