<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://hotline.ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_BinaryContains</id>
		<title>Core Function BinaryContains - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_BinaryContains"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;action=history"/>
		<updated>2026-04-05T17:38:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=4909&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=4909&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:44Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=4908&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=4908&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:08Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=3946&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; BinaryContains( &lt;binary-array&gt;, &lt;needle&gt;, &lt;start&gt;, &lt;length&gt; ) &lt;/pre&gt;  === Description ===  Check if a binary variable contains a given byte or contains another binary varia...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_BinaryContains&amp;diff=3946&amp;oldid=prev"/>
				<updated>2014-08-01T23:42:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; BinaryContains( &amp;lt;binary-array&amp;gt;, &amp;lt;needle&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;length&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Check if a binary variable contains a given byte or contains another binary varia...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
BinaryContains( &amp;lt;binary-array&amp;gt;, &amp;lt;needle&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;length&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Check if a binary variable contains a given byte or contains another binary variable .&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== binary-array ====&lt;br /&gt;
&lt;br /&gt;
The binary variable to use. &lt;br /&gt;
&lt;br /&gt;
==== needle ====&lt;br /&gt;
&lt;br /&gt;
A binary variable to find or a value to use as a byte&lt;br /&gt;
&lt;br /&gt;
==== start ====&lt;br /&gt;
&lt;br /&gt;
Position to start from.&lt;br /&gt;
&lt;br /&gt;
If the start is a negative value the position will work backwards from the length of the binary.&lt;br /&gt;
&lt;br /&gt;
==== length ====&lt;br /&gt;
&lt;br /&gt;
Optional; How many bytes to count to before stopping the search.&lt;br /&gt;
&lt;br /&gt;
Default is all remaining bytes;&lt;br /&gt;
&lt;br /&gt;
If length is given and is negative, then that many bytes will be omitted from the end of binary (after the start position has been calculated when a start is negative).&lt;br /&gt;
&lt;br /&gt;
If start denotes the position of this truncation or beyond, empty binary variable will be returned. &lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns true.&lt;br /&gt;
&lt;br /&gt;
Failure: Returns false (On error or if there was no bytes were added).&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Convert a string to binary&lt;br /&gt;
my $bin = Pack(&amp;quot;A*&amp;quot;, &amp;quot;Hello World!&amp;quot;);&lt;br /&gt;
// Search for single chars&lt;br /&gt;
say BinaryContains($bin, @'A'); // false&lt;br /&gt;
say BinaryContains($bin, @'W'); // true&lt;br /&gt;
say BinaryContains($bin, @' '); // true&lt;br /&gt;
say BinaryContains($bin, @'@'); // false&lt;br /&gt;
say BinaryContains($bin, @'!'); // true&lt;br /&gt;
// Search for single bytes&lt;br /&gt;
say BinaryContains($bin, 0x20); // true&lt;br /&gt;
say BinaryContains($bin, 0x7F); // false&lt;br /&gt;
// Search for binary&lt;br /&gt;
say BinaryContains($bin, Pack(&amp;quot;A*&amp;quot;, &amp;quot;World&amp;quot;)); // true&lt;br /&gt;
say BinaryContains($bin, Pack(&amp;quot;A*&amp;quot;, &amp;quot;Cat&amp;quot;)); // false&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>