| 1 |
|
| 2 |
<refentry id="tab2array"> |
| 3 |
<indexterm id="IndexTab2array"><primary>tab2array</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Array Opcodes</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>tab2array</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>tab2array</refname> |
| 12 |
<refpurpose> |
| 13 |
Copy a slice from an f-table to an array |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
The <emphasis>tab2array</emphasis> opcode takes an f-table and |
| 22 |
copies a slice to an array, possibly allocating it or changing |
| 23 |
its size |
| 24 |
</para> |
| 25 |
</refsect1> |
| 26 |
|
| 27 |
<refsect1> |
| 28 |
<title>Syntax</title> |
| 29 |
|
| 30 |
<synopsis>kout[] <command>tab2array</command> ifn [, kstart, kend, kstep ]</synopsis> |
| 31 |
<synopsis>iout[] <command>tab2array</command> ifn [, istart, iend, istep ]</synopsis> |
| 32 |
|
| 33 |
</refsect1> |
| 34 |
|
| 35 |
<refsect1> |
| 36 |
<title>Initialization</title> |
| 37 |
<para> |
| 38 |
<emphasis>ifn</emphasis> - The table index to copy data from |
| 39 |
</para> |
| 40 |
</refsect1> |
| 41 |
|
| 42 |
<refsect1> |
| 43 |
<title>Performance</title> |
| 44 |
|
| 45 |
<para> |
| 46 |
<emphasis>kstart / istart</emphasis> - The index to start copying from. <emphasis>Defaults to 0</emphasis> |
| 47 |
</para> |
| 48 |
|
| 49 |
<para> |
| 50 |
<emphasis>kend / iend</emphasis> - The end index to stop cpying. |
| 51 |
This is NOT inclusive. 0 means copy to the end of the table. <emphasis>Defaults to length of table</emphasis> |
| 52 |
</para> |
| 53 |
|
| 54 |
<para> |
| 55 |
<emphasis>kstep / istep</emphasis> - How many elements to skip. <emphasis>Defaults to 1</emphasis> |
| 56 |
</para> |
| 57 |
|
| 58 |
|
| 59 |
</refsect1> |
| 60 |
<refsect1> |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
<title>Examples</title> |
| 65 |
<para> |
| 66 |
Here is an example of the tab2array opcode. It uses the file <ulink url="examples/tab2array.csd"><citetitle>tab2array.csd</citetitle></ulink>. |
| 67 |
<example> |
| 68 |
<title>Example of the tab2array opcode.</title> |
| 69 |
<xi:include href="examples-xml/tab2array.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 70 |
</example> |
| 71 |
</para> |
| 72 |
</refsect1> |
| 73 |
|
| 74 |
<refsect1> |
| 75 |
<title>See also</title> |
| 76 |
<para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 77 |
</refsect1> |
| 78 |
|
| 79 |
<refsect1> |
| 80 |
|
| 81 |
<title>Credits</title> |
| 82 |
<para>By: &nameeduardo; 2018</para> |
| 83 |
<para>New plugin in version 6.12</para> |
| 84 |
</refsect1> |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
</refentry> |