Language

BufferedInputStream.Markpos Property

Definition

The buffer index of the marked position.

[Android.Runtime.Register("markpos")]
protected int Markpos { get; set; }
[<Android.Runtime.Register("markpos")>]
member this.Markpos : int with get, set

Property Value

The buffer index set from pos by mark. It can change when the buffer is shifted, or become -1 when the mark is invalidated.

Attributes

Remarks

The buffer index of the marked position.

This value is always in the range -1 through pos. If there is no marked position in the input stream, this field is -1. If there is a marked position in the input stream, then buf[markpos] is the first byte to be supplied as input after a reset operation. If markpos is not -1, then all bytes from positions buf[markpos] through buf[pos-1] must remain in the buffer array (though they may be moved to another place in the buffer array, with suitable adjustments to the values of count, pos, and markpos). A later refill can discard them when the mark is invalidated.

Java documentation for java.io.BufferedInputStream.markpos.

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