# CSJ2K.Icc.ICCProfile.getString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_Icc_ICCProfile_getString_" data-uid="CSJ2K.Icc.ICCProfile.getString*">getString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_Icc_ICCProfile_getString_" data-uid="CSJ2K.Icc.ICCProfile.getString*"></a>
<h4 id="CSJ2K_Icc_ICCProfile_getString_System_Byte___System_Int32_System_Int32_System_Boolean_" data-uid="CSJ2K.Icc.ICCProfile.getString(System.Byte[],System.Int32,System.Int32,System.Boolean)">getString(byte[], int, int, bool)</h4>
<div class="markdown level1 summary"><p>Create a String from a byte []. Optionally swap adjacent byte
pairs.  Intended to be used to create integer String representations
allowing for endian translations.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string getString(byte[] bfr, int offset, int length, bool swap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function getString(bfr As Byte(), offset As Integer, length As Integer, swap As Boolean) As String</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">bfr</span></td>
      <td><p>data array</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>start of data in array</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>length of data in array</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">swap</span></td>
      <td><p>swap adjacent bytes?</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>String rep of data</p>
</td>
    </tr>
  </tbody>
</table>
</div>
