byteswap


Description:

public Variant byteswap ()

Performs a byteswapping operation on the contents of this.

The result is that all multi-byte numeric data contained in this is byteswapped. That includes 16, 32, and 64bit signed and unsigned integers as well as file handles and double precision floating point values.

This function is an identity mapping on any value that does not contain multi-byte numeric data. That include strings, booleans, bytes and containers containing only these things (recursively).

The returned value is always in normal form and is marked as trusted.

Parameters:

this

a Variant

Returns:

the byteswapped form of this