@BinarySplit

Parent Previous Next

@BinarySplit.

Split a blob into an array of smaller blobs - each no longer than the specified length. This function is the opposite of a @BinaryBuild.


Syntax.


 @BinarySplit(Blob bytes; Integer length) : Blob[]

 


Arguments:


Example:


 Blob res[], big := 0x7FEEABF977DD00;

 res[] := @BinarySplit(big, 3);

 //Now res[] ~ [0x7FEEAB, 0xF977DD, 0x00];