Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/06/2016, 09:34
eferion
 
Fecha de Ingreso: octubre-2014
Ubicación: Madrid
Mensajes: 1.212
Antigüedad: 9 años, 7 meses
Puntos: 204
Respuesta: Protocol Buffers , Sockets

Cita:
bool SerializeToString(string* output) const;: serializes the message and stores the bytes in the given string. Note that the bytes are binary, not text; we only use the string class as a convenient container.
¿Estás seguro de que buf.length() te está dando un valor correcto?

No digo que esté ahí el fallo, pero es por empezar a tirar del hilo.

Un saludo
__________________
La ayuda se paga con esfuerzo o con dinero. Si no estás dispuesto a esforzarte y quieres que te hagan los deberes pide presupuesto, al menos así ahorrarás tiempo.

Última edición por eferion; 06/06/2016 a las 10:13