Encoder Methods

The Encoder type exposes the following members.

  Name Description
Public method Convert(Char*, Int32, Byte*, Int32, Boolean, Int32, Int32, Boolean) Converts a buffer of Unicode characters to an encoded byte sequence and stores the result in another buffer.
Public method Convert(Char[], Int32, Int32, Byte[], Int32, Int32, Boolean, Int32, Int32, Boolean) Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetByteCount(Char*, Int32, Boolean) When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation.
Public method GetByteCount(Char[], Int32, Int32, Boolean) When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array. A parameter indicates whether to clear the internal state of the encoder after the calculation.
Public method GetBytes(Char*, Int32, Byte*, Int32, Boolean) When overridden in a derived class, encodes a set of characters starting at the specified character pointer and any characters in the internal buffer into a sequence of bytes that are stored starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the encoder after the conversion.
Public method GetBytes(Char[], Int32, Int32, Byte[], Int32, Boolean) When overridden in a derived class, encodes a set of characters from the specified character array and any characters in the internal buffer into the specified byte array. A parameter indicates whether to clear the internal state of the encoder after the conversion.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Reset When overridden in a derived class, sets the encoder back to its initial state.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft