<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=RawData.setByte</id>
	<title>RawData.setByte - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=RawData.setByte"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=RawData.setByte&amp;action=history"/>
	<updated>2026-05-03T21:44:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=RawData.setByte&amp;diff=1305&amp;oldid=prev</id>
		<title>FR-b0n5a1 at 00:38, 30 January 2025</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=RawData.setByte&amp;diff=1305&amp;oldid=prev"/>
		<updated>2025-01-30T00:38:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:38, 30 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ms&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ms&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This example creates a [[RawData]] buffer, sizes it to length of data array, and then writes each byte of data array in the buffer, and finally print the buffer as an UTF-8 string (here : a little ASCII art of a cat).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This example creates a [[RawData]] buffer, sizes it to length of data array, and then writes each byte of data array in the buffer, and finally print the buffer as an UTF-8 string (here : a little ASCII art of a cat).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;See also : [[RawData.byte]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mini Micro]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mini Micro]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>FR-b0n5a1</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=RawData.setByte&amp;diff=1303&amp;oldid=prev</id>
		<title>FR-b0n5a1: Created page with &quot;&lt;c&gt;RawData.setByte&lt;/c&gt; writes an unsigned byte into a RawData buffer.  === Arguments ===  {| class=&quot;wikitable&quot; |- ! Parameter Name !! Type !! Default Value !! Meaning...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=RawData.setByte&amp;diff=1303&amp;oldid=prev"/>
		<updated>2025-01-29T23:28:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/RawData&quot; title=&quot;RawData&quot;&gt;RawData&lt;/a&gt;.setByte&amp;lt;/c&amp;gt; writes an unsigned byte into a &lt;a href=&quot;/wiki/RawData&quot; title=&quot;RawData&quot;&gt;RawData&lt;/a&gt; buffer.  === Arguments ===  {| class=&amp;quot;wikitable&amp;quot; |- ! Parameter Name !! Type !! Default Value !! Meaning...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;c&amp;gt;[[RawData]].setByte&amp;lt;/c&amp;gt; writes an unsigned byte into a [[RawData]] buffer.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Type !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ''offset'' || number || 0 || position in buffer at which to start writing&lt;br /&gt;
|-&lt;br /&gt;
| ''value'' || number || 0 || unsigned byte to write&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
data = [13, 32, 47, 92, 95, 47, 92, 13, 40, 32, 111, 46, 111, 32, 41, 13, 32, 62, 32, 94, 32, 60, 13, 32, 77, 69, 79, 87, 33, 13]&lt;br /&gt;
&lt;br /&gt;
a = new RawData&lt;br /&gt;
a.resize data.len&lt;br /&gt;
for i in range (0, data.len - 1)&lt;br /&gt;
	a.setByte i, data[i]&lt;br /&gt;
end for&lt;br /&gt;
&lt;br /&gt;
print a.utf8&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
This example creates a [[RawData]] buffer, sizes it to length of data array, and then writes each byte of data array in the buffer, and finally print the buffer as an UTF-8 string (here : a little ASCII art of a cat).&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>FR-b0n5a1</name></author>
		
	</entry>
</feed>