NAME

getswab - queries whether a binary file will swap multibyte scalars

SYNOPSIS

file.getswab()

DESCRIPTION

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.

RETURN VALUE

true if setswab(true) has been successfully called, or false otherwise

ERRORS

ArgCheck if arguments are specified
TypeCheck if file is not a File
AccessCheck if file is closed

EXAMPLE

    if (file.getswab()) "Bytes are being swapped!\n";

SEE ALSO

setswab