getswab - queries whether a binary file will swap multibyte scalars
file.getswab()
Binary-mode files may be byte-swapped for
read()
and write()
using the
setswab()
intrinsic method. The
getswab()
intrinsic method queries whether this
has been enabled.
true
if setswab(true)
has
been successfully called, or false
otherwise
ArgCheck
if arguments are specified
TypeCheck
if file is not a
File
AccessCheck
if
file is closed
if (file.getswab()) "Bytes are being swapped!\n";