@@ -22,6 +22,21 @@ public override byte[] GetPreamble()
22
22
return Array . Empty < byte > ( ) ;
23
23
}
24
24
25
+ public override int CodePage
26
+ {
27
+ get { return _encoding . CodePage ; }
28
+ }
29
+
30
+ public override bool IsSingleByte
31
+ {
32
+ get { return _encoding . IsSingleByte ; }
33
+ }
34
+
35
+ public override string EncodingName
36
+ {
37
+ get { return _encoding . EncodingName ; }
38
+ }
39
+
25
40
public override string WebName
26
41
{
27
42
get { return _encoding . WebName ; }
@@ -32,6 +47,11 @@ public override int GetByteCount(char[] chars)
32
47
return _encoding . GetByteCount ( chars ) ;
33
48
}
34
49
50
+ public override unsafe int GetByteCount ( char * chars , int count )
51
+ {
52
+ return _encoding . GetByteCount ( chars , count ) ;
53
+ }
54
+
35
55
public override int GetByteCount ( char [ ] chars , int index , int count )
36
56
{
37
57
return _encoding . GetByteCount ( chars , index , count ) ;
@@ -42,6 +62,11 @@ public override int GetByteCount(string s)
42
62
return _encoding . GetByteCount ( s ) ;
43
63
}
44
64
65
+ public override unsafe int GetBytes ( char * chars , int charCount , byte * bytes , int byteCount )
66
+ {
67
+ return _encoding . GetBytes ( chars , charCount , bytes , byteCount ) ;
68
+ }
69
+
45
70
public override byte [ ] GetBytes ( char [ ] chars )
46
71
{
47
72
return _encoding . GetBytes ( chars ) ;
@@ -67,6 +92,11 @@ public override int GetBytes(string s, int charIndex, int charCount, byte[] byte
67
92
return _encoding . GetBytes ( s , charIndex , charCount , bytes , byteIndex ) ;
68
93
}
69
94
95
+ public override unsafe int GetCharCount ( byte * bytes , int count )
96
+ {
97
+ return _encoding . GetCharCount ( bytes , count ) ;
98
+ }
99
+
70
100
public override int GetCharCount ( byte [ ] bytes )
71
101
{
72
102
return _encoding . GetCharCount ( bytes ) ;
@@ -77,6 +107,11 @@ public override int GetCharCount(byte[] bytes, int index, int count)
77
107
return _encoding . GetCharCount ( bytes , index , count ) ;
78
108
}
79
109
110
+ public override unsafe int GetChars ( byte * bytes , int byteCount , char * chars , int charCount )
111
+ {
112
+ return _encoding . GetChars ( bytes , byteCount , chars , charCount ) ;
113
+ }
114
+
80
115
public override char [ ] GetChars ( byte [ ] bytes )
81
116
{
82
117
return _encoding . GetChars ( bytes ) ;
@@ -112,9 +147,14 @@ public override int GetMaxCharCount(int byteCount)
112
147
return _encoding . GetMaxCharCount ( byteCount ) ;
113
148
}
114
149
150
+ public override string GetString ( byte [ ] bytes )
151
+ {
152
+ return _encoding . GetString ( bytes ) ;
153
+ }
154
+
115
155
public override string GetString ( byte [ ] bytes , int index , int count )
116
156
{
117
157
return _encoding . GetString ( bytes , index , count ) ;
118
158
}
119
159
}
120
- }
160
+ }
0 commit comments