Class EucJpEncoding
EUC-JP encoding. Implemented standard from: https://encoding.spec.whatwg.org/.
public sealed class EucJpEncoding : Encoding, ICloneable
- Inheritance
-
EucJpEncoding
- Implements
- Inherited Members
Constructors
EucJpEncoding()
Initializes a new instance of the EucJpEncoding class.
public EucJpEncoding()
EucJpEncoding(DecoderFallback, EncoderFallback)
Initializes a new instance of the EucJpEncoding class.
public EucJpEncoding(DecoderFallback decFallback, EncoderFallback encFallback)
Parameters
decFallbackDecoderFallbackDecoder fallback.
encFallbackEncoderFallbackEncoder fallback.
Properties
DecoderFallback
Gets the decoder fallback.
public DecoderFallback DecoderFallback { get; }
Property Value
- DecoderFallback
The decoder fallback.
EncoderFallback
Gets the encoder fallback.
public EncoderFallback EncoderFallback { get; }
Property Value
- EncoderFallback
The encoder fallback.
Methods
GetByteCount(char[], int, int)
Gets the byte count.
public override int GetByteCount(char[] chars, int index, int count)
Parameters
charschar[]Chars to convert.
indexintIndex of the char array.
countintCount in the char array.
Returns
- int
The byte count.
GetBytes(char[], int, int, byte[], int)
Gets the encoded bytes.
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
Parameters
charschar[]Chars to convert.
charIndexintIndex in the char array.
charCountintNumber of chars to convert.
bytesbyte[]Output byte array.
byteIndexintIndex in the byte array.
Returns
- int
The encoded bytes.
GetCharCount(byte[], int, int)
Gets the char count.
public override int GetCharCount(byte[] bytes, int index, int count)
Parameters
bytesbyte[]Bytes to convert.
indexintIndex of the byte array.
countintCount of the byte array.
Returns
- int
The char count.
GetChars(byte[], int, int, char[], int)
Gets the decoded chars.
public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
Parameters
bytesbyte[]Encoded bytes.
byteIndexintIndex in the encoded bytes.
byteCountintNumber of bytes to decoded.
charschar[]Output char array.
charIndexintIndex in the char array.
Returns
- int
The decoded chars.
GetMaxByteCount(int)
Gets the max byte count.
public override int GetMaxByteCount(int charCount)
Parameters
charCountintChar count.
Returns
- int
The max byte count.
GetMaxCharCount(int)
Gets the max char count.
public override int GetMaxCharCount(int byteCount)
Parameters
byteCountintByte count.
Returns
- int
The max char count.