En Google, luchamos por la equidad racial de la comunidad negra.
Más información
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
nl::Weave::Perfiles::Stringd de referencia
#include <src/lib/profiles/common/WeaveMessage.h>
Cómo manejar strings en Weave.
Resumen
Esta clase tiene variantes de 8 y 16 bits.
Herencia
Hereda de:
nl::Weave::Profiles::RetainedPacketBuffer
Constructores y destructores
|
ReferencedString(void)
El constructor sin argumentos para las strings a las que se hace referencia.
|
Atributos públicos
isShort
bool isShort
laLongitud
uint16_t theLength
laString
char * theString
Funciones públicas
ReferenciaReferencia
ReferencedString(
void
)
El constructor sin argumentos para las strings a las que se hace referencia.
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString
)
operador==
bool operator==(
const ReferencedString &
) const
Detalles |
Parámetros |
&aReferencedString
|
Una string para comparar.
|
|
Valores que se muestran |
true
|
Las strings son iguales.
|
false
|
Las strings no son iguales.
|
|
paquete
WEAVE_ERROR pack(
MessageIterator &
)
Detalles |
Parámetros |
&i
|
Un iterador sobre el mensaje que se empaqueta.
|
|
Qué muestra
|
ERROR_WEAVE
|
string de impresión
char * printString(
void
)
Detalles |
Qué muestra
|
Una string imprimible
|
Funciones estáticas públicas
parse
WEAVE_ERROR parse(
MessageIterator &,
ReferencedString &
)
Detalles |
Parámetros |
&i
|
Un iterador sobre el mensaje que se analiza.
|
&aString
|
Un lugar para colocar el resultado del análisis.
|
|
Valores que se muestran |
WEAVE_NO_ERROR
|
Se analizó correctamente la string.
|
WEAVE_ERROR_INVALID_STRING_LENGTH
|
La string es demasiado larga para el búfer (esto nunca debería ocurrir).
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2018-06-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Falta la información que necesito"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Muy complicado o demasiados pasos"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Desactualizado"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema de traducción"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema con las muestras o los códigos"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Otro"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Fácil de comprender"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Resolvió mi problema"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Otro"
}]