次の方法で共有


IDataOutput.WriteDouble(Double) Method

Definition

Writes a double value, which is comprised of eight bytes, to the output stream.

[Android.Runtime.Register("writeDouble", "(D)V", "GetWriteDouble_DHandler:Java.IO.IDataOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteDouble (double v);
[<Android.Runtime.Register("writeDouble", "(D)V", "GetWriteDouble_DHandler:Java.IO.IDataOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteDouble : double -> unit

Parameters

v
Double

the double value to be written.

Attributes

Exceptions

if an I/O error occurs while writing.

Remarks

Writes a double value, which is comprised of eight bytes, to the output stream. It does this as if it first converts this double value to a long in exactly the manner of the Double.doubleToLongBits method and then writes the long value in exactly the manner of the writeLong method. The bytes written by this method may be read by the readDouble method of interface DataInput, which will then return a double equal to v.

Java documentation for java.io.DataOutput.writeDouble(double).

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