Share via


RandomAccessFile.WriteInt(Int32) Method

Definition

Writes an int to the file as four bytes, high byte first.

[Android.Runtime.Register("writeInt", "(I)V", "")]
public void WriteInt (int v);
[<Android.Runtime.Register("writeInt", "(I)V", "")>]
abstract member WriteInt : int -> unit
override this.WriteInt : int -> unit

Parameters

v
Int32

an int to be written.

Implements

Attributes

Exceptions

if an I/O error occurs while writing to this file.

Remarks

Writes an int to the file as four bytes, high byte first. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.writeInt(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also