Tao.PhysFs SDK Documentation

Fs.PHYSFS_writeSLE16 Method 

Convert and write a signed 16-bit littleendian value.

[Visual Basic]
Public Shared Function PHYSFS_writeSLE16( _
   ByVal file As IntPtr, _
   ByVal val As Short _
) As Integer
[C#]
public static int PHYSFS_writeSLE16(
   IntPtr file,
   short 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 a signed 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