JavaScriptTestEncoder.TryEncodeUnicodeScalar Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Encode une valeur scalaire Unicode et l’écrit dans une mémoire tampon.
public:
override bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, [Runtime::InteropServices::Out] int % numberOfCharactersWritten);
public override bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten);
override this.TryEncodeUnicodeScalar : int * nativeptr<char> * int * int -> bool
Paramètres
- unicodeScalar
- Int32
Valeur scalaire Unicode.
- buffer
- Char*
Pointeur vers la mémoire tampon vers laquelle écrire le texte encodé.
- bufferLength
- Int32
Longueur de la destination buffer en caractères.
- numberOfCharactersWritten
- Int32
Lorsque la méthode est retournée, indique le nombre de caractères écrits dans le buffer.
Retours
false si bufferLength elle est trop petite pour ajuster le texte encodé ; sinon, retourne true.