AbstractSessionInputBuffer.Read Method

Definition

Overloads

Name Description
Read()

Reads the next byte from the session input buffer.

Read(Byte[])

Reads bytes into a buffer.

Read(Byte[], Int32, Int32)

Reads bytes into a region of a buffer.

Read()

Reads the next byte from the session input buffer.

[Android.Runtime.Register("read", "()I", "GetReadHandler")]
public virtual int Read();
[<Android.Runtime.Register("read", "()I", "GetReadHandler")>]
abstract member Read : unit -> int
override this.Read : unit -> int

Returns

The next byte as a value from 0 through 255, or -1 at the end of the stream.

Implements

Attributes

Remarks

Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.

Applies to

Read(Byte[])

Reads bytes into a buffer.

[Android.Runtime.Register("read", "([B)I", "GetRead_arrayBHandler")]
public virtual int Read(byte[]? b);
[<Android.Runtime.Register("read", "([B)I", "GetRead_arrayBHandler")>]
abstract member Read : byte[] -> int
override this.Read : byte[] -> int

Parameters

b
Byte[]

The buffer that receives the bytes.

Returns

The number of bytes read, or -1 at the end of the stream.

Implements

Attributes

Remarks

Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.

Applies to

Read(Byte[], Int32, Int32)

Reads bytes into a region of a buffer.

[Android.Runtime.Register("read", "([BII)I", "GetRead_arrayBIIHandler")]
public virtual int Read(byte[]? b, int off, int len);
[<Android.Runtime.Register("read", "([BII)I", "GetRead_arrayBIIHandler")>]
abstract member Read : byte[] * int * int -> int
override this.Read : byte[] * int * int -> int

Parameters

b
Byte[]

The buffer that receives the bytes.

off
Int32

The zero-based offset in the buffer.

len
Int32

The maximum number of bytes to read.

Returns

The number of bytes read, or -1 at the end of the stream.

Implements

Attributes

Remarks

Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.

Applies to