LoggingSessionInputBuffer.Read 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
| Name | Description |
|---|---|
| Read() |
Reads one byte through the wrapped buffer. Logs the result only when logging is enabled and the byte value is greater than zero. |
| Read(Byte[]) |
Reads bytes into an array through the wrapped buffer and logs only the bytes actually read when logging is enabled. |
| Read(Byte[], Int32, Int32) |
Reads into the specified array range through the wrapped buffer and logs only the returned positive byte count when logging is enabled. |
Read()
Reads one byte through the wrapped buffer. Logs the result only when logging is enabled and the byte value is greater than zero.
[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 byte value from 0 through 255, or -1 at the end of input, as returned by the wrapped buffer.
Implements
- Attributes
Remarks
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
Read(Byte[])
Reads bytes into an array through the wrapped buffer and logs only the bytes actually read when logging is enabled.
[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 array that receives the bytes.
Returns
The number of bytes read, or -1 at the end of input, as returned by the wrapped buffer.
Implements
- Attributes
Remarks
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
Read(Byte[], Int32, Int32)
Reads into the specified array range through the wrapped buffer and logs only the returned positive byte count when logging is enabled.
[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 array that receives the bytes.
- off
- Int32
The starting index in b.
- len
- Int32
The maximum number of bytes to read.
Returns
The number of bytes read, which can be less than len, or -1 at the end of input.
Implements
- Attributes
Remarks
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.