RandomAccessFile.ReadFully Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReadFully(Byte[]) |
Reads |
ReadFully(Byte[], Int32, Int32) |
Reads exactly |
ReadFully(Byte[])
Reads b.length
bytes from this file into the byte
array, starting at the current file pointer.
[Android.Runtime.Register("readFully", "([B)V", "")]
public void ReadFully (byte[]? b);
[<Android.Runtime.Register("readFully", "([B)V", "")>]
abstract member ReadFully : byte[] -> unit
override this.ReadFully : byte[] -> unit
Parameters
- b
- Byte[]
the buffer into which the data is read.
Implements
- Attributes
Exceptions
Remarks
Reads b.length
bytes from this file into the byte array, starting at the current file pointer. This method reads repeatedly from the file until the requested number of bytes are read. This method blocks until the requested number of bytes are read, the end of the stream is detected, or an exception is thrown.
Java documentation for java.io.RandomAccessFile.readFully(byte[])
.
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
ReadFully(Byte[], Int32, Int32)
Reads exactly len
bytes from this file into the byte
array, starting at the current file pointer.
[Android.Runtime.Register("readFully", "([BII)V", "")]
public void ReadFully (byte[]? b, int off, int len);
[<Android.Runtime.Register("readFully", "([BII)V", "")>]
abstract member ReadFully : byte[] * int * int -> unit
override this.ReadFully : byte[] * int * int -> unit
Parameters
- b
- Byte[]
the buffer into which the data is read.
- off
- Int32
the start offset of the data.
- len
- Int32
the number of bytes to read.
Implements
- Attributes
Exceptions
if the end of the source stream is reached before enough bytes have been read.
if offset
or byteCount
, or
offset + byteCount > dst.length
.
if a problem occurs while reading from this stream.
if dst
is null.
Remarks
Reads exactly len
bytes from this file into the byte array, starting at the current file pointer. This method reads repeatedly from the file until the requested number of bytes are read. This method blocks until the requested number of bytes are read, the end of the stream is detected, or an exception is thrown.
Java documentation for java.io.RandomAccessFile.readFully(byte[], int, 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.