VirtualString.SwapBytes(Variable) Method

Top 

Description

Re-orders the bytes in a byte stream to convert from a big-endian to a little-endian, or vice versa. This will reverse the order of the characters in the calling String.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

VirtualString.SwapBytes(

Variable numberOfBytes)

 

 

Arguments

numberOfBytes


Description:

The number of bytes (characters), measured from the beginning of the stream, that will be converted into reverse order ("swapped"). To swap an entire string, this should be equal to the length of the string.

Valid Range:

numberOfBytes > 0

 

 

 

Return Value

Type:

string

 

 

Returns a String containing the re-ordered byte stream.

 

Syntax

myString1 = myString2.ToLower.SwapBytes(myVariable1);

 

 

See also

VirtualString Object