Compartir a través de


CharsetEncoder.MaxBytesPerChar Method

Definition

Returns the maximum number of bytes that will be produced for each character of input.

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

Returns

The maximum number of bytes that will be produced per character of input

Attributes

Remarks

Returns the maximum number of bytes that will be produced for each character 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

bytes, such as byte-order marks.

Java documentation for java.nio.charset.CharsetEncoder.maxBytesPerChar().

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