Skip to content

Commit

Permalink
Merge branch 'main' of github.com:esfx/esfx
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jul 9, 2023
2 parents 313ba44 + f749c9f commit a897c9f
Show file tree
Hide file tree
Showing 166 changed files with 1,220 additions and 256 deletions.
87 changes: 67 additions & 20 deletions docs/api/struct-type.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,22 @@ <h5 class="decalaration">Declaration</h5>



<h4 id="_esfx_struct_type_endianness_var" data-uid="@esfx/struct-type!endianness:var">endianness</h4>
<div class="markdown level1 summary"><p>Indicats the endianess of the system.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">endianness: Endianness</code></pre>
</div>








<h4 id="_esfx_struct_type_float32_var" data-uid="@esfx/struct-type!float32:var">float32</h4>
<div class="markdown level1 summary"><p>A primitive type representing a 4-byte floating point number.</p>
<p>Aliases: <code>f32</code><!-- -->, <code>float</code></p>
Expand Down Expand Up @@ -420,6 +436,21 @@ <h5 class="decalaration">Declaration</h5>



<h4 id="_esfx_struct_type_InitType_var" data-uid="@esfx/struct-type!InitType:var">InitType</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">InitType: unique symbol</code></pre>
</div>








<h4 id="_esfx_struct_type_int16_var" data-uid="@esfx/struct-type!int16:var">int16</h4>
<div class="markdown level1 summary"><p>A primitive type representing a 2-byte signed integer.</p>
<p>Aliases: <code>i16</code><!-- -->, <code>short</code></p>
Expand Down Expand Up @@ -472,7 +503,7 @@ <h5 class="decalaration">Declaration</h5>


<h4 id="_esfx_struct_type_isLittleEndian_var" data-uid="@esfx/struct-type!isLittleEndian:var">isLittleEndian</h4>
<div class="markdown level1 summary"><p>Indicates whether the current host is little endian.</p>
<div class="markdown level1 summary"><p>Indicates whether the current system is little endian.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
Expand All @@ -487,6 +518,21 @@ <h5 class="decalaration">Declaration</h5>



<h4 id="_esfx_struct_type_RuntimeType_var" data-uid="@esfx/struct-type!RuntimeType:var">RuntimeType</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">RuntimeType: unique symbol</code></pre>
</div>








<h4 id="_esfx_struct_type_StructType_var" data-uid="@esfx/struct-type!StructType:var">StructType</h4>
<div class="markdown level1 summary"><p>Creates a new <code>Struct</code> type from a provided field definition.</p>
</div>
Expand Down Expand Up @@ -556,40 +602,41 @@ <h3 id="typealiases">Type Aliases
</h3>


<h4 id="_esfx_struct_type_InitType_type" data-uid="@esfx/struct-type!InitType:type">InitType</h4>
<div class="markdown level1 summary"><p>Gets a runtime type from a type definition that can be used to initialize a value of that type.</p>
<h4 id="_esfx_struct_type_Endianness_type" data-uid="@esfx/struct-type!Endianness:type">Endianness</h4>
<div class="markdown level1 summary"><p>Indicates whether the byte representation for an integer is either big-endian (<code>&quot;BE&quot;</code><!-- -->) or little-endian (<code>&quot;LE&quot;</code><!-- -->).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">export declare type InitType&lt;TType extends Type&gt; = NonNullable&lt;TType[typeof RelatedTypes]&gt;[&quot;InitType&quot;];</code></pre>
<pre><code class="lang-typeScript hljs">export declare type Endianness = &quot;BE&quot; | &quot;LE&quot;;</code></pre>
</div>

<h5 class="typeParameters">Type Parameters</h5>
<div class="property">
<dl class="parameter">
<dt>TType</dt>
<dd></dd>
</dl>
<p>

</p>
</div>







<h4 id="_esfx_struct_type_PrimitiveTypes_type" data-uid="@esfx/struct-type!PrimitiveTypes:type">PrimitiveTypes</h4>
<div class="markdown level1 summary"></div>
<h4 id="_esfx_struct_type_InitType_type" data-uid="@esfx/struct-type!InitType:type">InitType</h4>
<div class="markdown level1 summary"><p>Gets a runtime type from a type definition that can be used to initialize a value of that type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">export declare type PrimitiveTypes = typeof bool8 | typeof bool32 | typeof int8 | typeof int16 | typeof int32 | typeof uint8 | typeof uint16 | typeof uint32 | typeof bigint64 | typeof biguint64 | typeof float32 | typeof float64;</code></pre>
<pre><code class="lang-typeScript hljs">export declare type InitType&lt;TType extends Type&gt; = TType[typeof InitType];</code></pre>
</div>

<h5 class="typeParameters">Type Parameters</h5>
<div class="property">
<dl class="parameter">
<dt>TType</dt>
<dd></dd>
</dl>
<p>

</p>
</div>



Expand All @@ -603,7 +650,7 @@ <h4 id="_esfx_struct_type_RuntimeType_type" data-uid="@esfx/struct-type!RuntimeT
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">export declare type RuntimeType&lt;TType extends Type&gt; = NonNullable&lt;TType[typeof RelatedTypes]&gt;[&quot;RuntimeType&quot;];</code></pre>
<pre><code class="lang-typeScript hljs">export declare type RuntimeType&lt;TType extends Type&gt; = TType[typeof RuntimeType];</code></pre>
</div>

<h5 class="typeParameters">Type Parameters</h5>
Expand Down Expand Up @@ -637,7 +684,7 @@ <h5 class="decalaration">Declaration</h5>
set&lt;K extends StructFieldLayoutKeys&lt;TDef&gt;&gt;(key: K, value: StructFieldLayout&lt;TDef&gt;[K]): void;
getIndex&lt;I extends StructElementLayoutIndices&lt;TDef&gt;&gt;(index: I): StructElementLayout&lt;TDef&gt;[I];
setIndex&lt;I extends StructElementLayoutIndices&lt;TDef&gt;&gt;(index: I, value: StructElementLayout&lt;TDef&gt;[I]): boolean;
writeTo(buffer: ArrayBufferLike, byteOffset?: number): void;
writeTo(buffer: ArrayBufferLike, byteOffset?: number, byteOrder?: Endianness): void;
} &amp; StructFieldLayout&lt;TDef&gt; &amp; StructElementLayout&lt;TDef&gt;;</code></pre>
</div>

Expand Down Expand Up @@ -903,7 +950,7 @@ <h4 id="_esfx_struct_type_Type_type" data-uid="@esfx/struct-type!Type:type">Type
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-typeScript hljs">export declare type Type = PrimitiveTypes | StructType&lt;any&gt; | ArrayType&lt;any&gt; | FixedLengthArrayType&lt;any&gt;;</code></pre>
<pre><code class="lang-typeScript hljs">export declare type Type = PrimitiveType | StructType&lt;any&gt; | FixedLengthArrayType&lt;any&gt; | ArrayType&lt;any&gt;;</code></pre>
</div>


Expand Down
Loading

0 comments on commit a897c9f

Please sign in to comment.