"Sputnik" help  
Sputnik Help
BinaryAppend(<binary>, <binaryAdd>)

Description

Appends binary data to an existing binary data.

Parameters

<binary> The variable representing the original binary data.
<binaryAdd> The variable representing the binary data to be appended.

Return Value

Success: Returns true.
Failure: Returns false.

Remarks

The `BinaryAppend` function allows you to concatenate binary data to an existing binary data. The original binary data and the data to be appended are provided as input parameters. The function modifies the original binary data by adding the appended data to the end.

Related

BinaryConcat

Example

Append binary data to an existing binary variable.
my $bin = Bin("Cat");
BinaryAppend($bin, Bin("Dog"));
printr $bin;
// PRINTS
// Binary
// (
//     [0] => 0x43 [67] (C)
//     [1] => 0x61 [97] (a)
//     [2] => 0x74 [116] (t)
//     [3] => 0x44 [68] (D)
//     [4] => 0x6F [111] (o)
//     [5] => 0x67 [103] (g)
// )

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org