Udostępnij za pośrednictwem


CharsetDecoder.MaxCharsPerByte Method

Definition

Returns the maximum number of characters that will be produced for each byte of input.

[Android.Runtime.Register("maxCharsPerByte", "()F", "")]
public float MaxCharsPerByte ();
[<Android.Runtime.Register("maxCharsPerByte", "()F", "")>]
member this.MaxCharsPerByte : unit -> single

Returns

The maximum number of characters that will be produced per byte of input

Attributes

Remarks

Returns the maximum number of characters that will be produced for each byte of input. This value may be used to compute the worst-case size of the output buffer required for a given input sequence. This value accounts for any necessary content-independent prefix or suffix

characters.

Java documentation for java.nio.charset.CharsetDecoder.maxCharsPerByte().

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