Tao.PhysFs SDK Documentation

Fs.PHYSFS_writeULE16 Method 

Convert and write an unsigned 16-bit littleendian value.

[Visual Basic]
Public Shared Function PHYSFS_writeULE16( _
   ByVal file As IntPtr, _
   ByVal val As UInt16 _
) As Integer
[C#]
public static int PHYSFS_writeULE16(
   IntPtr file,
   ushort val
);

Parameters

file
PhysicsFS file handle to which to write.
val
Value to convert and write.

Return Value

zero on failure, non-zero on success. On failure, you can find out what went wrong from PHYSFS_getLastError().

Remarks

Convenience function. Convert an unsigned 16-bit value from the platform's native byte order to littleendian and write it to a file.

See Also

Fs Class | Tao.PhysFs Namespace