UTF8Encoding 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
유니코드 문자의 UTF-8 인코딩을 나타냅니다.
public ref class UTF8Encoding : System::Text::Encoding
public class UTF8Encoding : System.Text.Encoding
[System.Serializable]
public class UTF8Encoding : System.Text.Encoding
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class UTF8Encoding : System.Text.Encoding
type UTF8Encoding = class
inherit Encoding
[<System.Serializable>]
type UTF8Encoding = class
inherit Encoding
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type UTF8Encoding = class
inherit Encoding
Public Class UTF8Encoding
Inherits Encoding
- 상속
- 특성
예제
다음 예제에서는 개체를 UTF8Encoding 사용하여 유니코드 문자 문자열을 인코딩하고 바이트 배열에 저장합니다. 유니코드 문자열에는 ASCII 문자 범위를 벗어난 Pi(U+03A0) 및 Sigma(U+03A3)의 두 문자가 포함됩니다. 인코딩된 바이트 배열이 문자열로 다시 디코딩되면 Pi 및 Sigma 문자가 여전히 존재합니다.
using System;
using System.Text;
class Example
{
public static void Main()
{
// Create a UTF-8 encoding.
UTF8Encoding utf8 = new UTF8Encoding();
// A Unicode string with two characters outside an 8-bit code range.
String unicodeString =
"This Unicode string has 2 characters outside the " +
"ASCII range:\n" +
"Pi (\u03a0), and Sigma (\u03a3).";
Console.WriteLine("Original string:");
Console.WriteLine(unicodeString);
// Encode the string.
Byte[] encodedBytes = utf8.GetBytes(unicodeString);
Console.WriteLine();
Console.WriteLine("Encoded bytes:");
for (int ctr = 0; ctr < encodedBytes.Length; ctr++) {
Console.Write("{0:X2} ", encodedBytes[ctr]);
if ((ctr + 1) % 25 == 0)
Console.WriteLine();
}
Console.WriteLine();
// Decode bytes back to string.
String decodedString = utf8.GetString(encodedBytes);
Console.WriteLine();
Console.WriteLine("Decoded bytes:");
Console.WriteLine(decodedString);
}
}
// The example displays the following output:
// Original string:
// This Unicode string has 2 characters outside the ASCII range:
// Pi (π), and Sigma (Σ).
//
// Encoded bytes:
// 54 68 69 73 20 55 6E 69 63 6F 64 65 20 73 74 72 69 6E 67 20 68 61 73 20 32
// 20 63 68 61 72 61 63 74 65 72 73 20 6F 75 74 73 69 64 65 20 74 68 65 20 41
// 53 43 49 49 20 72 61 6E 67 65 3A 20 0D 0A 50 69 20 28 CE A0 29 2C 20 61 6E
// 64 20 53 69 67 6D 61 20 28 CE A3 29 2E
//
// Decoded bytes:
// This Unicode string has 2 characters outside the ASCII range:
// Pi (π), and Sigma (Σ).
Imports System.Text
Class Example
Public Shared Sub Main()
' Create a UTF-8 encoding.
Dim utf8 As New UTF8Encoding()
' A Unicode string with two characters outside an 8-bit code range.
Dim unicodeString As String = _
"This Unicode string has 2 characters outside the " &
"ASCII range: " & vbCrLf &
"Pi (" & ChrW(&h03A0) & "), and Sigma (" & ChrW(&h03A3) & ")."
Console.WriteLine("Original string:")
Console.WriteLine(unicodeString)
' Encode the string.
Dim encodedBytes As Byte() = utf8.GetBytes(unicodeString)
Console.WriteLine()
Console.WriteLine("Encoded bytes:")
For ctr As Integer = 0 To encodedBytes.Length - 1
Console.Write("{0:X2} ", encodedBytes(ctr))
If (ctr + 1) Mod 25 = 0 Then Console.WriteLine
Next
Console.WriteLine()
' Decode bytes back to string.
Dim decodedString As String = utf8.GetString(encodedBytes)
Console.WriteLine()
Console.WriteLine("Decoded bytes:")
Console.WriteLine(decodedString)
End Sub
End Class
' The example displays the following output:
' Original string:
' This Unicode string has 2 characters outside the ASCII range:
' Pi (π), and Sigma (Σ).
'
' Encoded bytes:
' 54 68 69 73 20 55 6E 69 63 6F 64 65 20 73 74 72 69 6E 67 20 68 61 73 20 32
' 20 63 68 61 72 61 63 74 65 72 73 20 6F 75 74 73 69 64 65 20 74 68 65 20 41
' 53 43 49 49 20 72 61 6E 67 65 3A 20 0D 0A 50 69 20 28 CE A0 29 2C 20 61 6E
' 64 20 53 69 67 6D 61 20 28 CE A3 29 2E
'
' Decoded bytes:
' This Unicode string has 2 characters outside the ASCII range:
' Pi (π), and Sigma (Σ).
다음 예제에서는 인코딩된 바이트를 파일에 쓰고 바이트 스트림에 BOM(바이트 순서 표시)을 접두사로 추가한다는 점을 제외하고 이전 예제와 동일한 문자열을 사용합니다. 그런 다음 두 가지 방법으로 파일을 읽습니다. 즉, 개체를 사용하여 StreamReader 텍스트 파일로, 이진 파일로 읽습니다. 예상대로 새로 읽은 문자열에는 BOM이 포함되어 있지 않습니다.
using System;
using System.IO;
using System.Text;
public class Example
{
public static void Main()
{
// Create a UTF-8 encoding that supports a BOM.
Encoding utf8 = new UTF8Encoding(true);
// A Unicode string with two characters outside an 8-bit code range.
String unicodeString =
"This Unicode string has 2 characters outside the " +
"ASCII range:\n" +
"Pi (\u03A0)), and Sigma (\u03A3).";
Console.WriteLine("Original string:");
Console.WriteLine(unicodeString);
Console.WriteLine();
// Encode the string.
Byte[] encodedBytes = utf8.GetBytes(unicodeString);
Console.WriteLine("The encoded string has {0} bytes.",
encodedBytes.Length);
Console.WriteLine();
// Write the bytes to a file with a BOM.
var fs = new FileStream(@".\UTF8Encoding.txt", FileMode.Create);
Byte[] bom = utf8.GetPreamble();
fs.Write(bom, 0, bom.Length);
fs.Write(encodedBytes, 0, encodedBytes.Length);
Console.WriteLine("Wrote {0} bytes to the file.", fs.Length);
fs.Close();
Console.WriteLine();
// Open the file using StreamReader.
var sr = new StreamReader(@".\UTF8Encoding.txt");
String newString = sr.ReadToEnd();
sr.Close();
Console.WriteLine("String read using StreamReader:");
Console.WriteLine(newString);
Console.WriteLine();
// Open the file as a binary file and decode the bytes back to a string.
fs = new FileStream(@".\UTF8Encoding.txt", FileMode.Open);
Byte[] bytes = new Byte[fs.Length];
fs.Read(bytes, 0, (int)fs.Length);
fs.Close();
String decodedString = utf8.GetString(bytes);
Console.WriteLine("Decoded bytes:");
Console.WriteLine(decodedString);
}
}
// The example displays the following output:
// Original string:
// This Unicode string has 2 characters outside the ASCII range:
// Pi (π), and Sigma (Σ).
//
// The encoded string has 88 bytes.
//
// Wrote 91 bytes to the file.
//
// String read using StreamReader:
// This Unicode string has 2 characters outside the ASCII range:
// Pi (π), and Sigma (Σ).
//
// Decoded bytes:
// This Unicode string has 2 characters outside the ASCII range:
// Pi (π), and Sigma (Σ).
Imports System.IO
Imports System.Text
Class Example
Public Shared Sub Main()
' Create a UTF-8 encoding that supports a BOM.
Dim utf8 As New UTF8Encoding(True)
' A Unicode string with two characters outside an 8-bit code range.
Dim unicodeString As String = _
"This Unicode string has 2 characters outside the " &
"ASCII range: " & vbCrLf &
"Pi (" & ChrW(&h03A0) & "), and Sigma (" & ChrW(&h03A3) & ")."
Console.WriteLine("Original string:")
Console.WriteLine(unicodeString)
Console.WriteLine()
' Encode the string.
Dim encodedBytes As Byte() = utf8.GetBytes(unicodeString)
Console.WriteLine("The encoded string has {0} bytes.",
encodedBytes.Length)
Console.WriteLine()
' Write the bytes to a file with a BOM.
Dim fs As New FileStream(".\UTF8Encoding.txt", FileMode.Create)
Dim bom() As Byte = utf8.GetPreamble()
fs.Write(bom, 0, bom.Length)
fs.Write(encodedBytes, 0, encodedBytes.Length)
Console.WriteLine("Wrote {0} bytes to the file.", fs.Length)
fs.Close()
Console.WriteLine()
' Open the file using StreamReader.
Dim sr As New StreamReader(".\UTF8Encoding.txt")
Dim newString As String = sr.ReadToEnd()
sr.Close()
Console.WriteLine("String read using StreamReader:")
Console.WriteLine(newString)
Console.WriteLine()
' Open the file as a binary file and decode the bytes back to a string.
fs = new FileStream(".\UTF8Encoding.txt", FileMode.Open)
Dim bytes(fs.Length - 1) As Byte
fs.Read(bytes, 0, fs.Length)
fs.Close()
Dim decodedString As String = utf8.GetString(bytes)
Console.WriteLine("Decoded bytes:")
Console.WriteLine(decodedString)
End Sub
End Class
' The example displays the following output:
' Original string:
' This Unicode string has 2 characters outside the ASCII range:
' Pi (π), and Sigma (Σ).
'
' The encoded string has 88 bytes.
'
' Wrote 91 bytes to the file.
'
' String read using StreamReader:
' This Unicode string has 2 characters outside the ASCII range:
' Pi (π), and Sigma (Σ).
'
' Decoded bytes:
' This Unicode string has 2 characters outside the ASCII range:
' Pi (π), and Sigma (Σ).
설명
인코딩은 유니코드 문자 집합을 바이트 시퀀스로 변환하는 프로세스입니다. 디코딩은 인코딩된 바이트 시퀀스를 유니코드 문자 집합으로 변환하는 프로세스입니다.
UTF-8은 각 코드 포인트를 1~4바이트의 시퀀스로 나타내는 유니코드 인코딩입니다. UTF-16 및 UTF-32 인코딩과 달리 UTF-8 인코딩에는 "endianness"가 필요하지 않습니다. 인코딩 체계는 프로세서가 big-endian인지 또는 little-endian인지에 관계없이 동일합니다. UTF8Encoding 는 Windows 코드 페이지 65001에 해당합니다. UTF 및 지원되는 System.Text기타 인코딩에 대한 자세한 내용은 .NET Framework의 문자 인코딩을 참조하세요.
개체에 UTF8Encoding BOM(바이트 순서 표시)을 제공할지 여부와 오류 검색을 사용하도록 설정할지 여부에 따라 여러 가지 방법으로 개체를 인스턴스화할 수 있습니다. 다음 표에서는 개체를 반환하는 생성자와 Encoding 속성을 나열합니다 UTF8Encoding .
| 회원 | 증권 시세 표시기 | 오류 검색 |
|---|---|---|
| Encoding.UTF8 | 예 | 아니요(대체 대체) |
| UTF8Encoding.UTF8Encoding() | No | 아니요(대체 대체) |
| UTF8Encoding.UTF8Encoding(Boolean) | Configurable | 아니요(대체 대체) |
| UTF8Encoding.UTF8Encoding(Boolean, Boolean) | Configurable | Configurable |
메서드는 GetByteCount 유니코드 문자 집합을 인코딩하는 결과 바이트 수를 결정하고 메서드는 GetBytes 실제 인코딩을 수행합니다.
마찬가지로 메서드는 GetCharCount 바이트 시퀀스를 디코딩하는 결과 문자 수를 결정하고, 메서드와 GetChars 메서드는 GetString 실제 디코딩을 수행합니다.
여러 블록에 걸쳐 있는 데이터를 인코딩하거나 디코딩할 때 상태 정보를 저장할 수 있는 인코더 또는 디코더의 경우(예: 100,000자 세그먼트로 인코딩된 100만 문자 문자열) 각각 및 GetDecoder 속성을 사용합니다GetEncoder.
필요에 따라 UTF8Encoding 개체는 인코딩 프로세스에서 발생하는 바이트 스트림의 시작 부분에 접두사를 지정할 수 있는 바이트 배열인 BOM(바이트 순서 표시)을 제공합니다. UTF-8로 인코딩된 바이트 스트림 앞에 BOM(바이트 순서 표시)이 있으면 디코더가 바이트 순서와 변환 형식 또는 UTF를 결정하는 데 도움이 됩니다. 그러나 유니코드 표준은 UTF-8로 인코딩된 스트림에서 BOM을 요구하거나 권장하지 않습니다. 바이트 순서 및 바이트 순서 표시에 대한 자세한 내용은 유니코드 홈페이지의 유니코드 표준을 참조하세요.
BOM을 제공하도록 인코더가 구성된 경우 메서드를 호출 GetPreamble 하여 검색할 수 있습니다. 그렇지 않으면 메서드가 빈 배열을 반환합니다. 개체가 BOM 지원을 위해 구성된 경우에도 UTF8Encoding 인코딩된 바이트 스트림의 시작 부분에 BOM을 적절하게 포함해야 합니다. 클래스의 UTF8Encoding 인코딩 메서드는 이 작업을 자동으로 수행하지 않습니다.
주의
오류 검색을 사용하도록 설정하고 클래스 인스턴스를 보다 안전하게 만들려면 생성자를 호출 UTF8Encoding(Boolean, Boolean) 하고 매개 변수true를 throwOnInvalidBytes .로 설정해야 합니다. 오류 검색을 사용하도록 설정하면 잘못된 문자 또는 바이트 시퀀스를 검색하는 메서드가 예외를 ArgumentException throw합니다. 오류 검색이 없으면 예외가 throw되지 않으며 잘못된 시퀀스는 일반적으로 무시됩니다.
메모
개체가 다른 .NET Framework 버전을 사용하여 직렬화되고 역직렬화되는 경우 UTF-8로 인코딩된 개체의 상태는 유지되지 않습니다.
생성자
| Name | Description |
|---|---|
| UTF8Encoding() |
UTF8Encoding 클래스의 새 인스턴스를 초기화합니다. |
| UTF8Encoding(Boolean, Boolean) |
UTF8Encoding 클래스의 새 인스턴스를 초기화합니다. 매개 변수는 유니코드 바이트 순서 표시를 제공할지 여부와 잘못된 인코딩이 검색될 때 예외를 throw할지 여부를 지정합니다. |
| UTF8Encoding(Boolean) |
UTF8Encoding 클래스의 새 인스턴스를 초기화합니다. 매개 변수는 유니코드 바이트 순서 표시를 제공할지 여부를 지정합니다. |
속성
| Name | Description |
|---|---|
| BodyName |
파생 클래스에서 재정의되는 경우 메일 에이전트 본문 태그와 함께 사용할 수 있는 현재 인코딩의 이름을 가져옵니다. (다음에서 상속됨 Encoding) |
| CodePage |
파생 클래스에서 재정의된 경우 현재 Encoding클래스의 코드 페이지 식별자를 가져옵니다. (다음에서 상속됨 Encoding) |
| DecoderFallback |
현재 DecoderFallback 개체의 Encoding 개체를 가져오거나 설정합니다. (다음에서 상속됨 Encoding) |
| EncoderFallback |
현재 EncoderFallback 개체의 Encoding 개체를 가져오거나 설정합니다. (다음에서 상속됨 Encoding) |
| EncodingName |
파생 클래스에서 재정의되는 경우 현재 인코딩에 대한 사람이 읽을 수 있는 설명을 가져옵니다. (다음에서 상속됨 Encoding) |
| HeaderName |
파생 클래스에서 재정의되는 경우 메일 에이전트 헤더 태그와 함께 사용할 수 있는 현재 인코딩의 이름을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsBrowserDisplay |
파생 클래스에서 재정의되는 경우 현재 인코딩을 브라우저 클라이언트에서 콘텐츠를 표시하는 데 사용할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsBrowserSave |
파생 클래스에서 재정의되는 경우 현재 인코딩을 브라우저 클라이언트에서 콘텐츠를 저장하는 데 사용할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsMailNewsDisplay |
파생 클래스에서 재정의되는 경우 현재 인코딩을 메일 및 뉴스 클라이언트에서 콘텐츠를 표시하는 데 사용할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsMailNewsSave |
파생 클래스에서 재정의되는 경우 현재 인코딩을 메일 및 뉴스 클라이언트에서 콘텐츠를 저장하는 데 사용할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsReadOnly |
파생 클래스에서 재정의되는 경우 현재 인코딩이 읽기 전용인지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsSingleByte |
파생 클래스에서 재정의되는 경우 현재 인코딩에서 싱글 바이트 코드 포인트를 사용하는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| Preamble |
이 개체를 제공하도록 구성된 경우 UTF-8 형식으로 인코딩된 유니코드 바이트 순서 표시를 가져옵니다. |
| Preamble |
파생 클래스에서 재정의되는 경우 사용된 인코딩을 지정하는 바이트 시퀀스가 포함된 범위를 반환합니다. (다음에서 상속됨 Encoding) |
| WebName |
파생 클래스에서 재정의되는 경우 현재 인코딩에 대한 IANA(Internet Assigned Numbers Authority)에 등록된 이름을 가져옵니다. (다음에서 상속됨 Encoding) |
| WindowsCodePage |
파생 클래스에서 재정의되는 경우 현재 인코딩에 가장 가까운 Windows 운영 체제 코드 페이지를 가져옵니다. (다음에서 상속됨 Encoding) |
메서드
| Name | Description |
|---|---|
| Clone() |
파생 클래스에서 재정의되는 경우 현재 Encoding 개체의 단순 복사본을 만듭니다. (다음에서 상속됨 Encoding) |
| Equals(Object) |
지정된 개체가 현재 UTF8Encoding 개체와 같은지 여부를 확인합니다. |
| GetByteCount(Char[], Int32, Int32) |
지정된 문자 배열의 문자 집합을 인코딩하여 생성되는 바이트 수를 계산합니다. |
| GetByteCount(Char[]) |
파생 클래스에서 재정의되는 경우 지정된 문자 배열의 모든 문자를 인코딩하여 생성된 바이트 수를 계산합니다. (다음에서 상속됨 Encoding) |
| GetByteCount(Char*, Int32) |
지정된 문자 포인터에서 시작하는 문자 집합을 인코딩하여 생성되는 바이트 수를 계산합니다. |
| GetByteCount(ReadOnlySpan<Char>) |
지정된 문자 범위를 인코딩하여 생성되는 바이트 수를 계산합니다. |
| GetByteCount(ReadOnlySpan<Char>) |
파생 클래스에서 재정의되는 경우 지정된 문자 범위의 문자를 인코딩하여 생성되는 바이트 수를 계산합니다. (다음에서 상속됨 Encoding) |
| GetByteCount(String, Int32, Int32) |
파생 클래스에서 재정의되는 경우 지정된 문자열의 문자 집합을 인코딩하여 생성되는 바이트 수를 계산합니다. (다음에서 상속됨 Encoding) |
| GetByteCount(String) |
지정된 String문자의 인코딩을 통해 생성된 바이트 수를 계산합니다. |
| GetBytes(Char[], Int32, Int32, Byte[], Int32) |
지정된 문자 배열의 문자 집합을 지정된 바이트 배열로 인코딩합니다. |
| GetBytes(Char[], Int32, Int32) |
파생 클래스에서 재정의되는 경우 지정된 문자 배열의 문자 집합을 바이트 시퀀스로 인코딩합니다. (다음에서 상속됨 Encoding) |
| GetBytes(Char[]) |
파생 클래스에서 재정의되는 경우 지정된 문자 배열의 모든 문자를 바이트 시퀀스로 인코딩합니다. (다음에서 상속됨 Encoding) |
| GetBytes(Char*, Int32, Byte*, Int32) |
지정된 문자 포인터에서 시작하는 문자 집합을 지정된 바이트 포인터에서 시작하여 저장되는 바이트 시퀀스로 인코딩합니다. |
| GetBytes(ReadOnlySpan<Char>, Span<Byte>) |
지정된 문자 범위를 지정된 바이트 범위로 인코딩합니다. |
| GetBytes(ReadOnlySpan<Char>, Span<Byte>) |
파생 클래스에서 재정의되는 경우 지정된 읽기 전용 범위의 문자 집합을 바이트 범위로 인코딩합니다. (다음에서 상속됨 Encoding) |
| GetBytes(String, Int32, Int32, Byte[], Int32) |
지정된 문자 집합을 지정된 String 바이트 배열로 인코딩합니다. |
| GetBytes(String, Int32, Int32) |
파생 클래스에서 재정의되는 경우 지정된 문자열에서 지정된 |
| GetBytes(String) |
지정된 String 개체의 문자를 바이트 시퀀스로 인코딩합니다. |
| GetBytes(String) |
파생 클래스에서 재정의되는 경우 지정된 문자열의 모든 문자를 바이트 시퀀스로 인코딩합니다. (다음에서 상속됨 Encoding) |
| GetCharCount(Byte[], Int32, Int32) |
지정된 바이트 배열에서 바이트 시퀀스를 디코딩하여 생성된 문자 수를 계산합니다. |
| GetCharCount(Byte[]) |
파생 클래스에서 재정의되는 경우 지정된 바이트 배열의 모든 바이트를 디코딩하여 생성된 문자 수를 계산합니다. (다음에서 상속됨 Encoding) |
| GetCharCount(Byte*, Int32) |
지정된 바이트 포인터에서 시작하는 바이트 시퀀스를 디코딩하여 생성된 문자 수를 계산합니다. |
| GetCharCount(ReadOnlySpan<Byte>) |
지정된 바이트 범위를 디코딩하여 생성되는 문자 수를 계산합니다. |
| GetCharCount(ReadOnlySpan<Byte>) |
파생 클래스에서 재정의되는 경우 제공된 읽기 전용 바이트 범위를 디코딩하여 생성된 문자 수를 계산합니다. (다음에서 상속됨 Encoding) |
| GetChars(Byte[], Int32, Int32, Char[], Int32) |
지정된 바이트 배열에서 지정된 문자 배열로 바이트 시퀀스를 디코딩합니다. |
| GetChars(Byte[], Int32, Int32) |
파생 클래스에서 재정의되는 경우 지정된 바이트 배열의 바이트 시퀀스를 문자 집합으로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetChars(Byte[]) |
파생 클래스에서 재정의되는 경우 지정된 바이트 배열의 모든 바이트를 문자 집합으로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetChars(Byte*, Int32, Char*, Int32) |
지정된 바이트 포인터에서 시작하는 바이트 시퀀스를 지정된 문자 포인터에서 시작하여 저장되는 문자 집합으로 디코딩합니다. |
| GetChars(ReadOnlySpan<Byte>, Span<Char>) |
지정된 바이트 범위를 지정된 문자 범위로 디코딩합니다. |
| GetChars(ReadOnlySpan<Byte>, Span<Char>) |
파생 클래스에서 재정의되는 경우 지정된 읽기 전용 바이트 범위의 모든 바이트를 문자 범위로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetDecoder() |
UTF-8로 인코딩된 바이트 시퀀스를 유니코드 문자 시퀀스로 변환하는 디코더를 가져옵니다. |
| GetEncoder() |
유니코드 문자 시퀀스를 UTF-8로 인코딩된 바이트 시퀀스로 변환하는 인코더를 가져옵니다. |
| GetHashCode() |
현재 인스턴스의 해시 코드를 반환합니다. |
| GetMaxByteCount(Int32) |
지정된 문자 수를 인코딩하여 생성되는 최대 바이트 수를 계산합니다. |
| GetMaxCharCount(Int32) |
지정된 바이트 수를 디코딩하여 생성되는 최대 문자 수를 계산합니다. |
| GetPreamble() |
인코딩 개체를 제공하도록 구성된 경우 UTF8Encoding UTF-8 형식으로 인코딩된 유니코드 바이트 순서 표시를 반환합니다. |
| GetString(Byte[], Int32, Int32) |
바이트 배열에서 문자열로 바이트 범위를 디코딩합니다. |
| GetString(Byte[], Int32, Int32) |
파생 클래스에서 재정의되는 경우 지정된 바이트 배열의 바이트 시퀀스를 문자열로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetString(Byte[]) |
파생 클래스에서 재정의되는 경우 지정된 바이트 배열의 모든 바이트를 문자열로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetString(Byte*, Int32) |
파생 클래스에서 재정의되는 경우 지정된 주소에서 시작하는 지정된 바이트 수를 문자열로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetString(ReadOnlySpan<Byte>) |
파생 클래스에서 재정의되는 경우 지정된 바이트 범위의 모든 바이트를 문자열로 디코딩합니다. (다음에서 상속됨 Encoding) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| IsAlwaysNormalized() |
기본 정규화 형식을 사용하여 현재 인코딩이 항상 정규화되는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| IsAlwaysNormalized(NormalizationForm) |
파생 클래스에서 재정의되는 경우 지정된 정규화 양식을 사용하여 현재 인코딩이 항상 정규화되는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Encoding) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |
| TryGetBytes(ReadOnlySpan<Char>, Span<Byte>, Int32) |
대상이 충분히 큰 경우 지정된 읽기 전용 범위에서 문자 집합을 바이트 범위로 인코딩합니다. |
| TryGetChars(ReadOnlySpan<Byte>, Span<Char>, Int32) |
대상이 충분히 큰 경우 지정된 읽기 전용 범위에서 바이트 집합을 문자 범위로 디코딩합니다. |