Defile.writeBE

A templated wrapper for the PHYSFS_writeSBE/UBE* functions.

This method only accepts values that are of any integral type except byte and ubyte.

struct Defile
void
writeBE
(
T
)
(
T val
)
if (
isIntegral!T &&
!is(T == byte)
&&
!is(T == ubyte)
)

Parameters

val
Type: T

A value of type T which will be written to the file in big endian byte order.

Throws

DefileException if an error occurs.

Meta