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
decFallback
DecoderFallbackDecoder fallback.
encFallback
EncoderFallbackEncoder 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
chars
char[]Chars to convert.
index
intIndex of the char array.
count
intCount 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
chars
char[]Chars to convert.
charIndex
intIndex in the char array.
charCount
intNumber of chars to convert.
bytes
byte[]Output byte array.
byteIndex
intIndex 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
bytes
byte[]Bytes to convert.
index
intIndex of the byte array.
count
intCount 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
bytes
byte[]Encoded bytes.
byteIndex
intIndex in the encoded bytes.
byteCount
intNumber of bytes to decoded.
chars
char[]Output char array.
charIndex
intIndex in the char array.
Returns
- int
The decoded chars.
GetMaxByteCount(int)
Gets the max byte count.
public override int GetMaxByteCount(int charCount)
Parameters
charCount
intChar count.
Returns
- int
The max byte count.
GetMaxCharCount(int)
Gets the max char count.
public override int GetMaxCharCount(int byteCount)
Parameters
byteCount
intByte count.
Returns
- int
The max char count.