System.Text.EncodingNLS.GetBytes C# (CSharp) Метод

GetBytes() публичный абстрактный Метод

public abstract GetBytes ( char chars, int charCount, byte bytes, int byteCount, EncoderNLS encoder ) : int
chars char
charCount int
bytes byte
byteCount int
encoder EncoderNLS
Результат int
        public unsafe abstract int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, EncoderNLS encoder);

Same methods

EncodingNLS::GetBytes ( String s, int charIndex, int charCount, byte bytes, int byteIndex ) : int
EncodingNLS::GetBytes ( char chars, int charCount, byte bytes, int byteCount ) : int
EncodingNLS::GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int

Usage Example

Пример #1
0
        public override unsafe int GetBytes(char *chars, int charCount, byte *bytes, int byteCount, bool flush)
        {
            // Validate parameters
            if (chars == null || bytes == null)
            {
                throw new ArgumentNullException((chars == null ? nameof(chars) : nameof(bytes)), SR.ArgumentNull_Array);
            }

            if (byteCount < 0 || charCount < 0)
            {
                throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
            }

            m_mustFlush       = flush;
            m_throwOnOverflow = true;
            return(m_encoding.GetBytes(chars, charCount, bytes, byteCount, this));
        }
All Usage Examples Of System.Text.EncodingNLS::GetBytes