*/
    public final PyMultiarray byteswapped() {
        // This assumes typesize is even or 1 (it better be!).
        final PyMultiarray result = PyMultiarray.array(this);
        final byte[] bytes = PyMultiarray.toByteArray(
                result.data,
                this._typecode);
        final int typesize = PyMultiarray.typeToNBytes(this._typecode);
        final int swaps = typesize / 2;
        for (int i = 0; i < Array.getLength(result.data); i++) {
            for (int j = 0; j < swaps; j++) {
                final byte temp = bytes[i * typesize + j];
                bytes[i * typesize + j] = bytes[i * typesize
                        + (typesize - 1 - j)];
                bytes[i * typesize + (typesize - 1 - j)] = temp;
            }
        }
        result.data = PyMultiarray.fromByteArray(bytes, this._typecode);
        return result;
    }