System.Text.UTF7Encoding.GetBytes C# (CSharp) Method

GetBytes() private method

private GetBytes ( char chars, int charCount, byte bytes, int byteCount ) : int
chars char
charCount int
bytes byte
byteCount int
return int
        public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount)
        {
            throw null;
        }

Same methods

UTF7Encoding::GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
UTF7Encoding::GetBytes ( string s, int charIndex, int charCount, byte bytes, int byteIndex ) : int

Usage Example

示例#1
0
 public void PosTest2()
 {
     Byte[] bytes;
     Char[] chars = new Char[] { };
     UTF7Encoding UTF7 = new UTF7Encoding();
     int byteCount = UTF7.GetByteCount(chars, 0, 0);
     bytes = new Byte[byteCount];
     int bytesEncodedCount = UTF7.GetBytes(chars, 0, 0, bytes, 0);
     Assert.Equal(0, bytesEncodedCount);
 }
All Usage Examples Of System.Text.UTF7Encoding::GetBytes